summaryrefslogtreecommitdiff
path: root/nonsystemd/elogind-openrc
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2022-07-19 21:17:01 -0400
committerDavid P <megver83@parabola.nu>2022-07-19 21:17:01 -0400
commit837e59a0718b8c6a6e7e61e3ccb92697922c8182 (patch)
treee895d4b5574edbda9a904680212c5a7757849ea2 /nonsystemd/elogind-openrc
parent42a7bac0d20df41301480c9452b14b8a56ce1545 (diff)
downloadabslibre-837e59a0718b8c6a6e7e61e3ccb92697922c8182.tar.gz
abslibre-837e59a0718b8c6a6e7e61e3ccb92697922c8182.tar.bz2
abslibre-837e59a0718b8c6a6e7e61e3ccb92697922c8182.zip
addpkg: nonsystemd/elogind-openrc 20210704-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd/elogind-openrc')
-rw-r--r--nonsystemd/elogind-openrc/PKGBUILD24
-rw-r--r--nonsystemd/elogind-openrc/elogind.sv.initd12
2 files changed, 36 insertions, 0 deletions
diff --git a/nonsystemd/elogind-openrc/PKGBUILD b/nonsystemd/elogind-openrc/PKGBUILD
new file mode 100644
index 000000000..38eb7f2dd
--- /dev/null
+++ b/nonsystemd/elogind-openrc/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Maintainer (Artix): artoo <artoo@artixlinux.org>
+
+pkgname=elogind-openrc
+pkgver=20210704
+pkgrel=1
+pkgdesc="OpenRC elogind init script"
+arch=('any')
+url="https://gitea.artixlinux.org/packagesE/elogind-openrc"
+license=('GPL2')
+provides=('init-logind' 'init-elogind')
+conflicts=('init-logind' 'init-elogind')
+source=(#"elogind.confd"
+ "elogind.sv.initd")
+sha256sums=('b4097e85f81f37d8529eb57563813e94b7c7afb9931d892907d805093187761b')
+
+package() {
+ depends=('elogind' 'dbus-openrc')
+# install -Dm755 "${srcdir}"/elogind.confd "${pkgdir}"/etc/conf.d/elogind
+ install -Dm755 "${srcdir}"/elogind.sv.initd "${pkgdir}"/etc/init.d/elogind
+
+ install -d "${pkgdir}"/etc/runlevels/boot
+ ln -sf /etc/init.d/elogind "${pkgdir}"/etc/runlevels/boot/elogind
+}
diff --git a/nonsystemd/elogind-openrc/elogind.sv.initd b/nonsystemd/elogind-openrc/elogind.sv.initd
new file mode 100644
index 000000000..79194b2bb
--- /dev/null
+++ b/nonsystemd/elogind-openrc/elogind.sv.initd
@@ -0,0 +1,12 @@
+#!/usr/bin/openrc-run
+# Copyright 2021 Artix Linux
+# Distributed under the terms of the GNU General Public License v2
+
+supervisor=supervise-daemon
+command="/usr/lib/elogind/elogind"
+
+depend() {
+ need dbus
+ provide logind
+ before xdm
+}