aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2017-09-24 04:34:20 +0800
committerosa <osa@FreeBSD.org>2017-09-24 04:34:20 +0800
commite1daaf43dfcda933d7cd2f3db9d9184772bd8d14 (patch)
tree3dcfe298ed954860761684d64ad2f752119c457c /www
parentaf608b475a8e90c4a7cbcfa359a11c3b0bdb4b20 (diff)
downloadfreebsd-ports-gnome-e1daaf43dfcda933d7cd2f3db9d9184772bd8d14.tar.gz
freebsd-ports-gnome-e1daaf43dfcda933d7cd2f3db9d9184772bd8d14.tar.zst
freebsd-ports-gnome-e1daaf43dfcda933d7cd2f3db9d9184772bd8d14.zip
Do the port clean-up:
o) replace `!empty(PORT_OPTIONS:M...)' with `${PORT_OPTIONS:M...}'; o) http_accesskey was removed in r439844, cleanup it. Do not bump PORTREVISION. PR: 222338
Diffstat (limited to 'www')
-rw-r--r--www/nginx-devel/Makefile82
1 files changed, 36 insertions, 46 deletions
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index 49278f81c10a..913fb3082f6a 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -284,7 +284,7 @@ CONFIGURE_ARGS+=--prefix=${ETCDIR} \
--error-log-path=${NGINX_ERRORLOG} \
--user=${WWWOWN} --group=${WWWGRP}
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
MODULESDIR= ${PREFIX}/libexec/${PORTNAME}
CONFIGURE_ARGS+=--modules-path=${MODULESDIR}
.endif
@@ -343,7 +343,7 @@ GIT_AUTH_DIGEST_VERSION= 519dc2a
GH_ACCOUNT+= atomx:auth_digest
GH_PROJECT+= nginx-http-auth-digest:auth_digest
GH_TAGNAME+= ${GIT_AUTH_DIGEST_VERSION}:auth_digest
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_auth_digest}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_auth_digest}
@@ -369,7 +369,7 @@ GIT_HTTP_AUTH_LDAP_VERSION= dbcef31
GH_ACCOUNT+= kvspb:http_auth_ldap
GH_PROJECT+= nginx-auth-ldap:http_auth_ldap
GH_TAGNAME+= ${GIT_HTTP_AUTH_LDAP_VERSION}:http_auth_ldap
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_http_auth_ldap}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_http_auth_ldap}
@@ -382,7 +382,7 @@ GIT_HTTP_AUTH_PAM_VERSION= 1.5.1
GH_ACCOUNT+= sto:auth_pam
GH_PROJECT+= ngx_http_auth_pam_module:auth_pam
GH_TAGNAME+= v${GIT_HTTP_AUTH_PAM_VERSION}:auth_pam
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_auth_pam}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_auth_pam}
@@ -441,7 +441,7 @@ GIT_CT_VERSION= 1.3.2
GH_ACCOUNT+= grahamedgecombe:ct
GH_PROJECT+= nginx-ct:ct
GH_TAGNAME+= v${GIT_CT_VERSION}:ct
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_ct}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_ct}
@@ -458,7 +458,7 @@ NGINX_ECHO_VERSION= 46334b3
GH_ACCOUNT+= openresty:echo
GH_PROJECT+= echo-nginx-module:echo
GH_TAGNAME+= ${NGINX_ECHO_VERSION}:echo
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_echo}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_echo}
@@ -486,7 +486,7 @@ NGINX_HEADERS_MORE_VERSION= 84241e4
GH_ACCOUNT+= openresty:headers_more
GH_PROJECT+= headers-more-nginx-module:headers_more
GH_TAGNAME+= ${NGINX_HEADERS_MORE_VERSION}:headers_more
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_headers_more}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_headers_more}
@@ -512,7 +512,7 @@ NGINX_EVAL_VERSION= 342c812
GH_ACCOUNT+= openresty:eval
GH_PROJECT+= nginx-eval-module:eval
GH_TAGNAME+= ${NGINX_EVAL_VERSION}:eval
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_eval}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_eval}
@@ -524,7 +524,7 @@ NGINX_FANCYINDEX_VERSION= 0.4.1
GH_ACCOUNT+= aperezdc:fancyindex
GH_PROJECT+= ngx-fancyindex:fancyindex
GH_TAGNAME+= v${NGINX_FANCYINDEX_VERSION}:fancyindex
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_fancyindex}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_fancyindex}
@@ -546,7 +546,7 @@ GH_ACCOUNT+= leev:geoip2
GH_PROJECT+= ngx_http_geoip2_module:geoip2
GH_TAGNAME+= ${NGINX_HTTP_GEOIP2_VERSION}:geoip2
CFLAGS+= "-I${LOCALBASE}/include"
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_geoip2}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_geoip2}
@@ -567,7 +567,7 @@ CONFIGURE_ARGS+=--add-module=${WRKSRC_json_status}
.endif
.if ${PORT_OPTIONS:MHTTP_GEOIP}
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--with-http_geoip_module=dynamic
.else
CONFIGURE_ARGS+=--with-http_geoip_module
@@ -585,7 +585,7 @@ CONFIGURE_ARGS+=--with-http_gunzip_module
.if ${PORT_OPTIONS:MHTTP_IMAGE_FILTER}
LIB_DEPENDS+= libgd.so:graphics/gd
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--with-http_image_filter_module=dynamic
.else
CONFIGURE_ARGS+=--with-http_image_filter_module
@@ -623,7 +623,7 @@ EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ngx_http_notice_module.c
.if ${PORT_OPTIONS:MHTTP_PERL}
CATEGORIES+= perl5
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--with-http_perl_module=dynamic
.else
CONFIGURE_ARGS+=--with-http_perl_module
@@ -659,7 +659,7 @@ CONFIGURE_ARGS+=--with-http_realip_module
NGINX_REDIS_VERSION= 0.3.8
MASTER_SITES+= LOCAL/osa:redis
DISTFILES+= ngx_http_redis-${NGINX_REDIS_VERSION}.tar.gz:redis
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKDIR}/ngx_http_redis-${NGINX_REDIS_VERSION}
.else
CONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_http_redis-${NGINX_REDIS_VERSION}
@@ -687,7 +687,7 @@ LIB_DEPENDS+= libmsgpuck.so:devel/msgpuck \
GH_ACCOUNT+= tarantool:nginx_tarantool
GH_PROJECT+= nginx_upstream_module:nginx_tarantool
GH_TAGNAME+= 1278ee5:nginx_tarantool
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_nginx_tarantool}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_nginx_tarantool}
@@ -727,7 +727,7 @@ GH_TAGNAME+= v${NGINX_UPLOADPROGRESS_VERSION}:uploadprogress
CONFIGURE_ARGS+=--add-module=${WRKSRC_uploadprogress}
.endif
-.if !empty(PORT_OPTIONS:MHTTP_UPSTREAM_CHECK)
+.if ${PORT_OPTIONS:MHTTP_UPSTREAM_CHECK}
# WWW: https://github.com/yaoweibin/nginx_upstream_check_module
NGINX_UPSTREAM_CHECK_VERSION= 10782ea
GH_ACCOUNT+= yaoweibin:upstreamcheck
@@ -741,13 +741,13 @@ EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-http-modules-ngx_http_upstream_hash_
${PATCHDIR}/extra-patch-src-http-ngx_http_upstream_round_robin.h
.endif
-.if !empty(PORT_OPTIONS:MHTTP_UPSTREAM_FAIR)
+.if ${PORT_OPTIONS:MHTTP_UPSTREAM_FAIR}
NGINX_UPSTREAM_FAIR_VERSION= b5be36f
GH_ACCOUNT+= cryptofuture:upstreamfair
GH_PROJECT+= nginx-upstream-fair:upstreamfair
GH_TAGNAME+= ${NGINX_UPSTREAM_FAIR_VERSION}:upstreamfair
CONFIGURE_ARGS+=--add-module=${WRKSRC_upstreamfair}
-#.if !empty(PORT_OPTIONS:MHTTP_UPSTREAM_CHECK)
+#.if ${PORT_OPTIONS:MHTTP_UPSTREAM_CHECK}
#EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ngx_http_upstream_fair_module.c
#.endif
.endif
@@ -776,7 +776,7 @@ CONFIGURE_ARGS+=--add-module=${WRKSRC_vte}
.if ${PORT_OPTIONS:MHTTP_XSLT}
USE_GNOME+= libxml2 libxslt
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--with-http_xslt_module=dynamic
.else
CONFIGURE_ARGS+=--with-http_xslt_module
@@ -809,7 +809,7 @@ NGINX_DYNAMIC_UPSTREAM_VERSION= 0.1.3
GH_ACCOUNT+= cubicdaiya:dyn_upstream
GH_PROJECT+= ngx_dynamic_upstream:dyn_upstream
GH_TAGNAME+= v${NGINX_DYNAMIC_UPSTREAM_VERSION}:dyn_upstream
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_dyn_upstream}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_dyn_upstream}
@@ -858,7 +858,7 @@ NGINX_LUA_VERSION= 0.10.8
GH_ACCOUNT+= openresty:lua
GH_PROJECT+= lua-nginx-module:lua
GH_TAGNAME+= v${NGINX_LUA_VERSION}:lua
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_lua}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_lua}
@@ -875,7 +875,7 @@ NGINX_MEMC_VERSION= 0.18
GH_ACCOUNT+= openresty:memc
GH_PROJECT+= memc-nginx-module:memc
GH_TAGNAME+= v${NGINX_MEMC_VERSION}:memc
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_memc}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_memc}
@@ -920,7 +920,7 @@ CONFIGURE_ARGS+=--without-http_rewrite_module \
PASSENGER_VERSION= 5.1.8
MASTER_SITES+= http://s3.amazonaws.com/phusion-passenger/releases/:passenger
DISTFILES+= passenger-${PASSENGER_VERSION}.tar.gz:passenger
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKDIR}/passenger-${PASSENGER_VERSION}/src/nginx_module
.else
CONFIGURE_ARGS+=--add-module=${WRKDIR}/passenger-${PASSENGER_VERSION}/src/nginx_module
@@ -981,7 +981,7 @@ NGINX_SET_MISC_VERSION= f808ef4
GH_ACCOUNT+= openresty:setmisc
GH_PROJECT+= set-misc-nginx-module:setmisc
GH_TAGNAME+= ${NGINX_SET_MISC_VERSION}:setmisc
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_setmisc}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_setmisc}
@@ -1020,7 +1020,7 @@ LIB_DEPENDS+= ${IMAGEMAGICK_LIB_DEPENDS} \
GH_ACCOUNT+= cubicdaiya:small_light
GH_PROJECT+= ngx_small_light:small_light
GH_TAGNAME+= v${NGINX_SMALL_LIGHT_VERSION}:small_light
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_small_light}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_small_light}
@@ -1040,7 +1040,7 @@ NGINX_VOD_VERSION= 1.18
GH_ACCOUNT+= kaltura:vod
GH_PROJECT+= nginx-vod-module:vod
GH_TAGNAME+= ${NGINX_VOD_VERSION}:vod
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_vod}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_vod}
@@ -1065,7 +1065,7 @@ CONFIGURE_ARGS+=--with-http_v2_module
GH_ACCOUNT+= nginx:njs
GH_PROJECT+= njs:njs
GH_TAGNAME+= bd40aea:njs
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_njs}/nginx
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_njs}/nginx
@@ -1073,7 +1073,7 @@ CONFIGURE_ARGS+=--add-module=${WRKSRC_njs}/nginx
.endif
.if ${PORT_OPTIONS:MSTREAM}
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--with-stream=dynamic
.else
CONFIGURE_ARGS+=--with-stream
@@ -1104,7 +1104,7 @@ PLIST_SUB+= WWWDATA="@comment "
.endif # WITH_HTTP
.if ${PORT_OPTIONS:MMAIL}
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--with-mail=dynamic
.else
CONFIGURE_ARGS+=--with-mail
@@ -1143,7 +1143,7 @@ LIB_DEPENDS+= libbrotlicommon.so:archivers/brotli
GH_ACCOUNT+= google:brotli
GH_PROJECT+= ngx_brotli:brotli
GH_TAGNAME+= ${NGINX_BROTLI_VERSION}:brotli
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
CONFIGURE_ARGS+=--add-dynamic-module=${WRKSRC_brotli}
.else
CONFIGURE_ARGS+=--add-module=${WRKSRC_brotli}
@@ -1198,21 +1198,11 @@ post-patch:
s!%%PREFIX%%!${PREFIX}!; \
s!%%NGINX_ERRORLOG%%!${NGINX_ERRORLOG}!' \
${WRKSRC}/conf/nginx.conf
-.if ${PORT_OPTIONS:MHTTP_ACCESSKEY}
- @${REINPLACE_CMD} \
- '128s!NGX_OK!NGX_DECLINED!' \
- ${WRKDIR}/nginx-accesskey-${NGINX_ACCESSKEY_VERSION}/ngx_http_accesskey_module.c
-.endif
.if ${PORT_OPTIONS:MHTTP_AUTH_KRB5}
@${REINPLACE_CMD} \
's!%%GSSAPILIBS%%!${GSSAPILIBS}!' \
${WRKSRC_auth_krb5}/config
.endif
-.if ${PORT_OPTIONS:MHTTP_ACCESSKEY}
- @${REINPLACE_CMD} \
- 's!$$HTTP_ACCESSKEY_MODULE!ngx_http_accesskey_module!' \
- ${WRKDIR}/nginx-accesskey-${NGINX_ACCESSKEY_VERSION}/config
-.endif
# linker error acquire if --std=c99 defined, add "static" to inline function
.if ${PORT_OPTIONS:MHTTP_ZIP}
@${REINPLACE_CMD} \
@@ -1292,7 +1282,7 @@ do-build:
do-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
${MKDIR} ${STAGEDIR}${MODULESDIR}
.endif
${MKDIR} ${STAGEDIR}${NGINX_TMPDIR}
@@ -1304,7 +1294,7 @@ do-install:
.for i in fastcgi_params mime.types scgi_params uwsgi_params
${INSTALL_DATA} ${WRKSRC}/conf/${i} ${STAGEDIR}${ETCDIR}/${i}-dist
.endfor
-.if !empty(PORT_OPTIONS:MHTTP) && !empty(PORT_OPTIONS:MWWW)
+.if ${PORT_OPTIONS:MHTTP} && ${PORT_OPTIONS:MWWW}
${MKDIR} ${STAGEDIR}${PREFIX}/www/nginx-dist
.for i in index.html 50x.html
${INSTALL_DATA} ${WRKSRC}/html/${i} ${STAGEDIR}${PREFIX}/www/nginx-dist
@@ -1312,7 +1302,7 @@ do-install:
${ECHO_CMD} "" >>${STAGEDIR}${PREFIX}/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
.endif
-.if !empty(PORT_OPTIONS:MHTTP) && !empty(PORT_OPTIONS:MHTTP_PERL)
+.if ${PORT_OPTIONS:MHTTP} && ${PORT_OPTIONS:MHTTP_PERL}
${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/nginx
${INSTALL_PROGRAM} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so \
${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/nginx
@@ -1326,7 +1316,7 @@ do-install:
.endif
# Install dynamic modules
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
(cd ${WRKSRC}/objs/ && ${FIND} . -name '*.so' -maxdepth 1 -type f \
-exec ${INSTALL_PROGRAM} {} ${STAGEDIR}${MODULESDIR} \;)
.endif
@@ -1338,7 +1328,7 @@ do-install:
.endif
post-install:
-.if !empty(PORT_OPTIONS:MHTTP) && !empty(PORT_OPTIONS:MHTTP_PERL)
+.if ${PORT_OPTIONS:MHTTP} && ${PORT_OPTIONS:MHTTP_PERL}
${ECHO_CMD} ${SITE_ARCH_REL}/auto/nginx/nginx.so >> ${TMPPLIST}
${ECHO_CMD} ${SITE_ARCH_REL}/nginx.pm >> ${TMPPLIST}
.endif
@@ -1353,7 +1343,7 @@ post-install:
.endif
# Add dynamic modules to the plist
-.if !empty(PORT_OPTIONS:MDSO)
+.if ${PORT_OPTIONS:MDSO}
(cd ${STAGEDIR}${PREFIX} && ${FIND} ${MODULESDIR:S|${PREFIX}/||} \
! -type d >>${TMPPLIST})
.endif