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.

81 lines
2.2 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.1.2
  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:=85cfa16074737dbc3935f93dfcded285
  16. PKG_FIXUP:=autoreconf
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/uclibc++.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/e2guardian
  22. SECTION:=net
  23. DEPENDS:=+libpthread $(CXX_DEPENDS) +zlib +libpcre
  24. CATEGORY:=Network
  25. SUBMENU:=Web Servers/Proxies
  26. TITLE:=E2Guardian
  27. URL:=http://e2guardian.org/cms/
  28. endef
  29. define Package/e2guardian/conffiles
  30. /etc/e2guardian/e2guardianf1.conf
  31. /etc/config/e2guardian
  32. endef
  33. CONFIGURE_VARS += \
  34. INCLUDES="" \
  35. CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
  36. LIBS="-lpthread"
  37. CONFIGURE_ARGS += \
  38. --with-sysconfsubdir=e2guardian \
  39. --with-proxyuser=nobody \
  40. --with-proxygroup=nogroup \
  41. --enable-pcre=yes \
  42. --with-piddir=/tmp/e2guardian/ \
  43. --enable-sslextralists=no \
  44. --enable-sslmitm=no
  45. define Build/Configure
  46. $(call Build/Configure/Default,$CONFIGURE_ARGS)
  47. endef
  48. define Package/e2guardian/install
  49. $(INSTALL_DIR) $(1)/usr/sbin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/e2guardian $(1)/usr/sbin/
  51. $(INSTALL_DIR) $(1)/etc
  52. $(CP) $(PKG_INSTALL_DIR)/etc/e2guardian $(1)/etc/
  53. $(INSTALL_CONF) ./files/e2guardianf1.conf $(1)/etc/e2guardian/e2guardianf1.conf
  54. $(INSTALL_DIR) $(1)/etc/config
  55. $(INSTALL_CONF) ./files/e2guardian.config $(1)/etc/config/e2guardian
  56. $(INSTALL_DIR) $(1)/usr/share/e2guardian
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/e2guardian/transparent1x1.gif $(1)/usr/share/e2guardian/
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/e2guardian/blockedflash.swf $(1)/usr/share/e2guardian/
  59. $(INSTALL_DIR) $(1)/usr/share/e2guardian/languages/ukenglish
  60. $(CP) $(PKG_INSTALL_DIR)/usr/share/e2guardian/languages/ukenglish/* $(1)/usr/share/e2guardian/languages/ukenglish/
  61. $(INSTALL_DIR) $(1)/etc/init.d/
  62. $(INSTALL_BIN) ./files/e2guardian.init $(1)/etc/init.d/e2guardian
  63. endef
  64. $(eval $(call BuildPackage,e2guardian))