diff options
author | obache <obache@pkgsrc.org> | 2009-12-09 12:32:22 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2009-12-09 12:32:22 +0000 |
commit | 7fc322ef47cb68cdabf6452da035b5dc0503c2fe (patch) | |
tree | b72ec3a2cdbfb59086a7be6a65dc053991d9d87e /net | |
parent | 2489e3fa32323e69f42b1ae522395241f91993b5 (diff) | |
download | pkgsrc-7fc322ef47cb68cdabf6452da035b5dc0503c2fe.tar.gz |
Update isic to 0.07.
pkgsrc changes:
* change HOMEPAGE and MASTER_SITES to new Sourceforge's one.
* set LICENSE=2-clause-bsd
* add user-destdir support
ISIC (v0.07) 12/22/2006, by Shu Xiao (sxiao@cisco.com)
- New IPv6 utilities: isic6, tcpsic6, udpsic6, icmpsic6.
- New tool multisic for sending random multicast UDP packets.
- Fixed compilation errors with GCC v4.
- Added -k skip option for esic per the request from some users.
- Placed the flood control under low traffic limit case only.
The original flood protection code calls gettimeofday(),
and runs after sending each packet. This is time consumping
and prevents the tool from reaching high traffic limit
on high speed interface (eg. 1000Base-TX). Now the flood
control will take effect only if the specified maximum rate
is less than 10MB/s.
- Corrected -t option bug with tcpsic:
The old one was using it reversely, e.g. -t 30 would generate
packet with 30% of them having correct TCP checksum. But -t
is actually for the percentage of bad TCP checksum.
- Changed to used 32-bit random numbers for some fields:
For IPv4 *sic tools, the source/destination IP address and
TCP sequence/acknowledge numbers are 32-bit width, and
should be assigned with equal size random numbers. The old
code did not do shifting correctly.
- Changed the default value to 10 for all percentage options.
- Cleaned the usage printout of icmpsic:
There were ports used in the usage printout of icmpsic. This
was misleading since no ports arguments needed for it.
- New manual page, try to get more help with "man isic".
Diffstat (limited to 'net')
-rw-r--r-- | net/isic/Makefile | 25 | ||||
-rw-r--r-- | net/isic/PLIST | 8 | ||||
-rw-r--r-- | net/isic/distinfo | 10 | ||||
-rw-r--r-- | net/isic/patches/patch-aa | 34 |
4 files changed, 47 insertions, 30 deletions
diff --git a/net/isic/Makefile b/net/isic/Makefile index d60fc31bbb4..d0d9c5caf0f 100644 --- a/net/isic/Makefile +++ b/net/isic/Makefile @@ -1,20 +1,24 @@ -# $NetBSD: Makefile,v 1.17 2009/07/17 18:00:20 adrianp Exp $ +# $NetBSD: Makefile,v 1.18 2009/12/09 12:32:22 obache Exp $ # -DISTNAME= isic-0.06 -PKGREVISION= 1 +DISTNAME= isic-0.07 CATEGORIES= net -MASTER_SITES= http://www.packetfactory.net/Projects/ISIC/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=isic/} EXTRACT_SUFX= .tgz MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://www.packetfactory.net/Projects/ISIC/ +HOMEPAGE= http://isic.sourceforge.net/ COMMENT= Ip Stack Integrity Checker (IP, TCP, UDP, ICMP et. al.) +LICENSE= 2-clause-bsd + +PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= YES +INSTALLATION_DIRS+= share/doc + post-install: - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/isic.README + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/isic.README .include "../../devel/libnet11/buildlink3.mk" .include "../../mk/bsd.pkg.mk" @@ -26,10 +30,7 @@ post-install: # XXX has an optimization bug when compiling with -O2 # .if ${OPSYS} == "NetBSD" -. if (${MACHINE_ARCH} == "alpha") -CPPFLAGS:= ${CPPFLAGS:C/-O[0-9]*//g} -CFLAGS:= ${CFLAGS:C/-O[0-9]*//g} -CONFIGURE_ENV+= CPPFLAGS=${CPPFLAGS:M*:Q} -CONFIGURE_ENV+= CFLAGS=${CFLAGS:M*:Q} -. endif +#. if (${MACHINE_ARCH} == "alpha") +BUILDLINK_TRANSFORM+= rm:-O[0-9]* +#. endif .endif diff --git a/net/isic/PLIST b/net/isic/PLIST index e33fd0b2bb9..3763b629251 100644 --- a/net/isic/PLIST +++ b/net/isic/PLIST @@ -1,7 +1,13 @@ -@comment $NetBSD: PLIST,v 1.2 2009/12/09 10:38:59 obache Exp $ +@comment $NetBSD: PLIST,v 1.3 2009/12/09 12:32:22 obache Exp $ bin/esic bin/icmpsic +bin/icmpsic6 bin/isic +bin/isic6 +bin/multisic bin/tcpsic +bin/tcpsic6 bin/udpsic +bin/udpsic6 +man/man1/isic.1 share/doc/isic.README diff --git a/net/isic/distinfo b/net/isic/distinfo index 942c2ed8602..2343c70009d 100644 --- a/net/isic/distinfo +++ b/net/isic/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.7 2007/02/18 18:49:29 adrianp Exp $ +$NetBSD: distinfo,v 1.8 2009/12/09 12:32:22 obache Exp $ -SHA1 (isic-0.06.tgz) = 69433d4c6f351648655991d30e5c64e958a82e6b -RMD160 (isic-0.06.tgz) = 2f6a336d4a4a59f4e85b51c45bab83ff3f1390b5 -Size (isic-0.06.tgz) = 27611 bytes -SHA1 (patch-aa) = c72e8c011d295490c8dacdc48c7802fc56d5df39 +SHA1 (isic-0.07.tgz) = 185de415378894ec5248c158d77395d46ce98d4a +RMD160 (isic-0.07.tgz) = 1f06dddc2a120bdfed471b487cc00c7d22b59ae2 +Size (isic-0.07.tgz) = 39823 bytes +SHA1 (patch-aa) = 18f40f8c46dcf7219deecd87543401fbe1076efe diff --git a/net/isic/patches/patch-aa b/net/isic/patches/patch-aa index 6b254281d1f..a0ca9d6ef41 100644 --- a/net/isic/patches/patch-aa +++ b/net/isic/patches/patch-aa @@ -1,17 +1,27 @@ -$NetBSD: patch-aa,v 1.1 2007/02/18 18:49:36 adrianp Exp $ +$NetBSD: patch-aa,v 1.2 2009/12/09 12:32:22 obache Exp $ ---- Makefile.in.orig 2004-11-06 20:39:55.000000000 +0000 +* user-destdir support +* honor PKGMANDIR. + +--- Makefile.in.orig 2006-12-22 08:33:32.000000000 +0000 +++ Makefile.in -@@ -5,9 +5,9 @@ - PREFIX ?= /usr/local +@@ -2,6 +2,7 @@ + # To build for Trinux, add '-static' to LDFLAGS + # and 'strip *sic' after they compile ++DESTDIR = + PREFIX = @prefix@ CC = @CC@ --DEFS = @DEFS@ `libnet-config --defines` --CFLAGS = @CFLAGS@ `libnet-config --cflags` --LIBS = @LIBS@ `libnet-config --libs` -+DEFS = @DEFS@ `libnet11-config --defines` -+CFLAGS = @CFLAGS@ `libnet11-config --cflags` -+LIBS = @LIBS@ `libnet11-config --libs` - LDFLAGS = @LDFLAGS@ + DEFS = @DEFS@ `libnet-config --defines` +@@ -63,7 +64,7 @@ package: distclean + tar -czvf isic-$(VERSION).tgz ./isic-$(VERSION)/* ) - INSTALL = @INSTALL@ + install: $(BINS) $(MAN) +- $(INSTALL) -m 0755 -d $(PREFIX)/bin +- $(INSTALL) -m 0755 -c $(BINS) $(PREFIX)/bin +- $(INSTALL) -m 0755 -d $(PREFIX)/man/man1 +- ${INSTALL} -m 0755 -c $(MAN) $(PREFIX)/man/man1 ++ $(INSTALL) -m 0755 -d $(DESTDIR)$(PREFIX)/bin ++ $(INSTALL) -m 0755 -c $(BINS) $(DESTDIR)$(PREFIX)/bin ++ $(INSTALL) -m 0755 -d $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1 ++ ${INSTALL} -m 0755 -c $(MAN) $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1 |