summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/openrc/PKGBUILD19
-rw-r--r--pcr/openrc/openrc-install.hook10
-rw-r--r--pcr/openrc/openrc-remove.hook10
3 files changed, 34 insertions, 5 deletions
diff --git a/pcr/openrc/PKGBUILD b/pcr/openrc/PKGBUILD
index 135d6d487..cc27453b5 100644
--- a/pcr/openrc/PKGBUILD
+++ b/pcr/openrc/PKGBUILD
@@ -5,8 +5,8 @@
_url="https://github.com/OpenRC/openrc/archive"
pkgname=openrc
-pkgver=0.20.5
-pkgrel=2
+pkgver=0.21
+pkgrel=1
pkgdesc="Gentoo's universal init system"
arch=('i686' 'x86_64' 'armv7h')
url="http://www.gentoo.org/proj/en/base/openrc/"
@@ -25,12 +25,17 @@ backup=('etc/rc.conf'
'etc/conf.d/modules'
'etc/conf.d/hwclock'
'etc/inittab')
+#options=('emptydirs')
source=("${pkgname}-${pkgver}.tar.gz::${_url}/${pkgver}.tar.gz"
"${pkgname}.logrotate"
- 'use-optional-modules-load-d.patch')
-sha256sums=('3929193306f6033547331f65bcddb01c23edc770f725cc4750a252574b66aef4'
+ 'use-optional-modules-load-d.patch'
+ 'openrc-install.hook'
+ 'openrc-remove.hook')
+sha256sums=('65e83e8b5c2f4316a827e49f4c3da7d98cf02f62b37d6a15d636bb8b9cf5a6e4'
'0b44210db9770588bd491cd6c0ac9412d99124c6be4c9d3f7d31ec8746072f5c'
- 'b8b750c863199e9c039e874c3c79c72d468f35442750156dfbdf503a27977cf3')
+ 'b8b750c863199e9c039e874c3c79c72d468f35442750156dfbdf503a27977cf3'
+ '50bb30157a1669a32cb42b11737ad14a199844cb4469f80bdff6a2d5cde4c544'
+ 'cbb4d00262a55a508114cb31e3903350be2cff748a4fb5e120dc745292e3987e')
_args=(SYSCONFDIR=/etc)
_args+=(PREFIX=/usr)
@@ -68,4 +73,8 @@ package() {
install -d ${pkgdir}/usr/lib/rc/cache
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+
+ for f in openrc-{install,remove}.hook;do
+ install -Dm644 ${srcdir}/$f ${pkgdir}/usr/share/libalpm/hooks/$f
+ done
}
diff --git a/pcr/openrc/openrc-install.hook b/pcr/openrc/openrc-install.hook
new file mode 100644
index 000000000..ff487db7d
--- /dev/null
+++ b/pcr/openrc/openrc-install.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Type = File
+Operation = Install
+Target = etc/init.d/*
+
+[Action]
+Description = Displaying openrc service help ...
+When = PostTransaction
+Exec = /bin/bash -c 'echo " ==> Add a service to runlevel:"; echo " rc-update add <service> <runlevel>"'
+NeedsTargets
diff --git a/pcr/openrc/openrc-remove.hook b/pcr/openrc/openrc-remove.hook
new file mode 100644
index 000000000..d9f966cc5
--- /dev/null
+++ b/pcr/openrc/openrc-remove.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Type = File
+Operation = Remove
+Target = etc/init.d/*
+
+[Action]
+Description = Displaying openrc service help ...
+When = PostTransaction
+Exec = /bin/bash -c 'echo " ==> Remove a service from runlevel:"; echo " rc-update del <service> <runlevel>"'
+NeedsTargets