aboutsummaryrefslogtreecommitdiff
path: root/www/ffproxy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/ffproxy/Makefile')
-rw-r--r--www/ffproxy/Makefile40
1 files changed, 8 insertions, 32 deletions
diff --git a/www/ffproxy/Makefile b/www/ffproxy/Makefile
index 4341354bc315..6888b12c9dbe 100644
--- a/www/ffproxy/Makefile
+++ b/www/ffproxy/Makefile
@@ -6,48 +6,24 @@
#
PORTNAME= ffproxy
-PORTVERSION= 1.5.1
+PORTVERSION= 1.6
CATEGORIES= www
MASTER_SITES= http://faith.eu.org/${PORTNAME}/
MAINTAINER= krion@FreeBSD.org
COMMENT= Filtering HTTP proxy server
-USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
MAN5= ${PORTNAME}.conf.5
MAN7= ${PORTNAME}.quick.7
MAN8= ${PORTNAME}.8
-post-patch:
- ${REINPLACE_CMD} -e \
- 's|/etc|${PREFIX}/etc|g ; \
- s|/usr/local|${PREFIX}|g ; \
- s|^CFLAGS =|CFLAGS +=|g ; \
- s|/var/ffproxy|${DOCSDIR}|g' \
- ${WRKSRC}/Makefile
- ${REINPLACE_CMD} -e \
- 's|/etc|${PREFIX}/etc|g' \
- ${WRKSRC}/${PORTNAME}.8 \
- ${WRKSRC}/${PORTNAME}.conf.5
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 \
- ${PREFIX}/man/man8
- ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.conf.5 \
- ${PREFIX}/man/man5
- ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.quick.7 \
- ${PREFIX}/man/man7
- ${INSTALL_DATA} ${WRKSRC}/sample.config \
- ${PREFIX}/etc/ffproxy.conf.sample
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${MKDIR} ${DOCSDIR}/db
- ${MKDIR} ${DOCSDIR}/html
- ${INSTALL_DATA} ${WRKSRC}/html/* ${DOCSDIR}/html
- ${INSTALL_DATA} ${WRKSRC}/db/* ${DOCSDIR}/db
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+post-install:
+ @[ -f ${PREFIX}/etc/ffproxy.conf ] || \
+ ${CP} ${PREFIX}/etc/ffproxy.conf.sample ${PREFIX}/etc/ffproxy.conf
.include <bsd.port.mk>