diff options
author | zi <zi@FreeBSD.org> | 2012-05-18 02:56:53 +0800 |
---|---|---|
committer | zi <zi@FreeBSD.org> | 2012-05-18 02:56:53 +0800 |
commit | ccfe34691ad1f5f81f1d5fbf1110e5f74dd901c6 (patch) | |
tree | b4e48b8d89bb394936723be84c4350d298afd517 /dns/dnsflood | |
parent | 152bd2b524876d68e6ee906a969cfdac9397e0f9 (diff) | |
download | freebsd-ports-gnome-ccfe34691ad1f5f81f1d5fbf1110e5f74dd901c6.tar.gz freebsd-ports-gnome-ccfe34691ad1f5f81f1d5fbf1110e5f74dd901c6.tar.zst freebsd-ports-gnome-ccfe34691ad1f5f81f1d5fbf1110e5f74dd901c6.zip |
- Update to 1.20
Diffstat (limited to 'dns/dnsflood')
-rw-r--r-- | dns/dnsflood/Makefile | 13 | ||||
-rw-r--r-- | dns/dnsflood/distinfo | 4 | ||||
-rw-r--r-- | dns/dnsflood/files/dnsflood.in | 28 | ||||
-rw-r--r-- | dns/dnsflood/pkg-descr | 2 |
4 files changed, 37 insertions, 10 deletions
diff --git a/dns/dnsflood/Makefile b/dns/dnsflood/Makefile index 2a2871593d02..1dc55f5b176f 100644 --- a/dns/dnsflood/Makefile +++ b/dns/dnsflood/Makefile @@ -6,8 +6,7 @@ # PORTNAME= dnsflood -PORTVERSION= 1.12 -PORTREVISION= 1 +PORTVERSION= 1.20 CATEGORIES= dns MASTER_SITES= http://www.adotout.com/ \ http://mirrors.rit.edu/zi/ @@ -17,18 +16,18 @@ MAINTAINER= zi@FreeBSD.org COMMENT= DNS flood detector LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE -WRKSRC= ${WRKDIR}/dns_flood_detector +WRKSRC= ${WRKDIR}/dns_flood_detector_1.2 PLIST_FILES= sbin/dns_flood_detector +USE_RC_SUBR= dnsflood PORTDOCS= README pre-patch: - ${CP} ${WRKSRC}/makefiles/Makefile-FreeBSD ${WRKSRC}/Makefile - -post-patch: @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \ - ${WRKSRC}/Makefile + ${WRKSRC}/makefiles/Makefile-FreeBSD + @${LN} -sf ${WRKSRC}/makefiles/Makefile-FreeBSD ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/dns_flood_detector ${PREFIX}/sbin diff --git a/dns/dnsflood/distinfo b/dns/dnsflood/distinfo index 09c23d6b8ebd..5c05e4ad1070 100644 --- a/dns/dnsflood/distinfo +++ b/dns/dnsflood/distinfo @@ -1,2 +1,2 @@ -SHA256 (dnsflood-1.12.tgz) = c165d715a77e03862c2933c7d35d0ddbd5dc31059eef597a630b73b7c5e98d2a -SIZE (dnsflood-1.12.tgz) = 15835 +SHA256 (dnsflood-1.20.tgz) = 0becfb1976d469f26e7d1406acefbff8700f26c0d73ef4731e1ac261d1391201 +SIZE (dnsflood-1.20.tgz) = 19909 diff --git a/dns/dnsflood/files/dnsflood.in b/dns/dnsflood/files/dnsflood.in new file mode 100644 index 000000000000..7bbc14f2e501 --- /dev/null +++ b/dns/dnsflood/files/dnsflood.in @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: dnsflood +# REQUIRE: NETWORKING +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable dnsflood: +# +# dnsflood_enable="YES" +# + +. /etc/rc.subr + +name=dnsflood +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/dns_flood_detector +command_args="-d" + +# set defaults +dnsflood_enable=${dnsflood_enable:-"NO"} + +load_rc_config $name +run_rc_command "$1" diff --git a/dns/dnsflood/pkg-descr b/dns/dnsflood/pkg-descr index e9af90a2d2c6..10353c3aa925 100644 --- a/dns/dnsflood/pkg-descr +++ b/dns/dnsflood/pkg-descr @@ -1,5 +1,5 @@ DNS Flood Detector was developed to detect abusive usage levels on high traffic nameservers and to enable quick response in -halting the use of one's nameserver to facilitate spam. +halting the use of one's nameserver to facilitate spam. WWW: http://www.adotout.com/ |