1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/mail/drbl/Makefile
Sergei Kolobov 39eef1467a - Update to 2.2
PR:		59045
Submitted by:	portsspam@batterybackups.net
2003-11-08 21:51:10 +00:00

45 lines
1.2 KiB
Makefile

# New ports collection makefile for: drbl
# Date created: 21 March 2002
# Whom: Yen-Ming Lee <leeym@leeym.com>
#
# $FreeBSD$
#
PORTNAME= drbl
PORTVERSION= 2.2
CATEGORIES= mail
MASTER_SITES= http://www.agk.nnov.ru/drbl/prog/
MAINTAINER= ports@FreeBSD.org
COMMENT= Distributed Realtime Black List
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_PERL5= yes
post-patch:
@${PERL} -pi.bak -e 's,./drblnode.conf,${PREFIX}/etc/drblnode.conf,g' ${WRKSRC}/*pl
@${PERL} -pi.bak -e 's,(config.pl|drbllib.pl),${DATADIR}/\1,g' ${WRKSRC}/*pl
@${PERL} -pi.bak -e 's,./header,${DATADIR}/header,g' ${WRKSRC}/drblnode.conf.sample
@${PERL} -pi.bak -e 's, do_, ${PREFIX}/bin/do_,g' ${WRKSRC}/create_drbl.sh
do-install:
@${MKDIR} ${DATADIR}
.for f in config.pl drbllib.pl header
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${DATADIR}
.endfor
@${MKDIR} ${PREFIX}/etc
${INSTALL_DATA} ${WRKSRC}/drblnode.conf.sample ${PREFIX}/etc
.if !exists(${PREFIX}/etc/drblnode.conf)
${CP} ${PREFIX}/etc/drblnode.conf.sample ${PREFIX}/etc/drblnode.conf
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.for f in create_drbl.sh do_drbl.pl do_info.pl do_vote.pl
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
.include <bsd.port.mk>