summaryrefslogtreecommitdiff
path: root/skip/audit.xibuild
blob: d77d97d61a8668d89f489a6a78486bcb8422849b (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
#!/bin/sh

MAKEDEPS="make swig"
DEPS="toybox libcap-ng musl"

PKG_VER=3.0.6
SOURCE=https://people.redhat.com/sgrubb/audit/audit-$PKG_VER.tar.gz
ADDITIONAL="
	0003-all-get-rid-of-strndupa.patch
	0004-fix-path-in-au-remote-conf.patch
	auditd.initd
	auditd.confd
    "

DESC="User space tools for 2.6 kernel auditing"

prepare () {
    apply_patches
}

build () {
    ./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-zos-remote \
		--enable-shared=audit
    make
}

check () {
    make -j1 check
}

package () {
    make DESTDIR="$PKG_DEST" install
	install -Dm755 /auditd.initd "$PKG_DEST"/etc/init.d/auditd
	install -Dm644 /auditd.confd "$PKG_DEST"/etc/conf.d/auditd

}