diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-08-16 15:29:58 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-01 16:03:42 +0200 |
commit | 496107c3777e03e4d2a3127bbad2982dd7799b99 (patch) | |
tree | 5ce98304af013143946bd66f7ad0ae33654bbb21 | |
download | pkgbuilds-496107c3777e03e4d2a3127bbad2982dd7799b99.tar.xz |
dbus-user-session: import
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | LICENSE | 14 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | dbus-user-session.install | 8 | ||||
-rw-r--r-- | dbus.conf | 2 | ||||
-rw-r--r-- | dbus.service | 7 | ||||
-rw-r--r-- | dbus.socket | 9 |
7 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..27a33cb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by makepkg 4.2.1 +# Mon Jun 1 15:02:12 UTC 2015 +pkgbase = dbus-user-session + pkgdesc = systemd user service for dbus user bus + pkgver = 0.0.1 + pkgrel = 1 + url = https://theos.kyriasis.com/~kyrias + install = dbus-user-session.install + arch = any + license = custom:ISC + depends = systemd + source = dbus.socket + source = dbus.service + source = dbus.conf + source = LICENSE + md5sums = ae97fbcba9621d6f423193b2d67b7f52 + md5sums = c3693a827f1d9559ecd692f19d465d01 + md5sums = 43535857bf82111dd9f8b9a0413a6e20 + md5sums = da3b313446e8f10915bb07cd36531c49 + +pkgname = dbus-user-session + @@ -0,0 +1,14 @@ +Copyright (c) 2014, Johannes Löthberg <johannes@kyriasis.com> + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted, provided that the +above copyright notice and this permission notice appear in all +copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY +SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9c6e4e3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +pkgname=dbus-user-session +pkgver=0.0.1 +pkgrel=1 + +pkgdesc="systemd user service for dbus user bus" +url="https://theos.kyriasis.com/~kyrias" +arch=('any') +license=('custom:ISC') + +depends=('systemd') + +install=dbus-user-session.install +source=('dbus.socket' 'dbus.service' 'dbus.conf' 'LICENSE') + +md5sums=('ae97fbcba9621d6f423193b2d67b7f52' + 'c3693a827f1d9559ecd692f19d465d01' + '43535857bf82111dd9f8b9a0413a6e20' + 'da3b313446e8f10915bb07cd36531c49') + +package() { + install -D dbus.socket "$pkgdir"/etc/systemd/user/dbus.socket + install -D dbus.service "$pkgdir"/etc/systemd/user/dbus.service + + # Dropin for the user@.service that sets the correct DBUS_SESSION_BUS_ADDRESS + install -D dbus.conf "$pkgdir"/etc/systemd/system/user@.service.d/dbus.conf + + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/dbus-user-session/LICENSE +} diff --git a/dbus-user-session.install b/dbus-user-session.install new file mode 100644 index 0000000..02fcc5e --- /dev/null +++ b/dbus-user-session.install @@ -0,0 +1,8 @@ +post_install() { + # Enable dbus.socket for all users + systemctl --global enable dbus.socket +} + +post_upgrade() { + post_install +} diff --git a/dbus.conf b/dbus.conf new file mode 100644 index 0000000..8ca4aed --- /dev/null +++ b/dbus.conf @@ -0,0 +1,2 @@ +[Service] +Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%I/dbus/user_bus_socket diff --git a/dbus.service b/dbus.service new file mode 100644 index 0000000..1851818 --- /dev/null +++ b/dbus.service @@ -0,0 +1,7 @@ +[Unit] +Description=D-Bus Message Bus +Requires=dbus.socket + +[Service] +ExecStart=/usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation +ExecReload=/usr/bin/dbus-send --print-reply --session --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig diff --git a/dbus.socket b/dbus.socket new file mode 100644 index 0000000..3eaa0c6 --- /dev/null +++ b/dbus.socket @@ -0,0 +1,9 @@ +[Unit] +Description=D-Bus Message Bus Socket +Before=sockets.target + +[Socket] +ListenStream=%t/dbus/user_bus_socket + +[Install] +WantedBy=default.target |