summaryrefslogtreecommitdiff
path: root/pcr/openrc
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-07-12 14:25:06 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-07-30 16:12:05 -0400
commitedf3f5d5fc6d824a2ee12bdef2e056133e1a057d (patch)
tree5bbd105d69824b64bcff0d55e296407e51bd23d7 /pcr/openrc
parentab4f1e4354aa32a02328eb24b608d00500f93610 (diff)
pcr/openrc: Install hooks are NOT the place for documentation
Diffstat (limited to 'pcr/openrc')
-rw-r--r--pcr/openrc/PKGBUILD15
-rw-r--r--pcr/openrc/openrc-init.install3
-rw-r--r--pcr/openrc/openrc-install.hook11
-rw-r--r--pcr/openrc/openrc-remove.hook10
-rw-r--r--pcr/openrc/openrc.install12
5 files changed, 2 insertions, 49 deletions
diff --git a/pcr/openrc/PKGBUILD b/pcr/openrc/PKGBUILD
index e38606d99..af6b45f9b 100644
--- a/pcr/openrc/PKGBUILD
+++ b/pcr/openrc/PKGBUILD
@@ -12,13 +12,9 @@ url="https://wiki.gentoo.org/wiki/Project:OpenRC"
license=('BSD2')
options=('!emptydirs')
source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/OpenRC/openrc/archive/${pkgver}.tar.gz"
- "${pkgbase}.logrotate"
- 'openrc-install.hook'
- 'openrc-remove.hook')
+ "${pkgbase}.logrotate")
sha512sums=('655a0a32650ed46998ae84473e8a82aadd9de09904c5173cd9b9e2500fc8935e96539672b513a883c077ae862ece12ab768d4f379dbeb4389a7067ce7121dc0d'
- '690612fddfb2c4cf8f6b5ba7239b9faf29eb3d9b152ab4dcf62694aa2852780440d08cee56d98a9597607f446b3697c911269562821a8402bb5747cbbae34bd9'
- 'c31c94574f1c604930b572ed74eabdfcbedb344c54668ddeb3214d71de660e9fa8ff445b04ff817f16e62bce43376680d0a1b6c65baa8f6dba30e4ffa230c04a'
- '96bd71dd4fbe1417a640ac7526e83e1b2290732d5e558d7942c87db0dc1ccb7614763d7748b219ac5982b0db66cba9c124506ec939a661d73db4d0b2642f431e')
+ '690612fddfb2c4cf8f6b5ba7239b9faf29eb3d9b152ab4dcf62694aa2852780440d08cee56d98a9597607f446b3697c911269562821a8402bb5747cbbae34bd9')
_args=(
SYSCONFDIR=/etc
@@ -52,7 +48,6 @@ build(){
package_openrc() {
pkgdesc="Gentoo's universal init system"
- install=${pkgbase}.install
depends=('psmisc' 'pam' 'init')
optdepends=('netifrc: Network Interface Management Scripts'
'networkmanager-openrc: NetworkManager')
@@ -82,11 +77,6 @@ package_openrc() {
-e 's|#agetty_options=""|agetty_options=""|' \
-i ${pkgdir}/etc/conf.d/agetty
- # alpm hooks
- for h in openrc-{install,remove}.hook;do
- install -Dm644 ${srcdir}/$h ${pkgdir}/usr/share/libalpm/hooks/$h
- done
-
# license
install -Dm644 ${srcdir}/${pkgbase}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/${pkgbase}/LICENSE"
@@ -105,7 +95,6 @@ package_openrc-init() {
groups=('init')
conflicts=('systemd-sysvcompat' 'sysvinit' 'init')
replaces=('sysvinit')
- install=${pkgbase}-init.install
cd ${srcdir}
install -d ${pkgdir}/usr/bin/ \
diff --git a/pcr/openrc/openrc-init.install b/pcr/openrc/openrc-init.install
deleted file mode 100644
index 7584444cc..000000000
--- a/pcr/openrc/openrc-init.install
+++ /dev/null
@@ -1,3 +0,0 @@
-post_remove() {
- echo " ==> Make sure you install an init provider before you reboot!"
-}
diff --git a/pcr/openrc/openrc-install.hook b/pcr/openrc/openrc-install.hook
deleted file mode 100644
index a85808fac..000000000
--- a/pcr/openrc/openrc-install.hook
+++ /dev/null
@@ -1,11 +0,0 @@
-[Trigger]
-Type = File
-Operation = Install
-Operation = Upgrade
-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
deleted file mode 100644
index d9f966cc5..000000000
--- a/pcr/openrc/openrc-remove.hook
+++ /dev/null
@@ -1,10 +0,0 @@
-[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
diff --git a/pcr/openrc/openrc.install b/pcr/openrc/openrc.install
deleted file mode 100644
index 1877ace8b..000000000
--- a/pcr/openrc/openrc.install
+++ /dev/null
@@ -1,12 +0,0 @@
-pre_install() {
- echo " ==> You can boot up systemd any time if systemd is used for udev."
- echo " ==> Add 'init=/usr/lib/systemd/systemd' to kernel command line."
-}
-
-post_install() {
- echo " ==> Install one of the optional depends for network support!"
-}
-
-post_upgrade() {
- post_install "$1"
-}