1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add WITH_USE_SCRIPT_URL and WITH_USE_REDIRECT_URL knobs, allowing for

the SCRIPT_NAME environment variable to be built based on $SCRIPT_URL
or $REDIRECT_URL.
This commit is contained in:
Jeremy Chadwick 2007-08-27 14:47:11 +00:00
parent 760a81c78b
commit 93e3d458ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198387

View File

@ -7,7 +7,7 @@
PORTNAME= cgiwrap
PORTVERSION= 4.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -24,6 +24,8 @@ OPTIONS= CGI_OWNER "Check CGI file owner" on \
CGI_SETGID "Check CGI file setgid permissions" on \
CGI_GROUP_WRITABLE "Check CGI g+w file permissions" on \
CGI_WORLD_WRITABLE "Check CGI o+w file permissions" on \
USE_SCRIPT_URL "Use REDIRECT_URL to build SCRIPT_NAME" off \
USE_SCRIPT_URL "Use SCRIPT_URL to build SCRIPT_NAME" off \
NPH "Enable nph binaries" off \
DEBUG "Enable cgiwrapd binaries" off
@ -96,6 +98,12 @@ CONFIGURE_ARGS+= --without-check-group-writable
.if !defined(WITH_CGI_WORLD_WRITABLE)
CONFIGURE_ARGS+= --without-check-world-writable
.endif
.if defined(WITH_USE_REDIRECT_URL)
CONFIGURE_ARGS+= --with-use-redirect-url
.endif
.if defined(WITH_USE_SCRIPT_URL)
CONFIGURE_ARGS+= --with-use-script-url
.endif
.if !defined(WITH_NPH)
PLIST_SUB+= NPHFLAG="@comment "