2013-09-20 23:36:50 +00:00
|
|
|
# Created by: Ian Struble <ian@broken.net>
|
2005-12-20 23:59:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= junkbuster
|
|
|
|
PORTVERSION= 2.0.2
|
2009-11-07 10:39:08 +00:00
|
|
|
PORTREVISION= 7
|
2005-12-20 23:59:29 +00:00
|
|
|
CATEGORIES= www
|
2010-11-23 09:12:32 +00:00
|
|
|
MASTER_SITES= http://f2.org/download/
|
2009-11-07 10:39:08 +00:00
|
|
|
DISTNAME= ijb-zlib-11
|
2005-12-20 23:59:29 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2014-07-02 17:17:20 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-08-06 09:11:57 +00:00
|
|
|
COMMENT= HTTP proxy server that eliminates ads
|
2005-12-20 23:59:29 +00:00
|
|
|
|
2014-08-22 13:38:14 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2005-12-20 23:59:29 +00:00
|
|
|
ALL_TARGET= # yes, an empty target.
|
|
|
|
JDIR= ${PREFIX}/etc/junkbuster
|
2008-04-07 12:41:20 +00:00
|
|
|
SUB_FILES= junkbuster pkg-message
|
2009-07-17 18:44:33 +00:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2006-04-01 12:05:22 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2005-12-20 23:59:29 +00:00
|
|
|
|
|
|
|
GNUREGEXP= 's:gnu_regex.h:gnu/regex.h:'
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.for f in junkbstr.ini saclfile.ini sblock.ini scookie.ini sforward.ini strust.ini win32.h
|
|
|
|
@${REINPLACE_CMD} -e "s:`/usr/bin/printf '\r'`::" ${WRKSRC}/${f}
|
|
|
|
.endfor
|
|
|
|
.for f in acl.c bind.c conn.c encode.c filters.c gnu_regex.c jcc.c loaders.c parsers.c socks4.c ssplit.c win32.c
|
|
|
|
@${REINPLACE_CMD} -e ${GNUREGEXP} ${WRKSRC}/${f}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
2014-08-22 13:38:14 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/junkbuster ${STAGEDIR}${PREFIX}/sbin/junkbuster
|
|
|
|
@${MKDIR} -m 755 ${STAGEDIR}${JDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/junkbstr.ini ${STAGEDIR}${JDIR}/configfile.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sblock.ini ${STAGEDIR}${JDIR}/blockfile.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/saclfile.ini ${STAGEDIR}${JDIR}/aclfile.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/scookie.ini ${STAGEDIR}${JDIR}/cookiefile.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sforward.ini ${STAGEDIR}${JDIR}/forwardfile.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/strust.ini ${STAGEDIR}${JDIR}/trustfile.sample
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/junkbuster.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
2005-12-20 23:59:29 +00:00
|
|
|
|
2007-10-04 06:21:46 +00:00
|
|
|
.include <bsd.port.mk>
|