ports/54421: [PATCH] net/libnet: update to 1.1.1-RC-005
Sergei Kolobov
sergei at kolobov.com
Sat Jul 12 20:50:19 UTC 2003
>Number: 54421
>Category: ports
>Synopsis: [PATCH] net/libnet: update to 1.1.1-RC-005
>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: Sat Jul 12 13:50:17 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.1-RC-005 (latest development version)
- Synchronize with net/libnet (see ports/54386):
- Use CONFLICTS to prevent installation over stable version
- Simplify Makefile, use DOCSDIR/EXAMPLESDIR
- Reword COMMENT and pkg-descr, add Author tag
- Do not patch configure.in/Makefile.am, remove USE_AUTOCONF/USE_AUTOMAKE
- Use PKGNAMESUFFIX
- Install examples and documentation
Added files:
- files/patch-Makefile.in
Removed files:
- files/patch-aa
- files/patch-ab
Port maintainer (smace at freebsd.org) is cc'd.
>How-To-Repeat:
>Fix:
--- libnet-devel-1.1.1.r005.patch begins here ---
Index: Makefile
===================================================================
RCS file: /FreeBSD/cvs/ports/net/libnet-devel/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 7 Mar 2003 06:07:50 -0000 1.3
+++ Makefile 11 Jul 2003 15:43:08 -0000
@@ -5,23 +5,37 @@
# $FreeBSD: ports/net/libnet-devel/Makefile,v 1.3 2003/03/07 06:07:50 ade Exp $
#
-PORTNAME= libnet-devel
-PORTVERSION= 1.1.0
+PORTNAME= libnet
+PORTVERSION= 1.1.1.r005
CATEGORIES= net
MASTER_SITES= http://www.packetfactory.net/libnet/dist/
-DISTNAME= ${PORTNAME:S/-devel$//}-${PORTVERSION}
+PKGNAMESUFFIX= -devel
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-RC-/}
MAINTAINER= smace at freebsd.org
COMMENT= A C library for creating IP packets (development version)
-WRKSRC= ${WRKDIR}/Libnet-latest
+CONFLICTS= libnet-1.0.* libnet-1.1.0
-USE_AUTOMAKE= yes
-USE_AUTOCONF= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+WRKSRC= ${WRKDIR}/Libnet-${PORTVERSION:S/.r/-RC-/}
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_SCRIPT} ${WRKSRC}/libnet-config ${PREFIX}/bin
+ @${MKDIR} ${EXAMPLESDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+.endif
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /FreeBSD/cvs/ports/net/libnet-devel/distinfo,v
retrieving revision 1.1
diff -u -r1.1 distinfo
--- distinfo 7 Jan 2003 20:50:07 -0000 1.1
+++ distinfo 11 Jul 2003 15:36:23 -0000
@@ -1 +1 @@
-MD5 (libnet-1.1.0.tar.gz) = b46e650d9d0e7ad5ef9439c7cd281922
+MD5 (libnet-1.1.1-RC-005.tar.gz) = cf3f72f6f8aad22e09a64a448bc37872
Index: pkg-descr
===================================================================
RCS file: /FreeBSD/cvs/ports/net/libnet-devel/pkg-descr,v
retrieving revision 1.1
diff -u -r1.1 pkg-descr
--- pkg-descr 7 Jan 2003 20:50:07 -0000 1.1
+++ pkg-descr 11 Jul 2003 15:35:21 -0000
@@ -1,23 +1,20 @@
-Libnet A C library for portable packet creation (development version)
-
-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.
-*NOTE*
-Libnet 1.1.x API is not compatible with earlier Libnet 1.0.x.
-This port serves as a development tool to aid in porting applications
-to the new API.
-*NOTE*
+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-devel/pkg-plist,v
retrieving revision 1.2
diff -u -r1.2 pkg-plist
--- pkg-plist 14 Jan 2003 04:48:13 -0000 1.2
+++ pkg-plist 11 Jul 2003 15:46:18 -0000
@@ -1,3 +1,4 @@
+ at comment $FreeBSD$
bin/libnet-config
include/libnet.h
include/libnet/libnet-asn1.h
@@ -5,5 +6,58 @@
include/libnet/libnet-headers.h
include/libnet/libnet-macros.h
include/libnet/libnet-structures.h
-lib/libnet.a
@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%%/dns.c
+%%EXAMPLESDIR%%/dot1x.c
+%%EXAMPLESDIR%%/fddi_tcp1.c
+%%EXAMPLESDIR%%/fddi_tcp2.c
+%%EXAMPLESDIR%%/get_addr.c
+%%EXAMPLESDIR%%/icmp6_echoreq.c
+%%EXAMPLESDIR%%/icmp_echo_cq.c
+%%EXAMPLESDIR%%/icmp_timeexceed.c
+%%EXAMPLESDIR%%/icmp_timestamp.c
+%%EXAMPLESDIR%%/icmp_unreach.c
+%%EXAMPLESDIR%%/ieee.c
+%%EXAMPLESDIR%%/ip.c
+%%EXAMPLESDIR%%/isl.c
+%%EXAMPLESDIR%%/mpls.c
+%%EXAMPLESDIR%%/ntp.c
+%%EXAMPLESDIR%%/ospf_hello.c
+%%EXAMPLESDIR%%/ospf_lsa.c
+%%EXAMPLESDIR%%/ping_of_death.c
+%%EXAMPLESDIR%%/rpc_tcp.c
+%%EXAMPLESDIR%%/rpc_udp.c
+%%EXAMPLESDIR%%/smurf.c
+%%EXAMPLESDIR%%/stp.c
+%%EXAMPLESDIR%%/synflood.c
+%%EXAMPLESDIR%%/synflood6.c
+%%EXAMPLESDIR%%/tcp1.c
+%%EXAMPLESDIR%%/tcp2.c
+%%EXAMPLESDIR%%/tring_tcp1.c
+%%EXAMPLESDIR%%/tring_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:49:50 -0000
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Fri Jul 11 19:49:00 2003
++++ Makefile.in Fri Jul 11 19:49:26 2003
+@@ -97,7 +97,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 7 Jan 2003 20:50:07 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,22 +0,0 @@
---- configure.in.orig Mon Aug 5 17:26:03 2002
-+++ configure.in Tue Jan 7 13:30:32 2003
-@@ -134,8 +134,8 @@
- AC_DEFINE(LIBNET_BSD_BYTE_SWAP)
- AC_DEFINE(HAVE_SOCKADDR_SA_LEN)
- LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN"
-- AC_MSG_RESULT(Note: support/bpf-lkm/etherspoof contains the lkm source required to spoof ethernet frames)
-- ln -sf FreeBSD support/bpf-lkm/etherspoof
-+dnl AC_MSG_RESULT(Note: support/bpf-lkm/etherspoof contains the lkm source required to spoof ethernet frames)
-+dnl ln -sf FreeBSD support/bpf-lkm/etherspoof
- ;;
-
- *netbsd*)
-@@ -219,7 +219,7 @@
- esac
-
- AC_OUTPUT(Makefile man/Makefile src/Makefile include/Makefile \
-- include/libnet/Makefile sample/Makefile version.h include/libnet.h \
-+ include/libnet/Makefile version.h include/libnet.h \
- libnet-config, chmod +x libnet-config)
-
- AC_MSG_RESULT(Please note this is libnet 1.1.x. Any code written for 1.0.x\
Index: files/patch-ab
===================================================================
RCS file: files/patch-ab
diff -N files/patch-ab
--- files/patch-ab 7 Jan 2003 20:50:07 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,10 +0,0 @@
---- Makefile.am.orig Tue Jan 7 13:18:10 2003
-+++ Makefile.am Tue Jan 7 13:18:14 2003
-@@ -8,6 +8,6 @@
-
- include $(top_srcdir)/Makefile.am.common
-
--SUBDIRS = include src man sample
-+SUBDIRS = include src man
-
- EXTRA_DIST = Makefile.am.common
--- libnet-devel-1.1.1.r005.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list