Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #
  2. # Copyright (C) 2008-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=dansguardian
  9. PKG_VERSION:=2.12.0.3
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  14. PKG_SOURCE_URL:=@SF/dansguardian
  15. PKG_MD5SUM:=2a88d0392cd28eaec02b7ee727b2e253
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/uclibc++.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/dansguardian
  21. SECTION:=net
  22. DEPENDS:=+libpthread $(CXX_DEPENDS) +zlib
  23. CATEGORY:=Network
  24. SUBMENU:=Web Servers/Proxies
  25. TITLE:=DansGuardian
  26. URL:=http://dansguardian.org
  27. endef
  28. define Package/dansguardian/conffiles
  29. /etc/dansguardian/dansguardianf1.conf
  30. /etc/config/dansguardian
  31. endef
  32. CONFIGURE_VARS += \
  33. INCLUDES="" \
  34. CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
  35. LIBS="-lpthread" \
  36. define Build/Configure
  37. $(call Build/Configure/Default,\
  38. --disable-clamav \
  39. --with-sysconfsubdir=dansguardian \
  40. --with-proxyuser=root \
  41. --with-proxygroup=root \
  42. --disable-pcre \
  43. )
  44. endef
  45. define Package/dansguardian/install
  46. $(INSTALL_DIR) $(1)/usr/sbin
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dansguardian $(1)/usr/sbin/
  48. $(INSTALL_DIR) $(1)/etc
  49. $(CP) $(PKG_INSTALL_DIR)/etc/dansguardian $(1)/etc/
  50. $(INSTALL_CONF) ./files/dansguardianf1.conf $(1)/etc/dansguardian/dansguardianf1.conf
  51. $(INSTALL_DIR) $(1)/etc/config
  52. $(INSTALL_CONF) ./files/dansguardian.config $(1)/etc/config/dansguardian
  53. $(INSTALL_DIR) $(1)/usr/share/dansguardian
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/dansguardian/transparent1x1.gif $(1)/usr/share/dansguardian/
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/dansguardian/blockedflash.swf $(1)/usr/share/dansguardian/
  56. $(INSTALL_DIR) $(1)/usr/share/dansguardian/languages/ukenglish
  57. $(CP) $(PKG_INSTALL_DIR)/usr/share/dansguardian/languages/ukenglish/* $(1)/usr/share/dansguardian/languages/ukenglish/
  58. $(INSTALL_DIR) $(1)/etc/init.d/
  59. $(INSTALL_BIN) ./files/dansguardian.init $(1)/etc/init.d/dansguardian
  60. endef
  61. $(eval $(call BuildPackage,dansguardian))