82 lines
2.5 KiB
Text
82 lines
2.5 KiB
Text
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
# Maintainer : Christian Rebischke <Chris.Rebischke@archlinux.org>
|
|
# Contributor: Daniel Micay <danielmicay@gmail.com>
|
|
# Contributor: <kang@insecure.ws>
|
|
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
|
# Contributor: Connor Behan <connor.behan@gmail.com>
|
|
# Contributor: henning mueller <henning@orgizm.net>
|
|
|
|
pkgbase=audit
|
|
pkgname=('audit' 'python-audit')
|
|
pkgver=3.0.7
|
|
pkgrel=1
|
|
pkgdesc='Userspace components of the audit framework'
|
|
url='https://people.redhat.com/sgrubb/audit'
|
|
arch=('x86_64')
|
|
makedepends=('glibc' 'krb5' 'libcap-ng' 'libldap' 'swig' 'linux-headers' 'python')
|
|
license=('GPL')
|
|
options=('emptydirs' 'debug')
|
|
source=(https://people.redhat.com/sgrubb/audit/${pkgname}-${pkgver}.tar.gz)
|
|
sha512sums=('b5662b32082fc2ac54e247aa0db5442d76afa30134ebba1d624a17004e9ccf6856bb75344af4ce9d9a0a66c03e1c6f18b7d45658d7df13ea71af0c8362e08d70')
|
|
b2sums=('706db746fb779913619da794bab24a9e890e1655bbd0abb007cbc909b32ab1d643e93953a23ef864d5e189f3447a7ddb4dca1478144cdc226f5a5594545bd28f')
|
|
|
|
prepare() {
|
|
cd ${pkgbase}-${pkgver}
|
|
sed 's|/var/run/auditd.pid|/run/auditd.pid|' -i init.d/auditd.service
|
|
}
|
|
|
|
build() {
|
|
cd ${pkgbase}-${pkgver}
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sbindir=/usr/bin \
|
|
--sysconfdir=/etc \
|
|
--libexecdir=/usr/lib/audit \
|
|
--enable-gssapi-krb5=yes \
|
|
--enable-systemd=yes \
|
|
--with-libcap-ng=yes
|
|
make
|
|
[ -n "${SOURCE_DATE_EPOCH}" ] && touch -h -d @$SOURCE_DATE_EPOCH bindings/swig/python/audit.py
|
|
}
|
|
|
|
package_audit() {
|
|
depends=('glibc' 'krb5' libkrb5.so libgssapi_krb5.so 'libcap-ng' libcap-ng.so)
|
|
provides=('libaudit.so' 'libauparse.so')
|
|
backup=(
|
|
etc/libaudit.conf
|
|
etc/audit/audit-stop.rules
|
|
etc/audit/auditd.conf
|
|
etc/audit/audisp-remote.conf
|
|
etc/audit/zos-remote.conf
|
|
etc/audit/plugins.d/af_unix.conf
|
|
etc/audit/plugins.d/au-remote.conf
|
|
etc/audit/plugins.d/audispd-zos-remote.conf
|
|
etc/audit/plugins.d/syslog.conf
|
|
)
|
|
|
|
cd ${pkgbase}-${pkgver}
|
|
make DESTDIR="${pkgdir}" INSTALL='install -p' install
|
|
|
|
cd "${pkgdir}"
|
|
install -d -m 0700 var/log/audit
|
|
rm -rf etc/rc.d \
|
|
etc/sysconfig \
|
|
usr/lib/audit \
|
|
usr/lib/python*
|
|
|
|
sed -ri 's|/sbin|/usr/bin|' \
|
|
etc/audit/*.conf \
|
|
etc/audit/plugins.d/*.conf \
|
|
usr/lib/systemd/system/auditd.service
|
|
|
|
chmod 644 usr/lib/systemd/system/auditd.service
|
|
}
|
|
|
|
package_python-audit() {
|
|
depends=('python' 'audit')
|
|
pkgdesc+=' (python bindings)'
|
|
cd ${pkgbase}-${pkgver}
|
|
make -C bindings DESTDIR="${pkgdir}" INSTALL='install -p' install
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|