summaryrefslogtreecommitdiff
path: root/nonsystemd
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2019-11-14 15:58:35 -0300
committerDavid P <megver83@parabola.nu>2019-11-14 15:58:35 -0300
commitf1c2fe7e17b688f3ec312ce47aa8897f185c1f1d (patch)
tree8004ec6cb585e0083cd5b6855fd8494b31c250de /nonsystemd
parent4e8cac0e39c48778313cd324090fad4138bb7025 (diff)
downloadabslibre-f1c2fe7e17b688f3ec312ce47aa8897f185c1f1d.tar.gz
abslibre-f1c2fe7e17b688f3ec312ce47aa8897f185c1f1d.tar.bz2
abslibre-f1c2fe7e17b688f3ec312ce47aa8897f185c1f1d.zip
nonsystemd/opentmpfiles: install openrc init script
include it here instead of doing it in openrc Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd')
-rw-r--r--nonsystemd/opentmpfiles/PKGBUILD14
1 files changed, 12 insertions, 2 deletions
diff --git a/nonsystemd/opentmpfiles/PKGBUILD b/nonsystemd/opentmpfiles/PKGBUILD
index 25a366aac..c6dc9824f 100644
--- a/nonsystemd/opentmpfiles/PKGBUILD
+++ b/nonsystemd/opentmpfiles/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=opentmpfiles
pkgver=0.2
-pkgrel=1
+pkgrel=2
pkgdesc="A standalone utility for handling systemd-style tmpfiles.d settings"
arch=('any')
url="https://github.com/OpenRC/opentmpfiles"
@@ -31,7 +31,17 @@ package_opentmpfiles() {
ln -snf "/usr/bin/tmpfiles" "${pkgdir}/usr/bin/systemd-tmpfiles"
+ install -d "${pkgdir}"/etc/{conf,init}.d "${pkgdir}"/etc/runlevels/{boot,sysinit}
+
+ install -m755 openrc/opentmpfiles-dev.confd "${pkgdir}"/etc/conf.d/opentmpfiles-dev
+ install -m755 openrc/opentmpfiles-dev.initd "${pkgdir}"/etc/init.d/opentmpfiles-dev
+
+ install -m755 openrc/opentmpfiles-setup.confd "${pkgdir}"/etc/conf.d/opentmpfiles-setup
+ install -m755 openrc/opentmpfiles-setup.initd "${pkgdir}"/etc/init.d/opentmpfiles-setup
+
+ ln -snf /etc/init.d/opentmpfiles-dev "${pkgdir}"/etc/runlevels/sysinit/opentmpfiles-dev
+ ln -snf /etc/init.d/opentmpfiles-setup "${pkgdir}"/etc/runlevels/boot/opentmpfiles-setup
+
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 "license" "${pkgdir}/usr/share/licenses/${pkgname}/"
}
-