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.

472 lines
15 KiB

  1. #
  2. # Copyright (C) 2012-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=nginx
  9. PKG_VERSION:=1.15.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://nginx.org/download/
  13. PKG_HASH:=b0b58c9a3fd73aa8b89edf5cfadc6641a352e0e6d3071db1eb3215d72b7fb516
  14. PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de> \
  15. Ansuel Smith <ansuelsmth@gmail.com>
  16. PKG_LICENSE:=2-clause BSD-like license
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_FIXUP:=autoreconf
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. PKG_CONFIG_DEPENDS := \
  22. CONFIG_NGINX_SSL \
  23. CONFIG_NGINX_DAV \
  24. CONFIG_NGINX_FLV \
  25. CONFIG_NGINX_STUB_STATUS \
  26. CONFIG_NGINX_HTTP_CHARSET \
  27. CONFIG_NGINX_HTTP_GZIP \
  28. CONFIG_NGINX_HTTP_SSI \
  29. CONFIG_NGINX_HTTP_USERID \
  30. CONFIG_NGINX_HTTP_ACCESS \
  31. CONFIG_NGINX_HTTP_AUTH_BASIC \
  32. CONFIG_NGINX_HTTP_AUTH_REQUEST \
  33. CONFIG_NGINX_HTTP_AUTOINDEX \
  34. CONFIG_NGINX_HTTP_GEO \
  35. CONFIG_NGINX_HTTP_MAP \
  36. CONFIG_NGINX_HTTP_SPLIT_CLIENTS \
  37. CONFIG_NGINX_HTTP_REFERER \
  38. CONFIG_NGINX_HTTP_REWRITE \
  39. CONFIG_NGINX_HTTP_PROXY \
  40. CONFIG_NGINX_HTTP_FASTCGI \
  41. CONFIG_NGINX_HTTP_UWSGI \
  42. CONFIG_NGINX_HTTP_SCGI \
  43. CONFIG_NGINX_HTTP_MEMCACHED \
  44. CONFIG_NGINX_HTTP_LIMIT_CONN \
  45. CONFIG_NGINX_HTTP_LIMIT_REQ \
  46. CONFIG_NGINX_HTTP_EMPTY_GIF \
  47. CONFIG_NGINX_HTTP_BROWSER \
  48. CONFIG_NGINX_HTTP_UPSTREAM_HASH \
  49. CONFIG_NGINX_HTTP_UPSTREAM_IP_HASH \
  50. CONFIG_NGINX_HTTP_UPSTREAM_LEAST_CONN \
  51. CONFIG_NGINX_HTTP_UPSTREAM_KEEPALIVE \
  52. CONFIG_NGINX_HTTP_UPSTREAM_ZONE \
  53. CONFIG_NGINX_HTTP_CACHE \
  54. CONFIG_NGINX_HTTP_V2 \
  55. CONFIG_NGINX_PCRE \
  56. CONFIG_NGINX_NAXSI \
  57. CONFIG_NGINX_LUA \
  58. CONFIG_NGINX_HTTP_REAL_IP \
  59. CONFIG_NGINX_HTTP_SECURE_LINK \
  60. CONFIG_NGINX_HTTP_BROTLI \
  61. CONFIG_NGINX_HEADERS_MORE
  62. include $(INCLUDE_DIR)/package.mk
  63. define Package/nginx/default
  64. SECTION:=net
  65. CATEGORY:=Network
  66. SUBMENU:=Web Servers/Proxies
  67. TITLE:=Nginx web server
  68. URL:=http://nginx.org/
  69. DEPENDS:=+NGINX_PCRE:libpcre +(NGINX_SSL||NGINX_HTTP_CACHE||NGINX_HTTP_AUTH_BASIC):libopenssl \
  70. +NGINX_HTTP_GZIP:zlib +NGINX_LUA:liblua +libpthread
  71. endef
  72. define Package/nginx/description
  73. nginx is an HTTP and reverse proxy server, as well as a mail proxy server, \
  74. written by Igor Sysoev. (Some module require SSL module enable to show up in \
  75. config menu)
  76. endef
  77. define Package/nginx
  78. $(Package/nginx/default)
  79. VARIANT:=no-ssl
  80. endef
  81. define Package/nginx-ssl
  82. $(Package/nginx/default)
  83. TITLE += with SSL support
  84. DEPENDS +=+libopenssl
  85. VARIANT:=ssl
  86. endef
  87. Package/nginx-ssl/description = $(Package/nginx/description) \
  88. This varian is compiled with SSL support enabled. To enable additional module \
  89. select them in the nginx default configuration menu.
  90. define Package/nginx-all-module
  91. $(Package/nginx/default)
  92. TITLE += with ALL module selected
  93. DEPENDS:=+libpcre +libopenssl +zlib +liblua +libpthread
  94. VARIANT:=all-module
  95. endef
  96. Package/nginx-all-module/description = $(Package/nginx/description) \
  97. This varian is compiled with ALL module selected.
  98. define Package/nginx/config
  99. source "$(SOURCE)/Config.in"
  100. endef
  101. define Package/nginx-ssl/config
  102. source "$(SOURCE)/Config_ssl.in"
  103. endef
  104. config_files=nginx.conf mime.types
  105. define Package/nginx/conffiles
  106. /etc/nginx/
  107. endef
  108. Package/nginx-ssl/conffiles = $(Package/nginx/conffiles)
  109. Package/nginx-all-module/conffiles = $(Package/nginx/conffiles)
  110. ADDITIONAL_MODULES:=
  111. ifneq ($(BUILD_VARIANT),all-module)
  112. ifneq ($(CONFIG_NGINX_HTTP_CACHE),y)
  113. ADDITIONAL_MODULES += --without-http-cache
  114. endif
  115. ifneq ($(CONFIG_NGINX_PCRE),y)
  116. ADDITIONAL_MODULES += --without-pcre
  117. endif
  118. ifneq ($(CONFIG_NGINX_HTTP_CHARSET),y)
  119. ADDITIONAL_MODULES += --without-http_charset_module
  120. else
  121. config_files += koi-utf koi-win win-utf
  122. endif
  123. ifneq ($(CONFIG_NGINX_HTTP_GZIP),y)
  124. ADDITIONAL_MODULES += --without-http_gzip_module
  125. endif
  126. ifneq ($(CONFIG_NGINX_HTTP_SSI),y)
  127. ADDITIONAL_MODULES += --without-http_ssi_module
  128. endif
  129. ifneq ($(CONFIG_NGINX_HTTP_USERID),y)
  130. ADDITIONAL_MODULES += --without-http_userid_module
  131. endif
  132. ifneq ($(CONFIG_NGINX_HTTP_ACCESS),y)
  133. ADDITIONAL_MODULES += --without-http_access_module
  134. endif
  135. ifneq ($(CONFIG_NGINX_HTTP_AUTH_BASIC),y)
  136. ADDITIONAL_MODULES += --without-http_auth_basic_module
  137. endif
  138. ifneq ($(CONFIG_NGINX_HTTP_AUTOINDEX),y)
  139. ADDITIONAL_MODULES += --without-http_autoindex_module
  140. endif
  141. ifneq ($(CONFIG_NGINX_HTTP_GEO),y)
  142. ADDITIONAL_MODULES += --without-http_geo_module
  143. endif
  144. ifneq ($(CONFIG_NGINX_HTTP_MAP),y)
  145. ADDITIONAL_MODULES += --without-http_map_module
  146. endif
  147. ifneq ($(CONFIG_NGINX_HTTP_SPLIT_CLIENTS),y)
  148. ADDITIONAL_MODULES += --without-http_split_clients_module
  149. endif
  150. ifneq ($(CONFIG_NGINX_HTTP_REFERER),y)
  151. ADDITIONAL_MODULES += --without-http_referer_module
  152. endif
  153. ifneq ($(CONFIG_NGINX_HTTP_REWRITE),y)
  154. ADDITIONAL_MODULES += --without-http_rewrite_module
  155. endif
  156. ifneq ($(CONFIG_NGINX_HTTP_PROXY),y)
  157. ADDITIONAL_MODULES += --without-http_proxy_module
  158. endif
  159. ifneq ($(CONFIG_NGINX_HTTP_FASTCGI),y)
  160. ADDITIONAL_MODULES += --without-http_fastcgi_module
  161. else
  162. config_files += fastcgi_params
  163. endif
  164. ifneq ($(CONFIG_NGINX_HTTP_UWSGI),y)
  165. ADDITIONAL_MODULES += --without-http_uwsgi_module
  166. endif
  167. ifneq ($(CONFIG_NGINX_HTTP_SCGI),y)
  168. ADDITIONAL_MODULES += --without-http_scgi_module
  169. endif
  170. ifneq ($(CONFIG_NGINX_HTTP_MEMCACHED),y)
  171. ADDITIONAL_MODULES += --without-http_memcached_module
  172. endif
  173. ifneq ($(CONFIG_NGINX_HTTP_LIMIT_CONN),y)
  174. ADDITIONAL_MODULES += --without-http_limit_conn_module
  175. endif
  176. ifneq ($(CONFIG_NGINX_HTTP_LIMIT_REQ),y)
  177. ADDITIONAL_MODULES += --without-http_limit_req_module
  178. endif
  179. ifneq ($(CONFIG_NGINX_HTTP_EMPTY_GIF),y)
  180. ADDITIONAL_MODULES += --without-http_empty_gif_module
  181. endif
  182. ifneq ($(CONFIG_NGINX_HTTP_BROWSER),y)
  183. ADDITIONAL_MODULES += --without-http_browser_module
  184. endif
  185. ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_HASH),y)
  186. ADDITIONAL_MODULES += --without-http_upstream_hash_module
  187. endif
  188. ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_IP_HASH),y)
  189. ADDITIONAL_MODULES += --without-http_upstream_ip_hash_module
  190. endif
  191. ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_LEAST_CONN),y)
  192. ADDITIONAL_MODULES += --without-http_upstream_least_conn_module
  193. endif
  194. ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_KEEPALIVE),y)
  195. ADDITIONAL_MODULES += --without-http_upstream_keepalive_module
  196. endif
  197. ifeq ($(BUILD_VARIANT),ssl)
  198. ifneq ($(CONFIG_NGINX_SSL),y)
  199. ADDITIONAL_MODULES += --with-http_ssl_module
  200. endif
  201. endif
  202. ifeq ($(CONFIG_NGINX_SSL),y)
  203. ADDITIONAL_MODULES += --with-http_ssl_module
  204. endif
  205. ifeq ($(CONFIG_NGINX_NAXSI),y)
  206. ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-naxsi/naxsi_src
  207. endif
  208. ifeq ($(CONFIG_NGINX_LUA),y)
  209. ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/lua-nginx
  210. endif
  211. ifeq ($(CONFIG_IPV6),y)
  212. ADDITIONAL_MODULES += --with-ipv6
  213. endif
  214. ifeq ($(CONFIG_NGINX_STUB_STATUS),y)
  215. ADDITIONAL_MODULES += --with-http_stub_status_module
  216. endif
  217. ifeq ($(CONFIG_NGINX_FLV),y)
  218. ADDITIONAL_MODULES += --with-http_flv_module
  219. endif
  220. ifeq ($(CONFIG_NGINX_DAV),y)
  221. ADDITIONAL_MODULES += --with-http_dav_module
  222. endif
  223. ifeq ($(CONFIG_NGINX_HTTP_AUTH_REQUEST),y)
  224. ADDITIONAL_MODULES += --with-http_auth_request_module
  225. endif
  226. ifeq ($(CONFIG_NGINX_HTTP_V2),y)
  227. ADDITIONAL_MODULES += --with-http_v2_module
  228. endif
  229. ifeq ($(CONFIG_NGINX_HTTP_REAL_IP),y)
  230. ADDITIONAL_MODULES += --with-http_realip_module
  231. endif
  232. ifeq ($(CONFIG_NGINX_HTTP_SECURE_LINK),y)
  233. ADDITIONAL_MODULES += --with-http_secure_link_module
  234. endif
  235. ifeq ($(CONFIG_NGINX_HEADERS_MORE),y)
  236. ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-headers-more
  237. endif
  238. ifeq ($(CONFIG_NGINX_HTTP_BROTLI),y)
  239. ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-brotli
  240. endif
  241. ifeq ($(CONFIG_NGINX_RTMP_MODULE),y)
  242. ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-rtmp
  243. endif
  244. ifeq ($(CONFIG_NGINX_TS_MODULE),y)
  245. ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-ts
  246. endif
  247. else
  248. ADDITIONAL_MODULES += --with-http_ssl_module --add-module=$(PKG_BUILD_DIR)/nginx-naxsi/naxsi_src \
  249. --add-module=$(PKG_BUILD_DIR)/lua-nginx --with-ipv6 --with-http_stub_status_module --with-http_flv_module \
  250. --with-http_dav_module --with-http_auth_request_module --with-http_v2_module --with-http_realip_module \
  251. --with-http_secure_link_module --add-module=$(PKG_BUILD_DIR)/nginx-headers-more \
  252. --add-module=$(PKG_BUILD_DIR)/nginx-brotli --add-module=$(PKG_BUILD_DIR)/nginx-rtmp \
  253. --add-module=$(PKG_BUILD_DIR)/nginx-ts
  254. config_files += koi-utf koi-win win-utf fastcgi_params
  255. endif
  256. define Package/nginx-mod-luci/default
  257. TITLE:=Nginx on LuCI
  258. SECTION:=net
  259. CATEGORY:=Network
  260. SUBMENU:=Web Servers/Proxies
  261. TITLE:=Support file for Nginx
  262. URL:=http://nginx.org/
  263. DEPENDS:=+uwsgi-cgi +uwsgi-cgi-luci-support
  264. endef
  265. define Package/nginx-mod-luci
  266. $(Package/nginx-mod-luci/default)
  267. DEPENDS += +nginx
  268. endef
  269. define Package/nginx-mod-luci/description
  270. Support file for LuCI in nginx. Include custom nginx configuration, autostart script for uwsgi.
  271. endef
  272. define Package/nginx-mod-luci-ssl
  273. $(Package/nginx-mod-luci/default)
  274. TITLE += with HTTPS support
  275. DEPENDS += +nginx-ssl
  276. endef
  277. Package/nginx-mod-luci-ssl/description = $(define Package/nginx-mod-luci/description) \
  278. This also include redirect from http to https and cert autogeneration.
  279. TARGET_CFLAGS += -fvisibility=hidden -ffunction-sections -fdata-sections -DNGX_LUA_NO_BY_LUA_BLOCK
  280. TARGET_LDFLAGS += -Wl,--gc-sections
  281. ifeq ($(CONFIG_NGINX_LUA),y)
  282. CONFIGURE_VARS += LUA_INC=$(STAGING_DIR)/usr/include \
  283. LUA_LIB=$(STAGING_DIR)/usr/lib
  284. endif
  285. CONFIGURE_ARGS += \
  286. --crossbuild=Linux::$(ARCH) \
  287. --prefix=/usr \
  288. --conf-path=/etc/nginx/nginx.conf \
  289. $(ADDITIONAL_MODULES) \
  290. --error-log-path=/var/log/nginx/error.log \
  291. --pid-path=/var/run/nginx.pid \
  292. --lock-path=/var/lock/nginx.lock \
  293. --http-log-path=/var/log/nginx/access.log \
  294. --http-client-body-temp-path=/var/lib/nginx/body \
  295. --http-proxy-temp-path=/var/lib/nginx/proxy \
  296. --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
  297. --with-cc="$(TARGET_CC)" \
  298. --with-cc-opt="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
  299. --with-ld-opt="$(TARGET_LDFLAGS)" \
  300. --without-http_upstream_zone_module
  301. define Package/nginx-mod-luci/install
  302. $(INSTALL_DIR) $(1)/etc/nginx
  303. $(INSTALL_BIN) ./files-luci-support/luci_uwsgi.conf $(1)/etc/nginx/luci_uwsgi.conf
  304. $(INSTALL_BIN) ./files-luci-support/luci_nginx.conf $(1)/etc/nginx/luci_nginx.conf
  305. $(INSTALL_DIR) $(1)/etc/uci-defaults
  306. $(INSTALL_BIN) ./files-luci-support/60_nginx-luci-support $(1)/etc/uci-defaults/60_nginx-luci-support
  307. endef
  308. define Package/nginx-mod-luci-ssl/install
  309. $(Package/nginx-mod-luci/install)
  310. $(INSTALL_DIR) $(1)/etc/nginx
  311. $(INSTALL_BIN) ./files-luci-support/luci_nginx_ssl.conf $(1)/etc/nginx/luci_nginx_ssl.conf
  312. $(INSTALL_DIR) $(1)/etc/uci-defaults
  313. $(INSTALL_BIN) ./files-luci-support/70_nginx-luci-support-ssl $(1)/etc/uci-defaults/70_nginx-luci-support-ssl
  314. endef
  315. define Package/nginx/install
  316. $(INSTALL_DIR) $(1)/usr/sbin
  317. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nginx $(1)/usr/sbin/
  318. $(INSTALL_DIR) $(1)/etc/nginx
  319. $(INSTALL_DATA) $(addprefix $(PKG_INSTALL_DIR)/etc/nginx/,$(config_files)) $(1)/etc/nginx/
  320. $(INSTALL_DIR) $(1)/etc/init.d
  321. $(INSTALL_BIN) ./files/nginx.init $(1)/etc/init.d/nginx
  322. ifeq ($(CONFIG_NGINX_NAXSI),y)
  323. $(INSTALL_DIR) $(1)/etc/nginx
  324. $(INSTALL_BIN) $(PKG_BUILD_DIR)/nginx-naxsi/naxsi_config/naxsi_core.rules $(1)/etc/nginx
  325. chmod 0640 $(1)/etc/nginx/naxsi_core.rules
  326. endif
  327. $(if $(CONFIG_NGINX_NAXSI),$($(INSTALL_BIN) $(PKG_BUILD_DIR)/nginx-naxsi/naxsi_config/naxsi_core.rules $(1)/etc/nginx))
  328. $(if $(CONFIG_NGINX_NAXSI),$(chmod 0640 $(1)/etc/nginx/naxsi_core.rules))
  329. endef
  330. Package/nginx-ssl/install = $(Package/nginx/install)
  331. Package/nginx-all-module/install = $(Package/nginx/install)
  332. define Build/Prepare
  333. $(call Build/Prepare/Default)
  334. ifneq ($(BUILD_VARIANT),all-module)
  335. $(if $(CONFIG_NGINX_NAXSI),$(call Prepare/nginx-naxsi))
  336. $(if $(CONFIG_NGINX_LUA),$(call Prepare/lua-nginx))
  337. $(if $(CONFIG_NGINX_HTTP_BROTLI),$(call Prepare/nginx-brotli))
  338. $(if $(CONFIG_NGINX_HEADERS_MORE),$(call Prepare/nginx-headers-more))
  339. $(if $(CONFIG_NGINX_RTMP_MODULE),$(call Prepare/nginx-rtmp))
  340. $(if $(CONFIG_NGINX_TS_MODULE),$(call Prepare/nginx-ts))
  341. else
  342. $(call Prepare/nginx-naxsi)
  343. $(call Prepare/lua-nginx)
  344. $(call Prepare/nginx-brotli)
  345. $(call Prepare/nginx-headers-more)
  346. $(call Prepare/nginx-rtmp)
  347. $(call Prepare/nginx-ts)
  348. endif
  349. endef
  350. define Download/nginx-headers-more
  351. VERSION:=a9f7c7e86cc7441d04e2f11f01c2e3a9c4b0301d
  352. SUBDIR:=nginx-headers-more
  353. FILE:=headers-more-nginx-module-$(PKG_VERSION)-$$(VERSION).tar.gz
  354. URL:=https://github.com/openresty/headers-more-nginx-module.git
  355. PROTO:=git
  356. endef
  357. define Prepare/nginx-headers-more
  358. $(eval $(call Download,nginx-headers-more))
  359. gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
  360. endef
  361. define Download/nginx-brotli
  362. VERSION:=e26248ee361c04e25f581b92b85d95681bdffb39
  363. SUBDIR:=nginx-brotli
  364. FILE:=ngx-brotli-module-$(PKG_VERSION)-$$(VERSION).tar.gz
  365. URL:=https://github.com/eustas/ngx_brotli.git
  366. PROTO:=git
  367. endef
  368. define Prepare/nginx-brotli
  369. $(eval $(call Download,nginx-brotli))
  370. gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
  371. endef
  372. define Download/nginx-rtmp
  373. VERSION:=791b6136f02bc9613daf178723ac09f4df5a3bbf
  374. SUBDIR:=nginx-rtmp
  375. FILE:=ngx-rtmp-module-$(PKG_VERSION)-$$(VERSION).tar.gz
  376. URL:=https://github.com/arut/nginx-rtmp-module.git
  377. PROTO:=git
  378. endef
  379. define Prepare/nginx-rtmp
  380. $(eval $(call Download,nginx-rtmp))
  381. gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
  382. endef
  383. define Download/nginx-ts
  384. VERSION:=ef2f874d95cc75747eb625a292524a702aefb0fd
  385. SUBDIR:=nginx-ts
  386. FILE:=ngx-ts-module-$(PKG_VERSION)-$$(VERSION).tar.gz
  387. URL:=https://github.com/arut/nginx-ts-module.git
  388. PROTO:=git
  389. endef
  390. define Prepare/nginx-ts
  391. $(eval $(call Download,nginx-ts))
  392. gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
  393. endef
  394. define Download/nginx-naxsi
  395. VERSION:=951123ad456bdf5ac94e8d8819342fe3d49bc002
  396. SUBDIR:=nginx-naxsi
  397. FILE:=nginx-naxsi-module-$(PKG_VERSION)-$$(VERSION).tar.gz
  398. URL:=https://github.com/nbs-system/naxsi.git
  399. PROTO:=git
  400. endef
  401. define Prepare/nginx-naxsi
  402. $(eval $(call Download,nginx-naxsi))
  403. gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
  404. endef
  405. define Download/lua-nginx
  406. VERSION:=576a10d246daf81c0ce1b959c50ee807769c01a8
  407. SUBDIR:=lua-nginx
  408. FILE:=lua-nginx-module-$(PKG_VERSION)-$$(VERSION).tar.gz
  409. URL:=https://github.com/openresty/lua-nginx-module.git
  410. PROTO:=git
  411. endef
  412. define Prepare/lua-nginx
  413. $(eval $(call Download,lua-nginx))
  414. gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
  415. $(call PatchDir,$(PKG_BUILD_DIR),./patches-lua-nginx)
  416. endef
  417. $(eval $(call BuildPackage,nginx))
  418. $(eval $(call BuildPackage,nginx-ssl))
  419. $(eval $(call BuildPackage,nginx-all-module))
  420. $(eval $(call BuildPackage,nginx-mod-luci))
  421. $(eval $(call BuildPackage,nginx-mod-luci-ssl))