# Template file for 'apparmor' pkgname=apparmor version=2.13.4 revision=6 wrksrc="${pkgname}-v${version}" build_wrksrc=libraries/libapparmor build_style=gnu-configure conf_files="/etc/apparmor.d/local/* /etc/apparmor/*" make_dirs="/etc/apparmor.d/disable 0755 root root" hostmakedepends="bison flex autoconf automake libtool gettext swig python3 which" makedepends="perl python3-devel" depends="runit-void-apparmor python3 libapparmor" checkdepends="dejagnu" short_desc="Mandatory access control to restrict programs" maintainer="Olivier Mauras " license="GPL-2.0-only, LGPL-2.1-only" homepage="https://gitlab.com/apparmor/apparmor" distfiles="https://gitlab.com/apparmor/apparmor/-/archive/v${version}/apparmor-v${version}.tar.gz" checksum=4f45e5a5de59b72039c6cf218bb61cb4fc42eeb7f47ca109a58238896394a33b patch_args="-Np1" if [ -z "$CROSS_BUILD" ]; then configure_args="--with-perl --with-python" fi post_patch() { # Make.rules feeds some system headers to the C preprocessor to produce # lists of capability and address-family names that, respectively, # populate 'parser/cap_names.h' and 'parser/af_names.h'. The escaping # backslash in the '\#include" directives here is seen by the # preprocessor, causing it to skip the system headers and produce empty # files. Removing the backslash ensures correct behavior. vsed -i ${wrksrc}/common/Make.rules -e 's/\\#include