1
0

Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.2.0
  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/$(PKG_NAME)/$(PKG_NAME)/archive/
  15. PKG_HASH:=cae011aacf6b250fc021c861fe46e15310349c474bca4553c0f829620e53e3bf
  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. ( cd $(PKG_BUILD_DIR); ./autogen.sh )
  47. $(call Build/Configure/Default,$CONFIGURE_ARGS)
  48. endef
  49. define Package/e2guardian/install
  50. $(INSTALL_DIR) $(1)/usr/sbin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/e2guardian $(1)/usr/sbin/
  52. $(INSTALL_DIR) $(1)/etc
  53. $(CP) $(PKG_INSTALL_DIR)/etc/e2guardian $(1)/etc/
  54. $(INSTALL_CONF) ./files/e2guardianf1.conf $(1)/etc/e2guardian/e2guardianf1.conf
  55. $(INSTALL_DIR) $(1)/etc/config
  56. $(INSTALL_CONF) ./files/e2guardian.config $(1)/etc/config/e2guardian
  57. $(INSTALL_DIR) $(1)/usr/share/e2guardian
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/e2guardian/transparent1x1.gif $(1)/usr/share/e2guardian/
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/e2guardian/blockedflash.swf $(1)/usr/share/e2guardian/
  60. $(INSTALL_DIR) $(1)/usr/share/e2guardian/languages/ukenglish
  61. $(CP) $(PKG_INSTALL_DIR)/usr/share/e2guardian/languages/ukenglish/* $(1)/usr/share/e2guardian/languages/ukenglish/
  62. $(INSTALL_DIR) $(1)/etc/init.d/
  63. $(INSTALL_BIN) ./files/e2guardian.init $(1)/etc/init.d/e2guardian
  64. endef
  65. $(eval $(call BuildPackage,e2guardian))