blob: 7c02c8729d03a86fe6083913da13e0dc15dac365 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: João Miguel <jmcf125 at openmailbox dot org>
pkgname=auditd-openrc
pkgver=20161001
pkgrel=1
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')
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"
"$_base_url/auditd-init.d-2.4.3")
# better to have different versions ^^^-- rather than an outdated init file
sha256sums=('792f6bf0630afc649780428440a18f5ba849206eb04feff2a834520a0cfca0a8'
'f30f3bdf906d98fa0c40055a0b0f474b2ac6ebe69da5aa738caf464fadd0cb47')
pkgver() {
date +%Y%m%d
}
_inst_confd(){
install -Dm755 "${srcdir}/${1}-conf.d-2.1.3" "${pkgdir}/etc/conf.d/$1"
}
_inst_initd(){
install -Dm755 "${srcdir}/${1}-init.d-2.4.3" "${pkgdir}/etc/init.d/$1"
sed -e 's|#!.*|#!/usr/bin/openrc-run|' \ # .* because Gentoo keeps changing the link
-e 's|/var/run|/run|g' \
-i "${pkgdir}/etc/init.d/$1"
# ^^--- should work without this, but actually does not (at boot)
}
package() {
_inst_confd 'auditd'
_inst_initd 'auditd'
}
|