blob: 5b3be46f02c2523ddeb560f0d0468cb1165c8abb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# $Id: PKGBUILD 88732 2013-04-22 07:51:09Z 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.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 mips64el)
depends=(krb5 libcap-ng)
makedepends=(libldap swig linux-headers python2)
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
auditd.service
python2.patch
)
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -p0 -i "$srcdir/python2.patch"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/audit \
--with-python=yes \
--enable-gssapi-krb5=yes \
--with-libcap-ng=yes #--with-apparmor=yes
make
}
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
rm -rf etc/rc.d/init.d etc/sysconfig
sed -ri 's| /sbin| /usr/sbin|' etc/audit/*.conf etc/audisp/plugins.d/*.conf
}
sha256sums=('2fc8f97020121593f516dc011ef61f39043c4cea9b2cb9ab3849bf9e41dedf02'
'1e374ff164667b6a11f84c825a39996b449dc712d573996907cd47f063bf0dd5'
'3c7179f40216b594675f26bb73884406c8ac91577b609dd1ab9837f889954007'
'6adadb405bebe99bb6a50e80e7c1a356996626e135d566283448fe4019fff3a4')
|