nginx-fancyindex.patch.bak 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --- package/feeds/packages/nginx/Makefile
  2. +++ package/feeds/packages/nginx/Makefile
  3. @@ -28,6 +28,7 @@ PKG_CONFIG_DEPENDS := \
  4. CONFIG_NGINX_DAV \
  5. CONFIG_NGINX_FLV \
  6. CONFIG_NGINX_UBUS \
  7. + CONFIG_NGINX_FANCYINDEX \
  8. CONFIG_NGINX_STUB_STATUS \
  9. CONFIG_NGINX_HTTP_CHARSET \
  10. CONFIG_NGINX_HTTP_GZIP \
  11. @@ -242,6 +243,9 @@ ifneq ($(BUILD_VARIANT),all-module)
  12. ifeq ($(CONFIG_NGINX_UBUS),y)
  13. ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-ubus-module
  14. endif
  15. + ifeq ($(CONFIG_NGINX_FANCYINDEX),y)
  16. + ADDITIONAL_MODULES += --with-http_addition_module --add-module=$(PKG_BUILD_DIR)/nginx-fancyindex-module
  17. + endif
  18. ifeq ($(CONFIG_NGINX_HTTP_AUTH_REQUEST),y)
  19. ADDITIONAL_MODULES += --with-http_auth_request_module
  20. endif
  21. @@ -398,6 +402,7 @@ define Build/Prepare
  22. $(Prepare/nginx-ts)
  23. $(Prepare/nginx-dav-ext-module)
  24. $(Prepare/nginx-ubus-module)
  25. + $(Prepare/nginx-fancyindex-module)
  26. endef
  27. @@ -545,6 +550,22 @@ ifeq ($(CONFIG_NGINX_UBUS),y)
  28. endef
  29. endif
  30. +ifeq ($(CONFIG_NGINX_FANCYINDEX),y)
  31. + define Download/nginx-fancyindex-module
  32. + VERSION:=56934db14ccfb89d6cb452ea1b4c76225c89b8c1
  33. + SUBDIR:=nginx-fancyindex-module
  34. + FILE:=ngx-fancyindex-$$(VERSION).tar.xz
  35. + URL:=https://github.com/aperezdc/ngx-fancyindex.git
  36. + PROTO:=git
  37. + endef
  38. + $(eval $(call Download,nginx-fancyindex-module))
  39. +
  40. + define Prepare/nginx-fancyindex-module
  41. + $(eval $(Download/nginx-fancyindex-module))
  42. + xzcat $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
  43. + endef
  44. +endif
  45. +
  46. # TODO: remove after a transition period (together with pkg nginx-util):
  47. # It is for smoothly substituting nginx and nginx-mod-luci-ssl (by nginx-ssl
  48. # respectively nginx-mod-luci). Add above commented PROVIDES when removing.
  49. --- package/feeds/packages/nginx/Config_ssl.in
  50. +++ package/feeds/packages/nginx/Config_ssl.in
  51. @@ -36,6 +36,13 @@ config NGINX_STUB_STATUS
  52. Enable the stub status module which gives some status from the server.
  53. default n
  54. +config NGINX_FANCYINDEX
  55. + bool
  56. + prompt "Enable FANCYINDEX module"
  57. + help
  58. + Enable FANCYINDEX module.
  59. + default y
  60. +
  61. config NGINX_HTTP_CHARSET
  62. bool
  63. prompt "Enable HTTP charset module"