2005-12-20 23:59:29 +00:00
|
|
|
# New ports collection makefile for: junkbuster
|
|
|
|
# Date created: 2 May 1998
|
|
|
|
# Whom: Ian Struble <ian@broken.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= junkbuster
|
|
|
|
PORTVERSION= 2.0.2
|
2009-07-17 18:44:33 +00:00
|
|
|
PORTREVISION= 6
|
2005-12-20 23:59:29 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://f2.org/download/ \
|
|
|
|
http://www.junkbusters.com/ht/en/
|
|
|
|
DISTNAME= ijb-zlib-10
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= edwin@mavetju.org
|
|
|
|
COMMENT= An HTTP proxy server that eliminates ads
|
|
|
|
|
|
|
|
ALL_TARGET= # yes, an empty target.
|
|
|
|
JDIR= ${PREFIX}/etc/junkbuster
|
|
|
|
MAN1= junkbuster.1
|
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:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/junkbuster ${PREFIX}/sbin/junkbuster
|
|
|
|
@${MKDIR} -m 755 ${JDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/junkbstr.ini ${JDIR}/configfile.sample
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sblock.ini ${JDIR}/blockfile.sample
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/saclfile.ini ${JDIR}/aclfile.sample
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/scookie.ini ${JDIR}/cookiefile.sample
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sforward.ini ${JDIR}/forwardfile.sample
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/strust.ini ${JDIR}/trustfile.sample
|
2007-10-10 03:00:36 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/junkbuster.1 ${PREFIX}/man/man1/
|
2005-12-20 23:59:29 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2007-10-04 06:21:46 +00:00
|
|
|
.include <bsd.port.mk>
|