2015-12-12 07:14:47 +08:00
|
|
|
#Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/audit
|
2012-04-22 07:17:48 +08:00
|
|
|
|
|
|
|
pkgname=audit
|
2015-12-12 07:14:47 +08:00
|
|
|
pkgver=2.4.4
|
2013-07-21 22:35:25 +08:00
|
|
|
pkgrel=1
|
2012-04-22 07:17:48 +08:00
|
|
|
pkgdesc='User space utilities for storing and searching the audit records generated by the audit subsystem in the Linux kernel.'
|
2014-09-27 12:14:36 +08:00
|
|
|
url="http://people.redhat.com/sgrubb/audit"
|
2012-12-18 09:41:06 +08:00
|
|
|
arch=('x86_64')
|
2015-12-12 07:14:47 +08:00
|
|
|
depends=('krb5' 'libcap-ng')
|
|
|
|
makedepends=('libldap' 'linux-headers' 'python3' 'swig')
|
2012-04-22 07:17:48 +08:00
|
|
|
license=(GPL)
|
2015-12-12 07:14:47 +08:00
|
|
|
options=(emptydirs)
|
2012-12-18 09:41:06 +08:00
|
|
|
backup=(etc/libaudit.conf
|
2014-09-27 12:14:36 +08:00
|
|
|
etc/audit/rules.d/audit.rules
|
2012-04-22 07:17:48 +08:00
|
|
|
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)
|
2013-07-21 22:35:25 +08:00
|
|
|
source=("$url/$pkgname-$pkgver.tar.gz")
|
2015-12-12 07:14:47 +08:00
|
|
|
sha256sums=('25f57f465f3230d7b1166b615ffd6748818a3dc225d0e8b396c5b2e951674e23')
|
2012-04-22 07:17:48 +08:00
|
|
|
|
|
|
|
build() {
|
2015-12-12 07:14:47 +08:00
|
|
|
cd $pkgname-$pkgver
|
2012-04-22 07:17:48 +08:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2014-09-27 12:14:36 +08:00
|
|
|
--sbindir=/usr/bin \
|
2012-04-22 07:17:48 +08:00
|
|
|
--sysconfdir=/etc \
|
2014-09-27 12:14:36 +08:00
|
|
|
--libexecdir=/usr/lib/audit \
|
2012-04-22 07:17:48 +08:00
|
|
|
--with-python=yes \
|
|
|
|
--enable-gssapi-krb5=yes \
|
2013-07-21 22:35:25 +08:00
|
|
|
--with-apparmor \
|
|
|
|
--enable-gssapi-krb5=yes \
|
2015-12-12 07:14:47 +08:00
|
|
|
--enable-systemd \
|
|
|
|
--with-libcap-ng=yes
|
2012-04-22 07:17:48 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-09-27 12:14:36 +08:00
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
cd "$pkgdir"
|
2012-04-22 07:17:48 +08:00
|
|
|
install -d var/log/audit
|
2014-09-27 12:14:36 +08:00
|
|
|
rm -rf etc/rc.d etc/sysconfig
|
|
|
|
|
|
|
|
sed -ri 's|/sbin|/usr/bin|' \
|
|
|
|
etc/audit/*.conf \
|
|
|
|
etc/audisp/plugins.d/*.conf \
|
|
|
|
usr/lib/systemd/system/auditd.service
|
2015-12-12 07:14:47 +08:00
|
|
|
|
|
|
|
chmod 644 usr/lib/systemd/system/auditd.service
|
|
|
|
mv "$pkgdir"/etc/audit/{rules.d/,}audit.rules
|
2012-04-22 07:17:48 +08:00
|
|
|
}
|