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.

90 lines
2.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=nginx-util
  3. PKG_VERSION:=1.4
  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-ssl-util/default
  11. SECTION:=net
  12. CATEGORY:=Network
  13. SUBMENU:=Web Servers/Proxies
  14. TITLE:=Nginx configurator including SSL
  15. DEPENDS:=+libstdcpp +libubus +libubox +libpthread +libopenssl
  16. # TODO: remove after a transition period (together with below and pkg nginx):
  17. # It actually removes nginx-util (replacing it by a dummy pkg) to avoid
  18. # conflicts with nginx-ssl-util*
  19. EXTRA_DEPENDS:=nginx-util (>=1.4-2)
  20. endef
  21. define Package/nginx-ssl-util
  22. $(Package/nginx-ssl-util/default)
  23. TITLE+= (using PCRE)
  24. DEPENDS+= +libpcre
  25. CONFLICTS:=nginx-ssl-util-nopcre,
  26. endef
  27. define Package/nginx-ssl-util-nopcre
  28. $(Package/nginx-ssl-util/default)
  29. TITLE+= (using <regex>)
  30. CONFLICTS:=nginx-ssl-util
  31. endef
  32. define Package/nginx-ssl-util/default/description
  33. Utility that builds dynamically LAN listen directives for Nginx.
  34. Furthermore, it manages SSL directives for its server parts and can create
  35. corresponding (self-signed) certificates.
  36. endef
  37. Package/nginx-ssl-util/description = \
  38. $(Package/nginx-ssl-util/default/description) \
  39. It uses the PCRE library for performance.
  40. Package/nginx-ssl-util-nopcre/description = \
  41. $(Package/nginx-ssl-util/default/description) \
  42. It uses the standard regex library of C++.
  43. define Package/nginx-ssl-util/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/nginx-ssl-util $(1)/usr/bin/nginx-util
  46. endef
  47. define Package/nginx-ssl-util-nopcre/install
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_BUILD_DIR)/nginx-ssl-util-nopcre \
  50. $(1)/usr/bin/nginx-util
  51. endef
  52. $(eval $(call BuildPackage,nginx-ssl-util))
  53. $(eval $(call BuildPackage,nginx-ssl-util-nopcre))
  54. # TODO: remove after a transition period (together with above and pkg nginx):
  55. # It replaces nginx-util by a dummy pkg for a smooth upgrade of nginx*
  56. define Package/nginx-util
  57. TITLE:=Dummy package for removing nginx-util when upgrading.
  58. DEPENDS:=+libstdcpp +libubus +libubox +libpthread
  59. PKGARCH:=all
  60. endef
  61. define Package/nginx-util/install
  62. $(INSTALL_DIR) $(1)/usr/bin
  63. endef
  64. $(eval $(call BuildPackage,nginx-util))