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