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.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=nginx-util
  3. PKG_VERSION:=1.3
  4. PKG_RELEASE:=2
  5. PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
  6. include $(INCLUDE_DIR)/package.mk
  7. include $(INCLUDE_DIR)/cmake.mk
  8. CMAKE_OPTIONS+= -DUBUS=y
  9. CMAKE_OPTIONS+= -DVERSION=$(PKG_VERSION)
  10. define Package/nginx-util/default
  11. SECTION:=net
  12. CATEGORY:=Network
  13. SUBMENU:=Web Servers/Proxies
  14. TITLE:=Nginx configurator
  15. DEPENDS:=+libstdcpp +libubus +libubox +libpthread
  16. endef
  17. define Package/nginx-util
  18. $(Package/nginx-util/default)
  19. CONFLICTS:=nginx-ssl-util-nopcre nginx-ssl-util
  20. endef
  21. define Package/nginx-ssl-util/default
  22. $(Package/nginx-util/default)
  23. TITLE+= including SSL
  24. DEPENDS+= +libopenssl
  25. CONFLICTS:=,nginx-util
  26. endef
  27. define Package/nginx-ssl-util
  28. $(Package/nginx-ssl-util/default)
  29. TITLE+= (using PCRE)
  30. DEPENDS+= +libpcre
  31. CONFLICTS+= ,nginx-ssl-util-nopcre
  32. endef
  33. define Package/nginx-ssl-util-nopcre
  34. $(Package/nginx-ssl-util/default)
  35. TITLE+= (using <regex>)
  36. CONFLICTS+= nginx-ssl-util
  37. endef
  38. define Package/nginx-util/description
  39. Utility that builds dynamically LAN listen directives for Nginx.
  40. endef
  41. Package/nginx-ssl-util/default/description = $(Package/nginx-util/description)\
  42. Furthermore, it manages SSL directives for its server parts and can create \
  43. corresponding (self-signed) certificates.
  44. Package/nginx-ssl-util/description = \
  45. $(Package/nginx-ssl-util/default/description) \
  46. It uses the PCRE library for performance.
  47. Package/nginx-ssl-util-nopcre/description = \
  48. $(Package/nginx-ssl-util/default/description) \
  49. It uses the standard regex library of C++.
  50. define Package/nginx-util/install
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_BUILD_DIR)/nginx-util $(1)/usr/bin/nginx-util
  53. endef
  54. define Package/nginx-ssl-util/install
  55. $(INSTALL_DIR) $(1)/usr/bin
  56. $(INSTALL_BIN) $(PKG_BUILD_DIR)/nginx-ssl-util $(1)/usr/bin/nginx-util
  57. endef
  58. define Package/nginx-ssl-util-nopcre/install
  59. $(INSTALL_DIR) $(1)/usr/bin
  60. $(INSTALL_BIN) $(PKG_BUILD_DIR)/nginx-ssl-util-nopcre \
  61. $(1)/usr/bin/nginx-util
  62. endef
  63. $(eval $(call BuildPackage,nginx-util))
  64. $(eval $(call BuildPackage,nginx-ssl-util))
  65. $(eval $(call BuildPackage,nginx-ssl-util-nopcre))