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.

91 lines
2.3 KiB

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