--- /usr/portage/www-servers/nginx/nginx-1.11.5-r1.ebuild 2016-10-20 16:03:39.000000000 +0200 +++ /usr/local/portage/www-servers/nginx/nginx-1.11.5-r1.ebuild 2016-10-24 09:44:38.865814844 +0200 @@ -138,9 +138,14 @@ HTTP_LDAP_MODULE_URI="https://github.com/kvspb/nginx-auth-ldap/archive/${HTTP_LDAP_MODULE_PV}.tar.gz" HTTP_LDAP_MODULE_WD="${WORKDIR}/nginx-auth-ldap-${HTTP_LDAP_MODULE_PV}" +# ngx-set-misc (https://github.com/openresty/set-misc-nginx-module, BSD license) +HTTP_SET_MISC_MODULE_PV="0.31" +HTTP_SET_MISC_MODULE_P="ngx_set_misc-${HTTP_SET_MISC_MODULE_PV}" +HTTP_SET_MISC_MODULE_URI="https://github.com/openresty/set-misc-nginx-module/archive/v${HTTP_SET_MISC_MODULE_PV}.tar.gz" +HTTP_SET_MISC_MODULE_WD="${WORKDIR}/set-misc-nginx-module-${HTTP_SET_MISC_MODULE_PV}" + # We handle deps below ourselves SSL_DEPS_SKIP=1 -AUTOTOOLS_AUTO_DEPEND="no" inherit autotools ssl-cert toolchain-funcs perl-module flag-o-matic user systemd versionator multilib @@ -166,7 +171,8 @@ nginx_modules_http_sticky? ( ${HTTP_STICKY_MODULE_URI} -> ${HTTP_STICKY_MODULE_P}.tar.bz2 ) nginx_modules_http_mogilefs? ( ${HTTP_MOGILEFS_MODULE_URI} -> ${HTTP_MOGILEFS_MODULE_P}.tar.gz ) nginx_modules_http_memc? ( ${HTTP_MEMC_MODULE_URI} -> ${HTTP_MEMC_MODULE_P}.tar.gz ) - nginx_modules_http_auth_ldap? ( ${HTTP_LDAP_MODULE_URI} -> ${HTTP_LDAP_MODULE_P}.tar.gz )" + nginx_modules_http_auth_ldap? ( ${HTTP_LDAP_MODULE_URI} -> ${HTTP_LDAP_MODULE_P}.tar.gz ) + nginx_modules_http_set_misc? ( ${HTTP_SET_MISC_MODULE_URI} -> ${HTTP_SET_MISC_MODULE_P}.tar.gz )" LICENSE="BSD-2 BSD SSLeay MIT GPL-2 GPL-2+ nginx_modules_http_security? ( Apache-2.0 ) @@ -204,7 +210,8 @@ http_sticky http_mogilefs http_memc - http_auth_ldap" + http_auth_ldap + http_set_misc" IUSE="aio debug +http +http2 +http-cache +ipv6 libatomic libressl luajit +pcre pcre-jit rtmp selinux ssl threads userland_GNU vim-syntax" @@ -454,6 +461,10 @@ myconf+=( --add-module=${HTTP_FANCYINDEX_MODULE_WD} ) fi + if use nginx_modules_http_lua || use nginx_modules_http_set_misc; then + myconf+=( --add-module=${DEVEL_KIT_MODULE_WD} ) + fi + if use nginx_modules_http_lua; then http_enabled=1 if use luajit; then @@ -463,10 +474,14 @@ export LUA_LIB=$(pkg-config --variable libdir lua) export LUA_INC=$(pkg-config --variable includedir lua) fi - myconf+=( --add-module=${DEVEL_KIT_MODULE_WD} ) myconf+=( --add-module=${HTTP_LUA_MODULE_WD} ) fi + if use nginx_modules_http_set_misc ; then + http_enabled=1 + myconf+=( --add-module=${HTTP_SET_MISC_MODULE_WD} ) + fi + if use nginx_modules_http_auth_pam; then http_enabled=1 myconf+=( --add-module=${HTTP_AUTH_PAM_MODULE_WD} ) @@ -692,6 +707,11 @@ dodoc "${HTTP_LUA_MODULE_WD}"/README.markdown fi + if use nginx_modules_http_set_misc; then + docinto ${HTTP_SET_MISC_MODULE_P} + dodoc "${HTTP_SET_MISC_MODULE_WD}"/README.markdown + fi + if use nginx_modules_http_auth_pam; then docinto ${HTTP_AUTH_PAM_MODULE_P} dodoc "${HTTP_AUTH_PAM_MODULE_WD}"/{README.md,ChangeLog}