squid: convert old-style hook to new-style hook
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 1 Sep 2010 21:08:46 +0000 (23:08 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 12 Sep 2010 17:26:50 +0000 (19:26 +0200)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/squid/squid.mk

index 6e94d5011c41327c7bd4a2fb809fd2b1eff5ef35..6254b843ccda1397ce1e4a88879a8b298344d564 100644 (file)
@@ -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))