1998-05-03 20:51:39 +00:00
|
|
|
# New ports collection makefile for: junkbuster
|
|
|
|
# Date created: 2 May 1998
|
|
|
|
# Whom: Ian Struble <ian@broken.net>
|
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1998-05-03 20:51:39 +00:00
|
|
|
|
2000-03-05 00:20:12 +00:00
|
|
|
# You need to delete the old distfile if you are upgrading, as the tar ball
|
|
|
|
# for ijb has not been changing names between minor revisions(ie 2.0->2.0.1).
|
|
|
|
# I have contacted the author about this though so we may see something new
|
|
|
|
# in the next revision.
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= junkbuster
|
|
|
|
PORTVERSION= 2.0.2
|
1998-05-03 20:51:39 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.junkbusters.com/ht/en/
|
2000-04-10 00:07:29 +00:00
|
|
|
DISTNAME= ijb20
|
1998-05-03 20:51:39 +00:00
|
|
|
|
|
|
|
MAINTAINER= ian@broken.net
|
|
|
|
|
2000-03-05 00:20:12 +00:00
|
|
|
USE_ZIP= yes
|
1999-01-26 02:24:17 +00:00
|
|
|
ALL_TARGET= # yes, an empty target.
|
1999-11-14 02:28:17 +00:00
|
|
|
JDIR= ${PREFIX}/etc/junkbuster
|
2000-03-05 00:20:12 +00:00
|
|
|
MAN1= junkbuster.1
|
1999-11-14 02:28:17 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e 's:\r::' ${WRKSRC}/*
|
|
|
|
|
1998-05-03 20:51:39 +00:00
|
|
|
do-install:
|
2000-03-05 00:26:06 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/junkbuster ${PREFIX}/sbin/junkbuster
|
1998-05-03 20:51:39 +00:00
|
|
|
${MKDIR} -m 755 ${PREFIX}/etc/junkbuster
|
1999-11-14 02:28:17 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/junkbstr.ini ${PREFIX}/etc/junkbuster/configfile.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sblock.ini ${PREFIX}/etc/junkbuster/blockfile.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/saclfile.ini ${PREFIX}/etc/junkbuster/aclfile.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/scookie.ini ${PREFIX}/etc/junkbuster/cookiefile.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sforward.ini ${PREFIX}/etc/junkbuster/forwardfile.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/strust.ini ${PREFIX}/etc/junkbuster/trustfile.sample
|
|
|
|
$(INSTALL_MAN) ${WRKSRC}/junkbuster.1 $(PREFIX)/man/man1/
|
|
|
|
# Create the startup script. JB will run as user nobody.
|
|
|
|
@${SED} -e 's%JDIR%${JDIR}%g' -e 's%PREFIX%${PREFIX}%g' \
|
2000-03-05 00:20:12 +00:00
|
|
|
${FILESDIR}/junkbuster.sh.in > ${PREFIX}/etc/rc.d/junkbuster.sh
|
1999-11-14 02:28:17 +00:00
|
|
|
${CHMOD} 755 ${PREFIX}/etc/rc.d/junkbuster.sh
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-05-03 20:51:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|