You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.1 KiB

  1. #
  2. # Copyright (C) 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:=e2guardian
  9. PKG_VERSION:=3.0.4
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
  13. PKG_SOURCE:=v$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/e2guardian/e2guardian/archive/
  15. PKG_MD5SUM:=f8ffac7ac4f040b672cc4e62121bf4c5
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/uclibc++.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/e2guardian
  21. SECTION:=net
  22. DEPENDS:=+libpthread $(CXX_DEPENDS) +zlib +libpcre
  23. CATEGORY:=Network
  24. SUBMENU:=Web Servers/Proxies
  25. TITLE:=E2Guardian
  26. URL:=http://e2guardian.org/cms/
  27. endef
  28. define Package/e2guardian/conffiles
  29. /etc/e2guardian/e2guardianf1.conf
  30. /etc/config/e2guardian
  31. endef
  32. CONFIGURE_VARS += \
  33. INCLUDES="" \
  34. CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
  35. LIBS="-lpthread"
  36. CONFIGURE_ARGS += \
  37. --with-sysconfsubdir=e2guardian \
  38. --with-proxyuser=root \
  39. --with-proxygroup=root \
  40. --enable-pcre=yes
  41. define Build/Configure
  42. $(call Build/Configure/Default,$CONFIGURE_ARGS)
  43. endef
  44. define Package/e2guardian/install
  45. $(INSTALL_DIR) $(1)/usr/sbin
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/e2guardian $(1)/usr/sbin/
  47. $(INSTALL_DIR) $(1)/etc
  48. $(CP) $(PKG_INSTALL_DIR)/etc/e2guardian $(1)/etc/
  49. $(INSTALL_CONF) ./files/e2guardianf1.conf $(1)/etc/e2guardian/e2guardianf1.conf
  50. $(INSTALL_DIR) $(1)/etc/config
  51. $(INSTALL_CONF) ./files/e2guardian.config $(1)/etc/config/e2guardian
  52. $(INSTALL_DIR) $(1)/usr/share/e2guardian
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/e2guardian/transparent1x1.gif $(1)/usr/share/e2guardian/
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/e2guardian/blockedflash.swf $(1)/usr/share/e2guardian/
  55. $(INSTALL_DIR) $(1)/usr/share/e2guardian/languages/ukenglish
  56. $(CP) $(PKG_INSTALL_DIR)/usr/share/e2guardian/languages/ukenglish/* $(1)/usr/share/e2guardian/languages/ukenglish/
  57. $(INSTALL_DIR) $(1)/etc/init.d/
  58. $(INSTALL_BIN) ./files/e2guardian.init $(1)/etc/init.d/e2guardian
  59. endef
  60. $(eval $(call BuildPackage,e2guardian))