summaryrefslogtreecommitdiff
path: root/community/audit
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-01 00:01:57 +0000
committerroot <root@rshg054.dnsready.net>2012-08-01 00:01:57 +0000
commita71961a43ef48f47d3575915f63099308a18a263 (patch)
tree7cff98e17a13de6beae6d0a56c0d1bf75a74fb5a /community/audit
parent5b3474881a154216b47c6e154552ee5f9c68c509 (diff)
Wed Aug 1 00:01:57 UTC 2012
Diffstat (limited to 'community/audit')
-rw-r--r--community/audit/PKGBUILD8
-rw-r--r--community/audit/auditd.service12
2 files changed, 18 insertions, 2 deletions
diff --git a/community/audit/PKGBUILD b/community/audit/PKGBUILD
index 91d738d59..4a1a22871 100644
--- a/community/audit/PKGBUILD
+++ b/community/audit/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 68379 2012-03-23 14:35:57Z mtorromeo $
+# $Id: PKGBUILD 74552 2012-07-30 13:59:54Z mtorromeo $
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Connor Behan <connor.behan@gmail.com>
# Contributor: henning mueller <henning@orgizm.net>
pkgname=audit
pkgver=2.2.1
-pkgrel=1
+pkgrel=2
pkgdesc='User space utilities for storing and searching the audit records generated by the audit subsystem in the Linux kernel.'
url=http://people.redhat.com/sgrubb/$pkgname
arch=(i686 x86_64)
@@ -28,10 +28,12 @@ backup=(
source=(
$url/$pkgname-$pkgver.tar.gz
auditd.rc
+ auditd.service
python2.patch
)
md5sums=('dc099fcb2f9242d47ecc35b46d71dfd1'
'5f86e87354d0c3b9b408a26daed7a906'
+ '67f6c51891120da038cb790693d8eba1'
'45a33c6bef84f8e1701cb0b5e187336b')
build() {
@@ -51,6 +53,8 @@ package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
+ install -Dm755 "$srcdir/auditd.service" "$pkgdir/usr/lib/systemd/system/auditd.service"
+
cd "$pkgdir"
install -m755 "$srcdir/auditd.rc" etc/rc.d/auditd
install -d var/log/audit
diff --git a/community/audit/auditd.service b/community/audit/auditd.service
new file mode 100644
index 000000000..199b0dcbe
--- /dev/null
+++ b/community/audit/auditd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Audit Daemon
+
+[Service]
+ExecStartPre=/sbin/auditctl -R /etc/audit/audit.rules
+ExecStart=/sbin/auditd -n
+ExecStop=/bin/kill -15 $MAINPID
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=always
+
+[Install]
+WantedBy=multi-user.target