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.

71 lines
1.9 KiB

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