summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Miguel2016-02-04 20:24:05 +0000
committerJoão Miguel2016-02-04 20:28:30 +0000
commitd6a162f4cfc1fbf7f0ba58f618d02edc7a554b99 (patch)
tree60b0a8f332b2a8d6fad04146161430545588e89f
parent345bc48b9d2842a46c03c9a6a201f11c25a9196d (diff)
downloadaur-d6a162f4cfc1fbf7f0ba58f618d02edc7a554b99.tar.gz
openrc-core renamed to openrc, description warning; No more prompting to rc-update after upgrading.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD9
-rw-r--r--audit.install4
3 files changed, 11 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fdbedd8825dd..e0a0b89fdd2f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,7 @@
+# Generated by mksrcinfo v8
+# Thu Feb 4 20:28:30 UTC 2016
pkgbase = auditd-openrc
- pkgdesc = OpenRC auditd init script
+ pkgdesc = Auditd init script for OpenRC (from systemd-free.org - not apg's way)
pkgver = 20151011
pkgrel = 1
url = http://people.redhat.com/sgrubb/audit/
@@ -7,7 +9,7 @@ pkgbase = auditd-openrc
arch = any
license = GPL
depends = audit
- depends = openrc-core
+ depends = openrc
source = https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-process/audit/files/auditd-conf.d-2.1.3
source = https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-process/audit/files/auditd-init.d-2.4.3
sha256sums = 792f6bf0630afc649780428440a18f5ba849206eb04feff2a834520a0cfca0a8
diff --git a/PKGBUILD b/PKGBUILD
index 345a21d30f27..8da4959b4a87 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,11 +2,11 @@
pkgname=auditd-openrc
pkgver=20151011
pkgrel=1
-pkgdesc="OpenRC auditd init script"
+pkgdesc="Auditd init script for OpenRC (from systemd-free.org - not apg's way)"
url='http://people.redhat.com/sgrubb/audit/'
arch=('any')
license=('GPL')
-depends=('audit' 'openrc-core')
+depends=('audit' 'openrc')
install='audit.install'
_base_url="https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-process/audit/files"
source=("$_base_url/auditd-conf.d-2.1.3"
@@ -24,6 +24,11 @@ _inst_confd(){
}
_inst_initd(){
install -Dm755 "${srcdir}/${1}-init.d-2.4.3" "${pkgdir}/etc/init.d/$1"
+
+ sed -e 's|#!/sbin/runscript|#!/usr/bin/openrc-run|' \
+ -e 's|/var/run|/run|g' \
+ -i "${pkgdir}/etc/init.d/$1"
+ # ^^--- should work without this, but actually does not (at boot)
}
package() {
diff --git a/audit.install b/audit.install
index 7e93f7707a34..5411647c2106 100644
--- a/audit.install
+++ b/audit.install
@@ -6,10 +6,6 @@ post_install() {
echo " ==> run '${_cmd}'"
}
-post_upgrade() {
- post_install "$1"
-}
-
post_remove() {
_cmd="rc-update del ${_svc} ${_rlvl}"
echo " ==> run '${_cmd}'"