diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2019-04-15 11:16:07 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2019-04-15 09:02:21 -0400 |
commit | e0105eed2b2461bf08b7aaf71db12dfae6ca51e3 (patch) | |
tree | 22d25843e34e35543883c49ec59ca92aa37afc65 | |
parent | c0186953ac0396d415477b2c709decded5df4e32 (diff) | |
download | meta-selinux-e0105eed2b2461bf08b7aaf71db12dfae6ca51e3.tar.gz |
audit: change to use ${WORKDIR} instead ${S}/../
The do_install function is assuming that ${S}/../ is ${WORKDIR},
but this is not true when using `devtool modify audit'.
So change to use ${WORKDIR}.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | recipes-security/audit/audit_2.8.4.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-security/audit/audit_2.8.4.bb b/recipes-security/audit/audit_2.8.4.bb index c29bb74..594786a 100644 --- a/recipes-security/audit/audit_2.8.4.bb +++ b/recipes-security/audit/audit_2.8.4.bb | |||
@@ -82,7 +82,7 @@ do_install_append() { | |||
82 | rmdir ${D}/etc/sysconfig/ | 82 | rmdir ${D}/etc/sysconfig/ |
83 | 83 | ||
84 | # replace init.d | 84 | # replace init.d |
85 | install -D -m 0755 ${S}/../auditd ${D}/etc/init.d/auditd | 85 | install -D -m 0755 ${WORKDIR}/auditd ${D}/etc/init.d/auditd |
86 | rm -rf ${D}/etc/rc.d | 86 | rm -rf ${D}/etc/rc.d |
87 | 87 | ||
88 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 88 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |