-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathtemplate
More file actions
116 lines (105 loc) · 3.04 KB
/
Copy pathtemplate
File metadata and controls
116 lines (105 loc) · 3.04 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Template file for 'audit'
pkgname=audit
version=4.2.1
revision=1
build_style=gnu-configure
configure_args="--libdir=/usr/lib --enable-shared=audit --enable-gssapi-krb5
--with-apparmor --with-libcap-ng --with-python3"
hostmakedepends="automake libtool pkg-config gettext python3-setuptools
python3-packaging-bootstrap swig tar"
makedepends="mit-krb5-devel libldap-devel libapparmor-devel libcap-ng-devel
python3-devel"
make_dirs="/var/log/audit 0700 root root"
short_desc="Linux Security Auditing Framework"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.0-or-later"
homepage="https://github.com/linux-audit/audit-documentation/wiki"
changelog="https://raw.githubusercontent.com/linux-audit/audit-userspace/master/ChangeLog"
distfiles="https://github.com/linux-audit/audit-userspace/archive/refs/tags/v${version}.tar.gz"
checksum=42876d195ee2ded19e5f72d7664096eee314928aa36ad346719ba5b25818fc84
if [ "$XBPS_TARGET_LIBC" = musl ]; then
configure_args+=" --disable-zos-remote"
fi
pre_configure() {
autoreconf -fi
}
post_install() {
vinstall rules/10-base-config.rules 644 etc/audit/rules.d
vmkdir usr/share/examples/audit/rules.d
vcopy "rules/*" usr/share/examples/audit/rules.d
rm -rf -- "${DESTDIR}/etc/rc.d"
rm -rf -- "${DESTDIR}/etc/sysconfig"
vsv auditd
vsv auditctl
}
libaudit-common_package() {
short_desc+=" - Library common files"
pkg_install() {
vmove etc/libaudit.conf
vmove usr/share/man/man5/libaudit.conf.5
}
}
libaudit_package() {
short_desc+=" - Library"
depends="libaudit-common-${version}_${revision}"
pkg_install() {
vmove "usr/lib/libaudit.so.*"
}
}
libaudit-devel_package() {
short_desc+=" - Library development files"
depends="libaudit-${version}_${revision} libcap-ng-devel"
pkg_install() {
vmove usr/include/libaudit.h
vmove usr/include/audit_logging.h
vmove usr/include/audit-records.h
vmove usr/lib/libaudit.a
vmove usr/lib/libaudit.so
vmove usr/lib/pkgconfig/audit.pc
vmove usr/share/aclocal/audit.m4
vmove "usr/share/man/man3/audit*"
vmove usr/share/man/man3/get_auditfail_action.3
}
}
libauparse_package() {
short_desc+=" - Parsing Library"
pkg_install() {
vmove "usr/lib/libauparse.so.*"
}
}
libauparse-devel_package() {
short_desc+=" - Parsing Library development files"
depends="libauparse-${version}_${revision}"
pkg_install() {
vmove "usr/include/auparse*.h"
vmove usr/lib/libauparse.a
vmove usr/lib/libauparse.so
vmove usr/lib/pkgconfig/auparse.pc
vmove "usr/share/man/man3/auparse*"
vmove "usr/share/man/man3/ausearch*"
}
}
libauplugin_package() {
short_desc+=" - Plugin Library"
pkg_install() {
vmove "usr/lib/libauplugin.so.*"
}
}
libauplugin-devel_package() {
short_desc+=" - Plugin Library development files"
depends="libauplugin-${version}_${revision}"
pkg_install() {
vmove usr/include/auplugin.h
vmove usr/lib/libauplugin.a
vmove usr/lib/libauplugin.so
vmove "usr/share/man/man3/auplugin*"
}
}
python3-audit_package() {
lib32disabled=yes
short_desc+=" - Python3 bindings"
depends="python3"
pkg_install() {
vmove "usr/lib/python3*"
}
}