nginx-util: add support for loading dynamic module in uci template
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 20 Apr 2023 10:59:08 +0000 (12:59 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 27 Apr 2023 04:14:55 +0000 (06:14 +0200)
Add support for loading dynamic module in uci template by adding .module
file in module.d directory.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
net/nginx-util/Makefile
net/nginx-util/files/uci.conf.template

index 2ff4da194426cd3791ca77061518cd1b298e2efc..52cdbb4eac6a1232dd90087d87b2aad1fa51b7fc 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nginx-util
 PKG_VERSION:=1.6
-PKG_RELEASE:=15
+PKG_RELEASE:=16
 PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
 
 include $(INCLUDE_DIR)/package.mk
@@ -67,6 +67,8 @@ define Package/nginx-ssl-util/install/default
 
        $(INSTALL_CONF) ./files/restrict_locally $(1)/etc/nginx/
 
+       $(INSTALL_DIR) $(1)/etc/nginx/module.d/
+
        $(INSTALL_DIR) $(1)/etc/config/
        $(INSTALL_CONF) ./files/nginx.config $(1)/etc/config/nginx
 
index 1c611d9ad2e9eaa0f79b8a3afeb0e71dc769a2f1..406ddb4cc13dea8389b6ef40f43019d1601b2d31 100644 (file)
@@ -6,6 +6,8 @@ worker_processes auto;
 
 user root;
 
+include module.d/*.module;
+
 events {}
 
 http {