diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-14 19:20:46 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-14 19:20:46 -0400 |
commit | f7fd1d99d87f11c41cf09f881b1aeb950a3c8e13 (patch) | |
tree | 95910fb3078e1136e35aaa6d9f0f251cdb4ca1a8 /pcr/audit/PKGBUILD | |
parent | 09c1bb45d89c78a9fd80c7a500cb29a0908dc668 (diff) | |
parent | cd640e7ca0a8968edf887d03db8224334f663e84 (diff) | |
download | abslibre-f7fd1d99d87f11c41cf09f881b1aeb950a3c8e13.tar.gz abslibre-f7fd1d99d87f11c41cf09f881b1aeb950a3c8e13.tar.bz2 abslibre-f7fd1d99d87f11c41cf09f881b1aeb950a3c8e13.zip |
Merge branch 'master' of git://projects.parabolagnulinux.org/abslibre
Diffstat (limited to 'pcr/audit/PKGBUILD')
-rw-r--r-- | pcr/audit/PKGBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pcr/audit/PKGBUILD b/pcr/audit/PKGBUILD new file mode 100644 index 000000000..0366595f2 --- /dev/null +++ b/pcr/audit/PKGBUILD @@ -0,0 +1,62 @@ +# Contributor (Arch) : <kang@insecure.ws> +# Contributor (Arch) : Massimiliano Torromeo <massimiliano.torromeo@gmail.com> +# Contributor (Arch) : Connor Behan <connor.behan@gmail.com> +# Contributor (Arch) : henning mueller <henning@orgizm.net> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=audit +pkgver=2.3.6 +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/audit" +arch=(i686 x86_64) +depends=(krb5 libcap-ng) +makedepends=(libldap swig linux-headers python2) +license=(GPL) +options=(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") + +build() { + cd "$srcdir/$pkgname-$pkgver" + export PYTHON=/usr/bin/python2 + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/audit \ + --with-python=yes \ + --enable-gssapi-krb5=yes \ + --enable-systemd=yes \ + --with-libcap-ng=yes + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + + cd "$pkgdir" + install -d var/log/audit + rm -rf etc/rc.d etc/sysconfig usr/lib/audit + + sed -ri 's|/sbin|/usr/bin|' \ + etc/audit/*.conf \ + etc/audisp/plugins.d/*.conf \ + usr/lib/systemd/system/auditd.service + + chmod 644 usr/lib/systemd/system/auditd.service + mv "$pkgdir"/etc/audit/{rules.d/,}audit.rules +} + |