# Template file for 'audit' pkgname=audit version=2.8.4 revision=2 build_style=gnu-configure configure_args="--libdir=/usr/lib --enable-shared=audit --enable-gssapi-krb5 --with-apparmor --with-libcap-ng --with-python --with-python3" hostmakedepends="automake libtool pkg-config intltool python python3 swig" makedepends="mit-krb5-devel libldap-devel libapparmor-devel libcap-ng-devel python-devel python3-devel" make_dirs="/var/log/audit 0700 root root" short_desc="Linux Security Auditing Framework" maintainer="Cameron Nemo " license="GPL-2.0-or-later, LGPL-2.0-or-later" homepage="https://people.redhat.com/sgrubb/audit" distfiles="${homepage}/${pkgname}-${version}.tar.gz" checksum=a410694d09fc5708d980a61a5abcb9633a591364f1ecc7e97ad5daef9c898c38 if [ "$CROSS_BUILD" ]; then pre_configure() { sed -i "s;^PYINCLUDEDIR=.*;PYINCLUDEDIR=${XBPS_CROSS_BASE}/usr/include/python${py2_ver};" configure } 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() { archs=noarch 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}" pkg_install() { vmove usr/include/libaudit.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 vmove usr/share/man/man3/set_aumessage_mode.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*" } } python-audit_package() { lib32disabled=yes short_desc+=" - Python2 bindings" pycompile_module="audit.py" pkg_install() { vmove "usr/lib/python2*" } } python3-audit_package() { lib32disabled=yes short_desc+=" - Python3 bindings" pycompile_module="audit.py" pkg_install() { vmove "usr/lib/python3*" } }