diff options
author | Ross Burton <ross.burton@intel.com> | 2019-01-14 14:42:07 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-01-17 15:53:25 -0800 |
commit | 4918d0b0252f2dae59d5d59d54101d385002c129 (patch) | |
tree | bf8016c15d95fe4ff610250a815ba8d80847e7e5 | |
parent | 230ee1fc353e0e27dbb66855785ff6156e6bba75 (diff) | |
download | meta-security-4918d0b0252f2dae59d5d59d54101d385002c129.tar.gz |
apparmor: if Perl is disabled remove perl-using scripts
aa-notify uses the Perl bindings, so isn't usable when perl is disabled.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/AppArmor/apparmor_2.12.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-security/AppArmor/apparmor_2.12.bb b/recipes-security/AppArmor/apparmor_2.12.bb index 92602f3..ac03a56 100644 --- a/recipes-security/AppArmor/apparmor_2.12.bb +++ b/recipes-security/AppArmor/apparmor_2.12.bb | |||
@@ -86,6 +86,11 @@ do_install () { | |||
86 | oe_runmake -C ${B}/parser DESTDIR="${D}" install | 86 | oe_runmake -C ${B}/parser DESTDIR="${D}" install |
87 | oe_runmake -C ${B}/profiles DESTDIR="${D}" install | 87 | oe_runmake -C ${B}/profiles DESTDIR="${D}" install |
88 | 88 | ||
89 | # If perl is disabled this script won't be any good | ||
90 | if ! ${@bb.utils.contains('PACKAGECONFIG','perl','true','false', d)}; then | ||
91 | rm -f ${D}${sbindir}/aa-notify | ||
92 | fi | ||
93 | |||
89 | if test -z "${HTTPD}" ; then | 94 | if test -z "${HTTPD}" ; then |
90 | oe_runmake -C ${B}/changehat/mod_apparmor DESTDIR="${D}" install | 95 | oe_runmake -C ${B}/changehat/mod_apparmor DESTDIR="${D}" install |
91 | fi | 96 | fi |