2002-03-21 22:25:42 -05:00
|
|
|
# New ports collection makefile for: drbl
|
|
|
|
# Date created: 21 March 2002
|
|
|
|
# Whom: Yen-Ming Lee <leeym@leeym.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= drbl
|
2003-11-08 16:51:10 -05:00
|
|
|
PORTVERSION= 2.2
|
2002-03-21 22:25:42 -05:00
|
|
|
CATEGORIES= mail
|
2003-10-08 00:24:30 -04:00
|
|
|
MASTER_SITES= http://www.agk.nnov.ru/drbl/prog/
|
2002-03-21 22:25:42 -05:00
|
|
|
|
2003-10-08 00:24:30 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 01:14:21 -05:00
|
|
|
COMMENT= Distributed Realtime Black List
|
2002-03-21 22:25:42 -05:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2003-10-08 00:24:30 -04:00
|
|
|
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
|
2002-03-21 22:25:42 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
2003-10-08 00:24:30 -04:00
|
|
|
.for f in config.pl drbllib.pl header
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${DATADIR}
|
2002-03-21 22:25:42 -05:00
|
|
|
.endfor
|
2003-10-08 00:24:30 -04:00
|
|
|
@${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
|
2002-03-21 22:25:42 -05:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|