Add XHEADER option to control X-Tinyproxy header.

PR:		162422
Submitted by:	Roger Marquis (maintainer)
Feature safe:	yes
This commit is contained in:
Roman Bogorodskiy 2011-11-11 03:46:06 +00:00
parent 2eab57df93
commit 548a91dd22
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285511

View File

@ -34,7 +34,8 @@ CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \
MAN8= tinyproxy.8
MAN5= tinyproxy.conf.5
OPTIONS= REVERSE "Enable reverse proxy support" Off \
OPTIONS= XHEADER "Enable X-Tinyproxy header" Off \
REVERSE "Enable reverse proxy support" Off \
TRANSPARENT "Enable transparent proxy support" Off
.include <bsd.port.pre.mk>
@ -47,6 +48,10 @@ CONFIGURE_ARGS+= --enable-reverse
CONFIGURE_ARGS+= --enable-transparent
.endif
.if defined(WITHOUT_XHEADER)
CONFIGURE_ARGS+= --disable-xtinyproxy
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/etc/tinyproxy/tinyproxy.conf|${PREFIX}/etc/tinyproxy.conf|' \