aboutsummaryrefslogtreecommitdiffstats
path: root/mail/drbl
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2003-10-08 12:24:30 +0800
committerleeym <leeym@FreeBSD.org>2003-10-08 12:24:30 +0800
commit59130ac9493c6a0401768eb0e8b7e82d0b85837b (patch)
tree80d25054419c38d3cdfc4f78dc63b01506ee40ae /mail/drbl
parent4725c855f9a48b554e6552a9855d69e63b6c3ea5 (diff)
downloadfreebsd-ports-gnome-59130ac9493c6a0401768eb0e8b7e82d0b85837b.tar.gz
freebsd-ports-gnome-59130ac9493c6a0401768eb0e8b7e82d0b85837b.tar.zst
freebsd-ports-gnome-59130ac9493c6a0401768eb0e8b7e82d0b85837b.zip
update to drbl-2.1
drop maintainership Noticed by: http://people.freebsd.org/~fenner/portsurvey/mail.html#drbl
Diffstat (limited to 'mail/drbl')
-rw-r--r--mail/drbl/Makefile32
-rw-r--r--mail/drbl/distinfo2
-rw-r--r--mail/drbl/pkg-plist18
3 files changed, 37 insertions, 15 deletions
diff --git a/mail/drbl/Makefile b/mail/drbl/Makefile
index 8c2386186037..b10657b1c52e 100644
--- a/mail/drbl/Makefile
+++ b/mail/drbl/Makefile
@@ -6,23 +6,39 @@
#
PORTNAME= drbl
-PORTVERSION= 1.06
+PORTVERSION= 2.1
CATEGORIES= mail
-MASTER_SITES= ftp://ftp.drbl.ofisp.org/drbl/
-EXTRACT_SUFX= .tgz
+MASTER_SITES= http://www.agk.nnov.ru/drbl/prog/
-MAINTAINER= leeym@FreeBSD.org
+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 file in README header zones
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
+.for f in config.pl drbllib.pl header
+ ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${DATADIR}
.endfor
-.for file in access2drbl build_drbl
- @${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
+ @${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>
diff --git a/mail/drbl/distinfo b/mail/drbl/distinfo
index 74df4e47af42..8cf33288185f 100644
--- a/mail/drbl/distinfo
+++ b/mail/drbl/distinfo
@@ -1 +1 @@
-MD5 (drbl-1.06.tgz) = 86e2ab4fc2ad4f5849e38e9514f862ad
+MD5 (drbl-2.1.tar.gz) = 60a384775cd1bbd83c6e051c2231512c
diff --git a/mail/drbl/pkg-plist b/mail/drbl/pkg-plist
index ebe312f97de9..e11763da4a13 100644
--- a/mail/drbl/pkg-plist
+++ b/mail/drbl/pkg-plist
@@ -1,6 +1,12 @@
-bin/access2drbl
-bin/build_drbl
-share/drbl/README
-share/drbl/header
-share/drbl/zones
-@dirrm share/drbl
+bin/create_drbl.sh
+bin/do_drbl.pl
+bin/do_info.pl
+bin/do_vote.pl
+@unexec if cmp -s %D/etc/drblnode.conf %D/etc/drblnode.conf.sample; then rm -f %D/etc/drblnode.conf; fi
+etc/drblnode.conf.sample
+%%DATADIR%%/config.pl
+%%DATADIR%%/drbllib.pl
+%%DATADIR%%/header
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%DATADIR%%