Merge support for accesskey module into stable version.

Do not bump PORTREVISION.

Spotted by:	Andrey Belashkov <manager@capsida.net>
This commit is contained in:
Sergey A. Osokin 2009-02-06 14:38:44 +00:00
parent d5917c0585
commit 9949618efb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=227728
2 changed files with 18 additions and 0 deletions

View file

@ -11,6 +11,7 @@ CATEGORIES= www
MASTER_SITES= http://sysoev.ru/nginx/
MASTER_SITES+= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= osa
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= osa@FreeBSD.org
COMMENT= Robust and small WWW server
@ -18,6 +19,7 @@ COMMENT= Robust and small WWW server
OPTIONS= DEBUG "Enable nginx debugging" off \
GOOGLE_PERFTOOLS "Enable google perftools module" off \
HTTP_MODULE "Enable HTTP module" on \
HTTP_ACCESSKEY_MODULE "Enable http_accesskey module" off \
HTTP_ADDITION_MODULE "Enable http_addition module" off \
HTTP_DAV_MODULE "Enable http_webdav module" off \
HTTP_FLV_MODULE "Enable http_flv module" off \
@ -76,6 +78,14 @@ CONFIGURE_ARGS+=--http-client-body-temp-path=${NGINX_TMPDIR}/client_body_temp \
--http-fastcgi-temp-path=${NGINX_TMPDIR}/fastcgi_temp \
--http-log-path=${NGINX_LOGDIR}/nginx-access.log
.if defined(WITH_HTTP_ACCESSKEY_MODULE)
NGINX_ACCESSKEY_MODULE_VERSION= 2.0.3
MASTER_SITES+= ${MASTER_SITE_LOCAL}:accesskey
MASTER_SITE_SUBDIR= osa:accesskey
DISTFILES+= nginx-accesskey-${NGINX_ACCESSKEY_MODULE_VERSION}.tar.gz:accesskey
CONFIGURE_ARGS+=--add-module=${WRKDIR}/nginx-accesskey-${NGINX_ACCESSKEY_MODULE_VERSION}
.endif
.if defined(WITH_HTTP_ADDITION_MODULE)
CONFIGURE_ARGS+=--with-http_addition_module
.endif
@ -157,6 +167,11 @@ post-patch:
@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \
s!%%PREFIX%%!${PREFIX}!' \
${WRKSRC}/conf/nginx.conf
.if defined(WITH_HTTP_ACCESSKEY_MODULE)
@${REINPLACE_CMD} \
's!$$HTTP_ACCESSKEY_MODULE!ngx_http_accesskey_module!' \
${WRKDIR}/nginx-accesskey-${NGINX_ACCESSKEY_MODULE_VERSION}/config
.endif
do-build:
@cd ${WRKSRC} && ${MAKE}

View file

@ -1,3 +1,6 @@
MD5 (nginx-0.6.35.tar.gz) = 45c7a2d3d91f27f5af1b463f0ff46070
SHA256 (nginx-0.6.35.tar.gz) = 04dc19c75d8f96b4616a3a58a718e13f3847b6c6cc03a709b19a93e398823fb5
SIZE (nginx-0.6.35.tar.gz) = 524987
MD5 (nginx-accesskey-2.0.3.tar.gz) = 9b5304346d5139b1841f5baa01ab0cbe
SHA256 (nginx-accesskey-2.0.3.tar.gz) = d9e94321e78a02de16c57f3e048fd31059fd8116ed03d6de7180f435c52502b1
SIZE (nginx-accesskey-2.0.3.tar.gz) = 2632