pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/isic Update isic to 0.07.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aa6e985b0e9d
branches:  trunk
changeset: 568274:aa6e985b0e9d
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed Dec 09 12:32:22 2009 +0000

description:
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@localhost)

        - 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:

 net/isic/Makefile         |  25 +++++++++++++------------
 net/isic/PLIST            |   8 +++++++-
 net/isic/distinfo         |  10 +++++-----
 net/isic/patches/patch-aa |  34 ++++++++++++++++++++++------------
 4 files changed, 47 insertions(+), 30 deletions(-)

diffs (124 lines):

diff -r 19a77ad7abf3 -r aa6e985b0e9d net/isic/Makefile
--- a/net/isic/Makefile Wed Dec 09 12:27:27 2009 +0000
+++ b/net/isic/Makefile Wed Dec 09 12:32:22 2009 +0000
@@ -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@localhost
-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 @@
 # 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 -r 19a77ad7abf3 -r aa6e985b0e9d net/isic/PLIST
--- a/net/isic/PLIST    Wed Dec 09 12:27:27 2009 +0000
+++ b/net/isic/PLIST    Wed Dec 09 12:32:22 2009 +0000
@@ -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 -r 19a77ad7abf3 -r aa6e985b0e9d net/isic/distinfo
--- a/net/isic/distinfo Wed Dec 09 12:27:27 2009 +0000
+++ b/net/isic/distinfo Wed Dec 09 12:32:22 2009 +0000
@@ -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 -r 19a77ad7abf3 -r aa6e985b0e9d net/isic/patches/patch-aa
--- a/net/isic/patches/patch-aa Wed Dec 09 12:27:27 2009 +0000
+++ b/net/isic/patches/patch-aa Wed Dec 09 12:32:22 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index