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.

70 lines
1.9 KiB

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