aboutsummaryrefslogtreecommitdiffstats
path: root/package/squid
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-09-01 23:08:46 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-09-12 19:26:50 +0200
commit62df009e47bb0f850989aaba24b08d06d5b03305 (patch)
tree341d8bad8a24e8927200ff10e2cea28a869d523f /package/squid
parent1c99b35528d469bb55574977b07607756746fbfe (diff)
downloadbuildroot-novena-62df009e47bb0f850989aaba24b08d06d5b03305.tar.gz
buildroot-novena-62df009e47bb0f850989aaba24b08d06d5b03305.zip
squid: convert old-style hook to new-style hook
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/squid')
-rw-r--r--package/squid/squid.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/package/squid/squid.mk b/package/squid/squid.mk
index 6e94d5011..6254b843c 100644
--- a/package/squid/squid.mk
+++ b/package/squid/squid.mk
@@ -23,13 +23,15 @@ ifeq ($(BR2_PACKAGE_OPENSSL),y)
SQUID_DEPENDENCIES += openssl
endif
-$(eval $(call AUTOTARGETS,package,squid))
-
-$(SQUID_HOOK_POST_INSTALL):
+define SQUID_CLEANUP_TARGET
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, \
RunCache RunAccel)
rm -f $(addprefix $(TARGET_DIR)/etc/, \
cachemgr.conf mime.conf.default squid.conf.default)
rm -f $(TARGET_DIR)/usr/libexec/cachemgr.cgi
rm -f $(TARGET_DIR)/usr/share/mib.txt
- touch $@
+endef
+
+SQUID_POST_INSTALL_TARGET_HOOKS += SQUID_CLEANUP_TARGET
+
+$(eval $(call AUTOTARGETS,package,squid))