diff --git a/www/tinyproxy/Makefile b/www/tinyproxy/Makefile index 8c8d338da29b..feefce012c0f 100644 --- a/www/tinyproxy/Makefile +++ b/www/tinyproxy/Makefile @@ -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 @@ -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|' \