diff options
-rw-r--r-- | recipes-mac/AppArmor/apparmor_3.1.3.bb (renamed from recipes-mac/AppArmor/apparmor_3.0.7.bb) | 7 | ||||
-rw-r--r-- | recipes-mac/AppArmor/files/0001-rc.apparmor.debian-add-missing-functions.patch | 57 |
2 files changed, 3 insertions, 61 deletions
diff --git a/recipes-mac/AppArmor/apparmor_3.0.7.bb b/recipes-mac/AppArmor/apparmor_3.1.3.bb index e7d677e..fd649e4 100644 --- a/recipes-mac/AppArmor/apparmor_3.0.7.bb +++ b/recipes-mac/AppArmor/apparmor_3.1.3.bb | |||
@@ -14,15 +14,14 @@ LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=fd57a4b0bc782d7b80fd431f10bbf9d0" | |||
14 | DEPENDS = "bison-native apr gettext-native coreutils-native swig-native" | 14 | DEPENDS = "bison-native apr gettext-native coreutils-native swig-native" |
15 | 15 | ||
16 | SRC_URI = " \ | 16 | SRC_URI = " \ |
17 | git://gitlab.com/apparmor/apparmor.git;protocol=https;branch=apparmor-3.0 \ | 17 | git://gitlab.com/apparmor/apparmor.git;protocol=https;branch=apparmor-3.1 \ |
18 | file://run-ptest \ | 18 | file://run-ptest \ |
19 | file://crosscompile_perl_bindings.patch \ | 19 | file://crosscompile_perl_bindings.patch \ |
20 | file://0001-Makefile.am-suppress-perllocal.pod.patch \ | 20 | file://0001-Makefile.am-suppress-perllocal.pod.patch \ |
21 | file://0001-Makefile-fix-hardcoded-installation-directories.patch \ | 21 | file://0001-Makefile-fix-hardcoded-installation-directories.patch \ |
22 | file://0001-rc.apparmor.debian-add-missing-functions.patch \ | ||
23 | " | 22 | " |
24 | 23 | ||
25 | SRCREV = "0ead606d9e608801f45e13a34358036135470729" | 24 | SRCREV = "e69cb5047946818e6a9df326851483bb075a5cfe" |
26 | S = "${WORKDIR}/git" | 25 | S = "${WORKDIR}/git" |
27 | 26 | ||
28 | PARALLEL_MAKE = "" | 27 | PARALLEL_MAKE = "" |
@@ -95,7 +94,7 @@ do_install () { | |||
95 | 94 | ||
96 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then | 95 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then |
97 | install -d ${D}${sysconfdir}/init.d | 96 | install -d ${D}${sysconfdir}/init.d |
98 | install -m 755 ${B}/parser/rc.apparmor.debian ${D}${sysconfdir}/init.d/apparmor | 97 | install -m 755 ${B}/parser/rc.apparmor.functions ${D}${sysconfdir}/init.d/apparmor |
99 | fi | 98 | fi |
100 | 99 | ||
101 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 100 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
diff --git a/recipes-mac/AppArmor/files/0001-rc.apparmor.debian-add-missing-functions.patch b/recipes-mac/AppArmor/files/0001-rc.apparmor.debian-add-missing-functions.patch deleted file mode 100644 index 53bdde8..0000000 --- a/recipes-mac/AppArmor/files/0001-rc.apparmor.debian-add-missing-functions.patch +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | From a737c95ac0f887c365fe8f16583ea95da79de1e9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Mon, 21 Jun 2021 16:53:39 +0800 | ||
4 | Subject: [PATCH] rc.apparmor.debian: add missing functions | ||
5 | |||
6 | Add missing functions: | ||
7 | aa_log_action_start | ||
8 | aa_log_action_end | ||
9 | aa_log_daemon_msg | ||
10 | aa_log_end_msg | ||
11 | |||
12 | Fixes: | ||
13 | $ /etc/init.d/apparmor start | ||
14 | /lib/apparmor/rc.apparmor.functions: line 294: aa_log_daemon_msg: command not found | ||
15 | /lib/apparmor/rc.apparmor.functions: line 214: aa_log_action_start: command not found | ||
16 | |||
17 | Upstream-Status: Pending | ||
18 | |||
19 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
20 | --- | ||
21 | parser/rc.apparmor.debian | 20 ++++++++++++++++++++ | ||
22 | 1 file changed, 20 insertions(+) | ||
23 | |||
24 | diff --git a/parser/rc.apparmor.debian b/parser/rc.apparmor.debian | ||
25 | index 8efd4400..f35124e8 100644 | ||
26 | --- a/parser/rc.apparmor.debian | ||
27 | +++ b/parser/rc.apparmor.debian | ||
28 | @@ -70,6 +70,26 @@ aa_log_skipped_msg() { | ||
29 | echo ": Skipped." | ||
30 | } | ||
31 | |||
32 | +aa_log_action_start() | ||
33 | +{ | ||
34 | + echo "$@" | ||
35 | +} | ||
36 | + | ||
37 | +aa_log_action_end() | ||
38 | +{ | ||
39 | + printf "" | ||
40 | +} | ||
41 | + | ||
42 | +aa_log_daemon_msg() | ||
43 | +{ | ||
44 | + echo "$@" | ||
45 | +} | ||
46 | + | ||
47 | +aa_log_end_msg() | ||
48 | +{ | ||
49 | + printf "" | ||
50 | +} | ||
51 | + | ||
52 | usage() { | ||
53 | echo "Usage: $0 {start|stop|restart|try-restart|reload|force-reload|status|kill}" | ||
54 | } | ||
55 | -- | ||
56 | 2.17.1 | ||
57 | |||