diff options
author | root <root@rshg054.dnsready.net> | 2011-10-27 23:14:53 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-10-27 23:14:53 +0000 |
commit | 0424b5fc47f106db6498c4cda3476e1d49fe0f82 (patch) | |
tree | f5c4ef7fa0139ce627e74b3bc58f35115c7e09ff /community/audit/PKGBUILD | |
parent | 84fe155e2233db86fcc13134d8802ba1dab0ae83 (diff) |
Thu Oct 27 23:14:53 UTC 2011
Diffstat (limited to 'community/audit/PKGBUILD')
-rw-r--r-- | community/audit/PKGBUILD | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/community/audit/PKGBUILD b/community/audit/PKGBUILD new file mode 100644 index 000000000..d5ee232b4 --- /dev/null +++ b/community/audit/PKGBUILD @@ -0,0 +1,59 @@ +# $Id: PKGBUILD 57389 2011-10-26 20:55:52Z 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.1.3 +pkgrel=1 +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) +depends=(linux-headers python2 libldap) +makedepends=(libldap swig) +license=(GPL) +options=(!libtool emptydirs) +backup=( + etc/libaudit.conf + etc/audit/audit.rules + etc/audit/auditd.conf + etc/audisp/audispd.conf + etc/audisp/audisp-remote.conf + etc/audisp/zos-remote.conf + etc/audisp/plugins.d/af_unix.conf + etc/audisp/plugins.d/audispd-zos-remote.conf + etc/audisp/plugins.d/au-remote.conf + etc/audisp/plugins.d/syslog.conf +) +source=( + $url/$pkgname-$pkgver.tar.gz + auditd.rc + python2.patch +) +md5sums=( + abf26e3ac09f666905c5636dd24611fa + bd5574064e0c88748aebf0cd92ebcf0c + 45a33c6bef84f8e1701cb0b5e187336b +) + +build() { + cd "$srcdir/$pkgname-$pkgver" + patch -p0 -i "$srcdir/python2.patch" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/audit \ + --with-apparmor + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + + cd "$pkgdir" + install -m755 "$srcdir/auditd.rc" etc/rc.d/auditd + install -d var/log/audit + rm -rf etc/rc.d/init.d etc/sysconfig + mv usr/sbin sbin +} |