diff options
author | Ryan Steinmetz <zi@FreeBSD.org> | 2012-05-17 18:56:53 +0000 |
---|---|---|
committer | Ryan Steinmetz <zi@FreeBSD.org> | 2012-05-17 18:56:53 +0000 |
commit | 301598e7bd450b793ba02cf3bf932e96860ac966 (patch) | |
tree | b201b2cc4ea9759856aafd141e54f66e61a0fdbb /dns | |
parent | eb00adb2fafaf48146b2379a1a31acbecf63f8f6 (diff) | |
download | ports-301598e7bd450b793ba02cf3bf932e96860ac966.tar.gz ports-301598e7bd450b793ba02cf3bf932e96860ac966.zip |
Notes
Diffstat (limited to 'dns')
-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/ |