aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-02-23 21:44:19 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-02-25 00:08:47 -0300
commit7eea38528cc47a43c2fa928931b0ee1700c86332 (patch)
tree59f3a21b73d132e1ba998d72d0ffab36efc0787b
parentb5ca795e0e5bcb665472fb615fdf305ab2c7f7c2 (diff)
downloadaports-7eea38528cc47a43c2fa928931b0ee1700c86332.tar.gz
aports-7eea38528cc47a43c2fa928931b0ee1700c86332.tar.bz2
aports-7eea38528cc47a43c2fa928931b0ee1700c86332.tar.xz
community/polkit-elogind: add openrc service
-rw-r--r--community/polkit-elogind/APKBUILD14
-rw-r--r--community/polkit-elogind/polkit.initd12
2 files changed, 21 insertions, 5 deletions
diff --git a/community/polkit-elogind/APKBUILD b/community/polkit-elogind/APKBUILD
index d4638931c9..3e26a42f90 100644
--- a/community/polkit-elogind/APKBUILD
+++ b/community/polkit-elogind/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=polkit-elogind
pkgver=0.116
-pkgrel=1
+pkgrel=2
pkgdesc="Application development toolkit for controlling system-wide privileges (elogind variant)"
url="https://www.freedesktop.org/wiki/Software/polkit/"
arch="all"
@@ -10,10 +10,12 @@ options="suid !check"
depends_dev="dbus-glib-dev"
makedepends="$depends_dev expat-dev glib-dev gtk-doc gobject-introspection-dev
intltool autoconf automake libtool bash mozjs60-dev elogind-dev linux-pam-dev"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-openrc"
source="https://www.freedesktop.org/software/polkit/releases/polkit-$pkgver.tar.gz
make-innetgr-optional.patch
- alpine-polkit.pam"
+ alpine-polkit.pam
+ polkit.initd
+ "
install="polkit-elogind.pre-install"
pkgusers="polkitd"
pkggroups="polkitd"
@@ -46,7 +48,6 @@ build() {
--disable-libelogind \
--disable-systemd \
--enable-libsystemd-login
-
make
}
@@ -66,6 +67,8 @@ package() {
chmod -R 700 "$pkgdir"/etc/polkit-1/rules.d "$pkgdir"/usr/share/polkit-1/rules.d
chmod 4755 "$pkgdir"/usr/lib/polkit-1/polkit-agent-helper-1
chmod 4755 "$pkgdir"/usr/bin/pkexec
+
+ install -Dm755 "$srcdir"/polkit.initd "$pkgdir"/etc/init.d/polkit
}
dev() {
@@ -75,4 +78,5 @@ dev() {
sha512sums="b66b01cc2bb4349de70147f41f161f0f6f41e7230b581dfb054058b48969ec57041ab05b51787c749ccfc36aa5f317952d7e7ba337b4f6f6c0a923ed5866c2d5 polkit-0.116.tar.gz
05a4fa21a42237a68d40f581d70a84937ba94f703e5342f37a59cca171ed5446acf7ae83fd5b05a3a92600ad38ad74d0c735a20f1b932750f91c0988ba900f60 make-innetgr-optional.patch
-f5102dc00d390b3a3c957b62e1712db778c7ffb7378f3d8e816c0757c11a308c5d5303e42595b0d6add9839247c773880cd34e56afacc89eb6efaadf9aae7826 alpine-polkit.pam"
+f5102dc00d390b3a3c957b62e1712db778c7ffb7378f3d8e816c0757c11a308c5d5303e42595b0d6add9839247c773880cd34e56afacc89eb6efaadf9aae7826 alpine-polkit.pam
+f6e5ac0ed41feb392dfd104979ec577c5936f3db2bd252b12b7b9b2609a0901dae38bebec1ea65ccf4f427860b520383ae4d2c66fb74ab986c715f6b0ad50473 polkit.initd"
diff --git a/community/polkit-elogind/polkit.initd b/community/polkit-elogind/polkit.initd
new file mode 100644
index 0000000000..30d2387447
--- /dev/null
+++ b/community/polkit-elogind/polkit.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+supervisor=supervise-daemon
+
+name="Polkit System Daemon"
+description="Provide System authentication via PolicyKit1 D-Bus service"
+
+command=/usr/lib/polkit-1/polkitd
+command_args="${POLKIT_OPTS:---no-debug}"
+
+depend() {
+ need dbus
+}