From 9d81b2dacc9a803f0bb359d156f5da4f48d790f9 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 19 Jun 2012 16:05:08 +0200 Subject: [PATCH] nginx: added syslog addon --- network/nginx/config.in | 3 +++ network/nginx/nginx.conf | 5 +++++ network/nginx/nginx.desc | 1 + 3 files changed, 9 insertions(+) diff --git a/network/nginx/config.in b/network/nginx/config.in index c36f37065..0560be9f2 100644 --- a/network/nginx/config.in +++ b/network/nginx/config.in @@ -34,6 +34,9 @@ if pkgcheck nginx X; then bool "Lua Module" SDECFG_PKG_NGINX_ADDON_MOD_LUA 0 fi + # syslog support + bool "Nginx Syslog Patch" SDECFG_PKG_NGINX_ADDON_SYSLOG_PATCH 0 + menu_end fi diff --git a/network/nginx/nginx.conf b/network/nginx/nginx.conf index ac2f5c74a..bc8a5d5ca 100644 --- a/network/nginx/nginx.conf +++ b/network/nginx/nginx.conf @@ -145,3 +145,8 @@ if [ "$SDECFG_PKG_NGINX_ADDON_MOD_LUA" == 1 ] ; then hook_add prepatch 5 "pkg_nginx_add_module lua-nginx-module" fi + +if [ "$SDECFG_PKG_NGINX_ADDON_SYSLOG_PATCH" == 1 ] ; then + hook_add prepatch 5 "pkg_nginx_add_module nginx_syslog_patch" + hook_add prepatch 9 "var_append patchfiles ' ' '../addon-module/nginx_syslog_patch/syslog_${ver/%.*}*.patch'" +fi diff --git a/network/nginx/nginx.desc b/network/nginx/nginx.desc index d47607480..7709192b2 100644 --- a/network/nginx/nginx.desc +++ b/network/nginx/nginx.desc @@ -54,3 +54,4 @@ [D] 1976311739 echo-nginx-module-v0.37rc4.tar.gz !https://github.com/agentzh/echo-nginx-module/tarball/v0.37rc4 [D] 2657180702 ngx_devel_kit-v0.2.17.tar.gz !https://github.com/simpl/ngx_devel_kit/tarball/v0.2.17 [D] 1919597670 lua-nginx-module-v0.5.0rc3.tar.gz !https://github.com/chaoslawful/lua-nginx-module/tarball/v0.5.0rc3 +[D] 1862952346 nginx_syslog_patch-v0.22.tar.gz !https://github.com/yaoweibin/nginx_syslog_patch/tarball/v0.22