8
8
include $(TOPDIR ) /rules.mk
9
9
10
10
PKG_NAME: =nginx
11
- PKG_VERSION: =1.25.4
11
+ PKG_VERSION: =1.25.5
12
12
PKG_RELEASE: =1
13
13
14
14
PKG_SOURCE: =nginx-$(PKG_VERSION ) .tar.gz
15
15
PKG_SOURCE_URL: =https://nginx.org/download/
16
- PKG_HASH: =760729901acbaa517996e681ee6ea259032985e37c2768beef80df3a877deed9
16
+ PKG_HASH: =2fe2294f8af4144e7e842eaea884182a84ee7970e11046ba98194400902bbec0
17
17
18
18
PKG_MAINTAINER: =Thomas Heil <
[email protected] >
\
19
19
Christian Marangi <
[email protected] >
@@ -195,6 +195,15 @@ define Package/nginx-mod-luci/description
195
195
Support file for LuCI in nginx. Include custom nginx configuration, autostart script for uwsgi.
196
196
endef
197
197
198
+ define Package/nginx-mod-luci/preinst
199
+ # !/bin/sh
200
+ grep -r -l ngx_http_ubus_module.so /etc/nginx/module.d | grep -v ngx_http_ubus.module | while read file; do
201
+ echo "Removing old LuCI module load file for 'ngx_http_ubus.so' in $$file."
202
+ rm -f $$file
203
+ done
204
+ exit 0
205
+ endef
206
+
198
207
define Package/nginx-mod-luci/install
199
208
$(INSTALL_DIR ) $(1 ) /etc/nginx/conf.d
200
209
$(INSTALL_CONF ) ./files-luci-support/luci.locations $(1 ) /etc/nginx/conf.d/
@@ -203,9 +212,10 @@ define Package/nginx-mod-luci/install
203
212
endef
204
213
205
214
define Download/nginx-mod-geoip2
215
+ SOURCE_DATE:=2020-01-22
206
216
VERSION:=1cabd8a1f68ea3998f94e9f3504431970f848fbf
207
217
URL:=https://github.com/leev/ngx_http_geoip2_module.git
208
- MIRROR_HASH:=b4bd8517f6595f28e9cea5370045df476e0f7fa9ca3611d71ba85c518f1a7eda
218
+ MIRROR_HASH:=f3d2a1af5c34812b5a34453457ba6a4d8093c92085aa7f76c46a1c4185c9735c
209
219
PROTO:=git
210
220
endef
211
221
@@ -237,81 +247,91 @@ define Package/nginx-mod-lua-resty-core/install
237
247
endef
238
248
239
249
define Download/nginx-mod-headers-more
250
+ SOURCE_DATE:=2022-07-17
240
251
VERSION:=bea1be3bbf6af28f6aa8cf0c01c07ee1637e2bd0
241
252
URL:=https://github.com/openresty/headers-more-nginx-module.git
242
- MIRROR_HASH:=3617bbf7a935208a1d8d5f86a8f9b770f6987e4d2b5663a9ab1b777217e3066b
253
+ MIRROR_HASH:=569abadc137b5b52bdcc33b00aa21f6d266cb84fb891795da2c4e101c4898abe
243
254
PROTO:=git
244
255
endef
245
256
246
257
247
258
define Download/nginx-mod-brotli
259
+ SOURCE_DATE:=2020-04-23
248
260
VERSION:=25f86f0bac1101b6512135eac5f93c49c63609e3
249
261
URL:=https://github.com/google/ngx_brotli.git
250
- MIRROR_HASH:=c85cdcfd76703c95aa4204ee4c2e619aa5b075cac18f428202f65552104add3b
262
+ MIRROR_HASH:=680c56be79e7327cb8df271646119333d2f6965a3472bc7043721625fa4488f5
251
263
PROTO:=git
252
264
endef
253
265
254
266
define Download/nginx-mod-rtmp
267
+ SOURCE_DATE:=2018-12-07
255
268
VERSION:=f0ea62342a4eca504b311cd5df910d026c3ea4cf
256
269
URL:=https://github.com/ut0mt8/nginx-rtmp-module.git
257
- MIRROR_HASH:=d3f58066f0f858ed79f7f2b0c9b89de2ccc512c94ab3d0625f6dcff3df0b72c1
270
+ MIRROR_HASH:=9c98d886ae4ea3708bb0bca55f8df803418a407e0ffc6df56341bd76ad39cba8
258
271
PROTO:=git
259
272
endef
260
273
261
274
define Download/nginx-mod-ts
275
+ SOURCE_DATE:=2017-12-04
262
276
VERSION:=ef2f874d95cc75747eb625a292524a702aefb0fd
263
277
URL:=https://github.com/arut/nginx-ts-module.git
264
- MIRROR_HASH:=73938950bb286d40d9e54b0994d1a63827340c1156c72eb04d7041b25b20ec18
278
+ MIRROR_HASH:=3f144d4615a4aaa1215435cd06ae4054ea12206d5b38306321420f7acc62aca8
265
279
PROTO:=git
266
280
endef
267
281
268
282
define Download/nginx-mod-naxsi
283
+ SOURCE_DATE:=2022-09-14
269
284
VERSION:=d714f1636ea49a9a9f4f06dba14aee003e970834
270
285
URL:=https://github.com/nbs-system/naxsi.git
271
- MIRROR_HASH:=bd006686721a68d43f052f0a4f00e9ff99fb2abfbc4dcf8194a3562fe4e5c08b
286
+ MIRROR_HASH:=b0cef5fbf842f283eb5f0686ddd1afcd07d83abd7027c8cfb3e84a2223a34797
272
287
PROTO:=git
273
288
endef
274
289
275
290
define Download/nginx-mod-lua
291
+ SOURCE_DATE:=2023-08-19
276
292
VERSION:=c89469e920713d17d703a5f3736c9335edac22bf
277
293
URL:=https://github.com/openresty/lua-nginx-module.git
278
- MIRROR_HASH:=dd66465f65c094a1ddfff2035bff4da870b7c6b7e033d307a9806a6df290a1a5
294
+ MIRROR_HASH:=c3bdf1b23f0a63991b5dcbd1f8ee150e6f893b43278e8600e4e0bb42a6572db4
279
295
PROTO:=git
280
296
endef
281
297
282
298
define Download/nginx-mod-lua-resty-core
299
+ SOURCE_DATE:=2023-09-09
283
300
VERSION:=2e2b2adaa61719972fe4275fa4c3585daa0dcd84
284
301
URL:=https://github.com/openresty/lua-resty-core.git
285
- MIRROR_HASH:=4bfc267fd027161f88fcbeacce38e6bd13ba894a581c2d6dfe78ee270b1a473c
302
+ MIRROR_HASH:=c5f3df92fd72eac5b54497c039aca0f0d9ea1d87223f1e3a54365ba565991874
286
303
PROTO:=git
287
304
endef
288
305
289
306
define Download/nginx-mod-lua-resty-lrucache
307
+ SOURCE_DATE:=2023-08-06
290
308
VERSION:=52f5d00403c8b7aa8a4d4f3779681976b10a18c1
291
309
URL:=https://github.com/openresty/lua-resty-lrucache.git
292
- MIRROR_HASH:=618a972574b6b1db1eebf4046d9a471ac03ec092bb825136ba975928d4af2351
310
+ MIRROR_HASH:=0833e0114948af4edb216c5c34b3f1919f534b298f4fa29739544f7c9bb8a08d
293
311
PROTO:=git
294
312
endef
295
313
296
314
define Download/nginx-mod-dav-ext
315
+ SOURCE_DATE:=2018-12-17
297
316
VERSION:=f5e30888a256136d9c550bf1ada77d6ea78a48af
298
317
URL:=https://github.com/arut/nginx-dav-ext-module.git
299
- MIRROR_HASH:=70bb4c3907f4b783605500ba494e907aede11f8505702e370012abb3c177dc5b
318
+ MIRROR_HASH:=c574e60ffab5f6e5d8bea18aab0799c19cd9a84f3d819b787e9af4f0e7867b52
300
319
PROTO:=git
301
320
endef
302
321
303
322
define Download/nginx-mod-ubus
323
+ SOURCE_DATE:=2020-09-06
304
324
VERSION:=b2d7260dcb428b2fb65540edb28d7538602b4a26
305
325
URL:=https://github.com/Ansuel/nginx-ubus-module.git
306
- MIRROR_HASH:=472cef416d25effcac66c85417ab6596e634a7a64d45b709bb090892d567553c
326
+ MIRROR_HASH:=515bb9d355ad80916f594046a45c190a68fb6554d6795a54ca15cab8bdd12fda
307
327
PROTO:=git
308
328
endef
309
329
310
330
define Module/Download
311
331
define Download/nginx-mod-$(1 ) +=
312
332
313
333
SUBDIR:=nginx-mod-$(1 )
314
- FILE:=nginx-mod-$(1 ) -$$$$(VERSION ) .tar.xz
334
+ FILE:=nginx-mod-$(1 ) -$$$$(subst -,.,$$ $$( SOURCE_DATE ) ) ~$$ $$( call version_abbrev,$$ $$( VERSION )) .tar.zst
315
335
endef
316
336
endef
317
337
$(foreach m,$(PKG_MOD_EXTRA),$(eval $(call Module/Download,$(m))))
@@ -341,7 +361,7 @@ define Module/Build/Prepare
341
361
$(eval $(call Download,nginx-mod-$(1 ) ) )
342
362
$(eval $(Download/nginx-mod-$(1 ) ) )
343
363
mkdir -p $(PKG_BUILD_DIR ) /nginx-mod-$(1 )
344
- xzcat $(DL_DIR ) /$(FILE ) | tar -C $(PKG_BUILD_DIR ) /nginx-mod-$(1 ) $(TAR_OPTIONS ) --strip-components 1
364
+ zstdcat $(DL_DIR ) /$(FILE ) | tar -C $(PKG_BUILD_DIR ) /nginx-mod-$(1 ) $(TAR_OPTIONS ) --strip-components 1
345
365
endef
346
366
347
367
define Build/Prepare
@@ -375,8 +395,10 @@ define BuildModule
375
395
376
396
define Package/nginx-mod-$(1 ) /install
377
397
$(INSTALL_DIR ) $$(1 ) /usr/lib/nginx/modules
398
+ $(INSTALL_DIR ) $$(1 ) /etc/nginx/module.d
378
399
$(foreach m,$(3 ) ,
379
- $(CP ) $$(PKG_INSTALL_DIR ) /usr/lib/nginx/modules/$(m ) _module.so $$(1 ) /usr/lib/nginx/modules
400
+ $(CP ) $$(PKG_INSTALL_DIR ) /usr/lib/nginx/modules/$(m ) _module.so $$(1 ) /usr/lib/nginx/modules && \
401
+ echo "load_module /usr/lib/nginx/modules/$(m ) _module.so;" > $$(1 ) /etc/nginx/module.d/$(m ) .module
380
402
)
381
403
$(call Module/nginx-mod-$(1 ) /install,$$(1 ) )
382
404
endef
@@ -406,7 +428,6 @@ CONFIGURE_ARGS += \
406
428
--http-proxy-temp-path=/var/lib/nginx/proxy \
407
429
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
408
430
--with-cc="$(TARGET_CC ) " \
409
- --with-cc-opt="$(TARGET_CPPFLAGS ) $(TARGET_CFLAGS ) " \
410
431
--with-ld-opt="$(TARGET_LDFLAGS ) " \
411
432
--without-http_upstream_zone_module \
412
433
--with-compat \
@@ -478,7 +499,7 @@ $(eval $(call BuildModule,brotli,,ngx_http_brotli_filter ngx_http_brotli_static,
478
499
Add support for brotli compression module.))
479
500
$(eval $(call BuildModule,naxsi,,ngx_http_naxsi, \
480
501
Enable NAXSI module.))
481
- $(eval $(call BuildModule,geoip2,+@NGINX_STREAM_CORE_MODULE +libmaxminddb,ngx_http_geoip2 ngx_stream_geoip2, \
502
+ $(eval $(call BuildModule,geoip2,+@NGINX_STREAM_CORE_MODULE +nginx-mod-stream + libmaxminddb,ngx_http_geoip2 ngx_stream_geoip2, \
482
503
Enable MaxMind GeoIP2 module.))
483
504
484
505
# TODO: remove after a transition period (together with pkg nginx-util):
0 commit comments