squid.mk 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #############################################################
  2. #
  3. # squid
  4. #
  5. #############################################################
  6. SQUID_VERSION = 3.0.STABLE21
  7. SQUID_SOURCE = squid-$(SQUID_VERSION).tar.bz2
  8. SQUID_SITE = http://www.squid-cache.org/Versions/v3/3.0
  9. SQUID_AUTORECONF = YES
  10. SQUID_LIBTOOL_PATCH = NO
  11. SQUID_CONF_ENV = ac_cv_epoll_works=yes ac_cv_func_setresuid=yes \
  12. ac_cv_func_va_copy=yes ac_cv_func___va_copy=yes \
  13. ac_cv_func_strnstr=no
  14. SQUID_CONF_OPT = --disable-wccp --disable-wccp2 \
  15. --disable-htcp --disable-snmp \
  16. --enable-linux-netfilter \
  17. --enable-storeio=ufs,diskd,aufs,null \
  18. --enable-removal-policies="lru,heap" \
  19. --with-aufs-threads=24 --with-filedescriptors=1024
  20. ifeq ($(BR2_PACKAGE_OPENSSL),y)
  21. SQUID_CONF_OPT += --enable-ssl
  22. SQUID_DEPENDENCIES += openssl
  23. endif
  24. $(eval $(call AUTOTARGETS,package,squid))
  25. $(SQUID_HOOK_POST_INSTALL):
  26. rm -f $(addprefix $(TARGET_DIR)/usr/bin/, \
  27. RunCache RunAccel)
  28. rm -f $(addprefix $(TARGET_DIR)/etc/, \
  29. cachemgr.conf mime.conf.default squid.conf.default)
  30. rm -f $(TARGET_DIR)/usr/libexec/cachemgr.cgi
  31. rm -f $(TARGET_DIR)/usr/share/mib.txt
  32. touch $@