freebsd-ports/www/tinyproxy/Makefile
Sunpoet Po-Chuan Hsieh 5e4fb3aeb5 Update to 1.10.0
- Update manpages

Note that the security fix for CVE-2017-11747 to generate pid file before
dropping privilege is already done in the src/main.c patch.

Changes:	https://github.com/tinyproxy/tinyproxy/releases
2019-01-06 20:39:53 +00:00

46 lines
1.4 KiB
Makefile

# Created by: Mitsuru Yoshida <mitsuru@riken.go.jp>
# $FreeBSD$
PORTNAME= tinyproxy
PORTVERSION= 1.10.0
PORTEPOCH= 1
CATEGORIES= www
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Small, efficient HTTP proxy server
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= REVERSE TRANSPARENT XHEADER
REVERSE_DESC= Reverse proxy support
TRANSPARENT_DESC= Transparent proxy support
XHEADER_DESC= X-Tinyproxy header
USES= autoreconf gmake
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \
--program-transform-name=""
GNU_CONFIGURE= yes
USE_RC_SUBR= ${PORTNAME}
USE_GITHUB= yes
REVERSE_CONFIGURE_ENABLE= reverse
TRANSPARENT_CONFIGURE_ENABLE= transparent
XHEADER_CONFIGURE_ENABLE= xtinyproxy
post-patch:
@${REINPLACE_CMD} -e 's|tinyproxy/tinyproxy|tinyproxy|g; s|/etc/tinyproxy|${PREFIX}&|' \
${WRKSRC}/docs/man5/tinyproxy.conf.txt.in \
${WRKSRC}/docs/man8/tinyproxy.txt.in \
${WRKSRC}/etc/tinyproxy.conf.in
@${REINPLACE_CMD} -e 's|pkgsysconf_DATA|sysconf_DATA|' ${WRKSRC}/etc/Makefile.am
@${REINPLACE_CMD} -e '/\/usr\/share\/tinyproxy/d; s|^#\(LogFile \)|\1|; s|^#\(PidFile \)|\1|' ${WRKSRC}/etc/tinyproxy.conf.in
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/tinyproxy.conf ${STAGEDIR}${PREFIX}/etc/tinyproxy.conf.sample
${INSTALL_MAN} ${FILESDIR}/tinyproxy.conf.5 ${STAGEDIR}${PREFIX}/man/man5/
${INSTALL_MAN} ${FILESDIR}/tinyproxy.8 ${STAGEDIR}${PREFIX}/man/man8/
.include <bsd.port.mk>