ports/54386: [PATCH] net/libnet: update to 1.1.0
Sergei Kolobov
sergei at kolobov.com
Fri Jul 11 16:20:14 UTC 2003
>Number: 54386
>Category: ports
>Synopsis: [PATCH] net/libnet: update to 1.1.0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 11 09:20:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Sergei Kolobov
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD elf.chetwood.ru 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Thu Jun 5 02:19:41 MSD
>Description:
- Update to 1.1.0 (the latest current version)
- Use CONFLICTS to prevent installation over development version
- Do not patch configure.in, remove USE_AUTOCONF
- Remove duplicate MAN3 variable
- Simplify Makefile, use DOCSDIR/EXAMPLESDIR
- Respect NOPORTDOCS
- Reword COMMENT and pkg-descr, add Author tag
Added files:
- files/patch-Makefile.in
Removed files:
- files/patch-aa
- files/patch-ab
- files/patch-ac
Supercedes: ports/54385
Port maintainer (shipley at dis.org) is cc'd.
>How-To-Repeat:
>Fix:
--- libnet-1.1.0.patch begins here ---
Index: Makefile
===================================================================
RCS file: /FreeBSD/cvs/ports/net/libnet/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile 27 Mar 2003 00:04:08 -0000 1.13
+++ Makefile 11 Jul 2003 15:43:52 -0000
@@ -6,36 +6,33 @@
#
PORTNAME= libnet
-PORTVERSION= 1.0.2a
-PORTEPOCH= 1
+PORTVERSION= 1.1.0
CATEGORIES= net
MASTER_SITES= http://www.packetfactory.net/libnet/dist/
MAINTAINER= shipley at dis.org
COMMENT= A C library for creating IP packets
-MAN3= libnet.3
+CONFLICTS= libnet-devel-*
+
+GNU_CONFIGURE= yes
-USE_AUTOCONF= yes
+WRKSRC= ${WRKDIR}/Libnet-latest
-WRKSRC= ${WRKDIR}/Libnet-${PORTVERSION}
MAN3= libnet.3
+DOCS= README doc/BUGS doc/CHANGELOG doc/CONTRIB doc/COPYING \
+ doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING doc/PORTED \
+ doc/RAWSOCKET_NON_SEQUITUR doc/SUPPORTED_PROTOCOLS doc/TODO \
+ doc/Ancillary/README.*
+EXAMPLES= sample/*.c
post-install:
- ${INSTALL_MAN} ${WRKSRC}/doc/libnet.3 ${PREFIX}/man/man3
+ ${INSTALL_SCRIPT} ${WRKSRC}/libnet-config ${PREFIX}/bin
+ @${MKDIR} ${EXAMPLESDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/libnet
- @${MKDIR} ${PREFIX}/share/doc/libnet/examples
- @${MKDIR} ${PREFIX}/share/doc/libnet/ancillary
-.for i in CHANGELOG CHANGELOG-NEWFUNCTIONS COPYING README TODO-1.0 TODO-1.1
- ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/libnet
-.endfor
-.for i in README.asn.1 README.bpf README.legacy-applications README.libnet-config README.linux README.rawsockets
- ${INSTALL_DATA} ${WRKSRC}/doc/Ancillary/${i} ${PREFIX}/share/doc/libnet/ancillary
-.endfor
-.for i in libnet-example-1.c libnet-example-2.c libnet-example-3.c libnet-example-4.c
- ${INSTALL_DATA} ${WRKSRC}/example/${i} ${PREFIX}/share/doc/libnet/examples
-.endfor
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /FreeBSD/cvs/ports/net/libnet/distinfo,v
retrieving revision 1.8
diff -u -r1.8 distinfo
--- distinfo 27 Mar 2003 00:04:08 -0000 1.8
+++ distinfo 11 Jul 2003 14:37:28 -0000
@@ -1 +1 @@
-MD5 (libnet-1.0.2a.tar.gz) = ddf53f0f484184390e8c2a1bd0853667
+MD5 (libnet-1.1.0.tar.gz) = b46e650d9d0e7ad5ef9439c7cd281922
Index: pkg-descr
===================================================================
RCS file: /FreeBSD/cvs/ports/net/libnet/pkg-descr,v
retrieving revision 1.3
diff -u -r1.3 pkg-descr
--- pkg-descr 19 Nov 2001 14:11:21 -0000 1.3
+++ pkg-descr 11 Jul 2003 15:15:56 -0000
@@ -1,17 +1,20 @@
-Libnet A C library for portable packet creation
-
-domains of sockets and protocols.
-
-A C library for portable packet creation
-
-Included are also simple example test programs
-
-Libnet is a collection of routines to help with the construction
-and handling of network packets. It provides a portable framework
-for low-level network packet writing and handling.
+Libnet is a high-level API (toolkit) allowing the application programmer to
+construct and inject network packets. It provides a portable and simplified
+interface for low-level network packet shaping, handling and injection.
+
+Libnet hides much of the tedium of packet creation from the application
+programmer such as multiplexing, buffer management, arcane packet header
+information, byte-ordering, OS-dependent issues, and much more.
Libnet features portable packet creation interfaces at the IP layer
and link layer, as well as a host of supplementary and complementary
functionality.
-WWW: http://www.packetfactory.net/projects/libnet/
+Using libnet, quick and simple packet assembly applications can be whipped up
+with little effort. With a bit more time, more complex programs can be written
+(Traceroute and ping were easily rewritten using libnet and libpcap).
+
+Libnet is distrubuted under the BSD license.
+
+Author: Mike D. Schiffman <mike at infonexus dot com>
+WWW: http://www.packetfactory.net/projects/libnet/
Index: pkg-plist
===================================================================
RCS file: /FreeBSD/cvs/ports/net/libnet/pkg-plist,v
retrieving revision 1.9
diff -u -r1.9 pkg-plist
--- pkg-plist 27 Mar 2003 00:04:08 -0000 1.9
+++ pkg-plist 11 Jul 2003 15:24:22 -0000
@@ -1,30 +1,50 @@
+ at comment $FreeBSD$
bin/libnet-config
include/libnet.h
include/libnet/libnet-asn1.h
include/libnet/libnet-functions.h
include/libnet/libnet-headers.h
include/libnet/libnet-macros.h
-include/libnet/libnet-ospf.h
include/libnet/libnet-structures.h
-lib/libnet.a
-lib/libpwrite.a
-share/doc/libnet/CHANGELOG
-share/doc/libnet/CHANGELOG-NEWFUNCTIONS
-share/doc/libnet/COPYING
-share/doc/libnet/README
-share/doc/libnet/TODO-1.0
-share/doc/libnet/TODO-1.1
-share/doc/libnet/examples/libnet-example-1.c
-share/doc/libnet/examples/libnet-example-2.c
-share/doc/libnet/examples/libnet-example-3.c
-share/doc/libnet/examples/libnet-example-4.c
-share/doc/libnet/ancillary/README.asn.1
-share/doc/libnet/ancillary/README.bpf
-share/doc/libnet/ancillary/README.legacy-applications
-share/doc/libnet/ancillary/README.libnet-config
-share/doc/libnet/ancillary/README.linux
-share/doc/libnet/ancillary/README.rawsockets
- at dirrm share/doc/libnet/ancillary
- at dirrm share/doc/libnet/examples
- at dirrm share/doc/libnet
@dirrm include/libnet
+lib/libnet.a
+%%PORTDOCS%%%%DOCSDIR%%/BUGS
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
+%%PORTDOCS%%%%DOCSDIR%%/CONTRIB
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/DESIGN_NOTES
+%%PORTDOCS%%%%DOCSDIR%%/MIGRATION
+%%PORTDOCS%%%%DOCSDIR%%/PACKET_BUILDING
+%%PORTDOCS%%%%DOCSDIR%%/PORTED
+%%PORTDOCS%%%%DOCSDIR%%/RAWSOCKET_NON_SEQUITUR
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/README.asn.1
+%%PORTDOCS%%%%DOCSDIR%%/README.bpf
+%%PORTDOCS%%%%DOCSDIR%%/README.legacy-applications
+%%PORTDOCS%%%%DOCSDIR%%/README.libnet-config
+%%PORTDOCS%%%%DOCSDIR%%/README.linux
+%%PORTDOCS%%%%DOCSDIR%%/README.rawsockets
+%%PORTDOCS%%%%DOCSDIR%%/SUPPORTED_PROTOCOLS
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%EXAMPLESDIR%%/arp.c
+%%EXAMPLESDIR%%/cdp.c
+%%EXAMPLESDIR%%/dhcp_discover.c
+%%EXAMPLESDIR%%/get_addr.c
+%%EXAMPLESDIR%%/icmp6_echoreq.c
+%%EXAMPLESDIR%%/icmp_timestamp.c
+%%EXAMPLESDIR%%/icmp_unreach.c
+%%EXAMPLESDIR%%/ieee.c
+%%EXAMPLESDIR%%/isl.c
+%%EXAMPLESDIR%%/ntp.c
+%%EXAMPLESDIR%%/ospf_hello.c
+%%EXAMPLESDIR%%/ospf_lsa.c
+%%EXAMPLESDIR%%/ping_of_death.c
+%%EXAMPLESDIR%%/stp.c
+%%EXAMPLESDIR%%/synflood.c
+%%EXAMPLESDIR%%/synflood6.c
+%%EXAMPLESDIR%%/tcp1.c
+%%EXAMPLESDIR%%/tcp2.c
+%%EXAMPLESDIR%%/udp1.c
+%%EXAMPLESDIR%%/udp2.c
+ at dirrm %%EXAMPLESDIR%%
Index: files/patch-Makefile.in
===================================================================
RCS file: files/patch-Makefile.in
diff -N files/patch-Makefile.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-Makefile.in 11 Jul 2003 15:53:31 -0000
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Fri Jul 11 19:52:59 2003
++++ Makefile.in Fri Jul 11 19:53:13 2003
+@@ -106,7 +106,7 @@
+
+ DISTCLEANFILES = *~
+
+-SUBDIRS = include src man sample
++SUBDIRS = include src man
+
+ EXTRA_DIST = Makefile.am.common
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
Index: files/patch-aa
===================================================================
RCS file: files/patch-aa
diff -N files/patch-aa
--- files/patch-aa 27 Mar 2003 00:04:09 -0000 1.7
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,29 +0,0 @@
---- configure.in.orig Wed Jan 17 12:59:30 2001
-+++ configure.in Mon Jul 2 19:18:50 2001
-@@ -50,10 +50,10 @@
- dnl Use these compiler flags if we have gcc.
- dnl
- if test $ac_cv_prog_gcc = yes; then
--dnl if test -z $CFLAGS; then
-- CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
-- CFLAGS="$CCOPTS"
--dnl fi
-+ if test -z "$CFLAGS"; then
-+ CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
-+ CFLAGS="$CCOPTS"
-+ fi
- fi
-
- dnl
-@@ -163,8 +163,9 @@
- LIB_PREFIX="$prefix/lib/aout"
- INC_PREFIX="$prefix/include/"
- BIN_PREFIX="$prefix/bin/"
-- AC_MSG_RESULT(Note: support/bpf-lkm/etherspoof contains the lkm source \
--required to spoof ethernet frames)
-+dnl etherspoof lkm is horrible and only necesary on < RELENG_4
-+dnl AC_MSG_RESULT(Note: support/bpf-lkm/etherspoof contains the lkm source \
-+dnl required to spoof ethernet frames)
- ln -sf FreeBSD support/bpf-lkm/etherspoof
- ;;
-
Index: files/patch-ab
===================================================================
RCS file: files/patch-ab
diff -N files/patch-ab
--- files/patch-ab 27 Mar 2003 00:04:09 -0000 1.6
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
---- Makefile.in.orig Mon Feb 5 09:51:41 2001
-+++ Makefile.in Mon Jul 2 19:41:27 2001
-@@ -96,7 +96,7 @@
- $(ENSUREDIR) $(DESTDIR)$(LIB_PREFIX) 755
- $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX)$(LIBNET) 755
- $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX) 755
-- $(ENSUREDIR) $(DESTDIR)$(MAN_PREFIX) 755
-+# $(ENSUREDIR) $(DESTDIR)$(MAN_PREFIX) 755
- $(ENSUREDIR) $(DESTDIR)$(BIN_PREFIX) 755
- $(INSTALL_DATA) $(LIB) $(DESTDIR)$(LIB_PREFIX)
- rm -f $(DESTDIR)$(LIB_PREFIX)$(LIBPWRITE).a
-@@ -108,7 +108,7 @@
- $(INSTALL_DATA) $(INCLUDE-M) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
- $(INSTALL_DATA) $(INCLUDE-A) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
- $(INSTALL_DATA) $(INCLUDE-O) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
-- $(INSTALL_DATA) $(MAN) $(DESTDIR)$(MAN_PREFIX)
-+# $(INSTALL_DATA) $(MAN) $(DESTDIR)$(MAN_PREFIX)
- $(INSTALL_DATA) $(CONFIG) $(DESTDIR)$(BIN_PREFIX)
-
-
Index: files/patch-ac
===================================================================
RCS file: files/patch-ac
diff -N files/patch-ac
--- files/patch-ac 27 Mar 2003 00:04:09 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- include/libnet/libnet-functions.h.orig Fri Jun 7 00:31:29 2002
-+++ include/libnet/libnet-functions.h Fri Jun 7 00:31:41 2002
-@@ -74,7 +74,7 @@
- int, /* severity */
- char *, /* error message */
- ... /* varargs */
-- );
-+ ) __printflike(2, 3);
-
-
- /*
--- libnet-1.1.0.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list