1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/www/junkbuster/Makefile
Chris Piazza 5cc3910e94 Remove the ^M's in all the files, install a startup script,
and give a brief instruction on how to proceed to get this to work.

PR:		14805
Submitted by:	Mikhail Teterin <mi@aldan.algebra.com>
1999-11-14 02:28:17 +00:00

49 lines
1.6 KiB
Makefile

# New ports collection makefile for: junkbuster
# Version required: 2.0
# Date created: 2 May 1998
# Whom: Ian Struble <ian@broken.net>
#
# $FreeBSD$
DISTNAME= ijb20
PKGNAME= ijb-2.0.2
CATEGORIES= www
MASTER_SITES= http://www.junkbusters.com/ht/en/
EXTRACT_SUFX= .tar.Z
MAINTAINER= ian@broken.net
ALL_TARGET= # yes, an empty target.
# 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.
MAN1= junkbuster.1
JDIR= ${PREFIX}/etc/junkbuster
post-patch:
@${PERL} -pi -e 's:\r::' ${WRKSRC}/*
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/junkbuster ${PREFIX}/bin/junkbuster
${MKDIR} -m 755 ${PREFIX}/etc/junkbuster
${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' \
< ${FILESDIR}/junkbuster.sh.in > ${PREFIX}/etc/rc.d/junkbuster.sh
${CHMOD} 755 ${PREFIX}/etc/rc.d/junkbuster.sh
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>