aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Carlos Santos <casantos@datacom.com.br>2018-06-04 23:08:42 -0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-07-17 09:10:36 +0200
commit941c781f5bcb69da0eef64bcdc114b7f29811a02 (patch)
tree3595e134f21c268d4b2da435d77193a91fde2e73
parent6eddb997357e5afd5a0af524fa638ccecbff1d30 (diff)
downloadbuildroot-941c781f5bcb69da0eef64bcdc114b7f29811a02.tar.gz
buildroot-941c781f5bcb69da0eef64bcdc114b7f29811a02.tar.bz2
audit: do not remove file installed by netplug
The package recipe uses a post-install hook to remove useless files from $(TARGET_DIR)/etc/rc.d/init.d and $(TARGET_DIR)/etc/sysconfig. This may damage packages that install useful files on those directories (such as netplug, which installs $(TARGET_DIR)/etc/rc.d/init.d/netplugd). In the future[1] we will reorganize the init scripts and possibly get rid of /etc/rc.d and /etc/sysconfig but for the moment let's restrict the file removal to those installed by audit. 1. http://lists.busybox.net/pipermail/buildroot/2018-May/221549.html Signed-off-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 49844baf2f4c0d89954ccd0c138aea39f23c51f1) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/audit/audit.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/audit/audit.mk b/package/audit/audit.mk
index f5aa00d2f0..2f6e6653b3 100644
--- a/package/audit/audit.mk
+++ b/package/audit/audit.mk
@@ -51,8 +51,8 @@ define AUDIT_INSTALL_INIT_SYSTEMD
endef
define AUDIT_INSTALL_CLEANUP
- $(RM) -rf $(TARGET_DIR)/etc/rc.d
- $(RM) -rf $(TARGET_DIR)/etc/sysconfig
+ $(RM) $(TARGET_DIR)/etc/rc.d/init.d/auditd
+ $(RM) $(TARGET_DIR)/etc/sysconfig/auditd
endef
AUDIT_POST_INSTALL_TARGET_HOOKS += AUDIT_INSTALL_CLEANUP