summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2000-11-30 09:03:12 +0000
committerhubertf <hubertf@pkgsrc.org>2000-11-30 09:03:12 +0000
commite4cb8ab777d9003767843aad5a32c640309d08dd (patch)
treeb272ab78a5ecfcc2f43485f938914f45986454c5
parent1e2d9fc5bca3ba58b29bad542e5650a51dd0148a (diff)
downloadpkgsrc-e4cb8ab777d9003767843aad5a32c640309d08dd.tar.gz
Routines for construction and handling of network packets
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 shaping, handling and injection. Libnet features portable packet creation interfaces at the IP layer and link layer, as well as a host of supplementary and complementary functionality. 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) Needed for isic (to be imported in a second)
-rw-r--r--net/libnet/Makefile42
-rw-r--r--net/libnet/files/md54
-rw-r--r--net/libnet/patches/patch-aa40
-rw-r--r--net/libnet/pkg/COMMENT2
-rw-r--r--net/libnet/pkg/DESCR22
-rw-r--r--net/libnet/pkg/PLIST46
6 files changed, 40 insertions, 116 deletions
diff --git a/net/libnet/Makefile b/net/libnet/Makefile
index 2dea6ec57eb..1c560a7536a 100644
--- a/net/libnet/Makefile
+++ b/net/libnet/Makefile
@@ -1,39 +1,19 @@
-# Ports collection makefile for: libnet
-# Date created: Sun Feb 3, 1999
-# Whom: shipley@dis.org
-#
-# $FreeBSD: ports/net/libnet/Makefile,v 1.8 2000/06/02 22:51:19 kris Exp $
+# $NetBSD: Makefile,v 1.1.1.2 2000/11/30 09:03:12 hubertf Exp $
#
-PORTNAME= libnet
-PORTVERSION= 1.0.1b
+DISTNAME= libnet
+PKGNAME= libnet-1.0.1b
CATEGORIES= net
MASTER_SITES= http://www.packetfactory.net/libnet/dist/
-MAINTAINER= shipley@dis.org
-
-MAN3= libnet.3
-
-GNU_CONFIGURE= yes
+MAINTAINER= hubertf@netbsd.org
+HOMEPAGE= http://www.packetfactory.net/libnet/
-WRKSRC= ${WRKDIR}/Libnet-${PORTVERSION}
-MAN3= libnet.3
+DIST_SUBDIR= ${PKGNAME}
-post-install:
- ${INSTALL_MAN} ${WRKSRC}/doc/libnet.3 ${PREFIX}/man/man3
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/libnet
- @${MKDIR} ${PREFIX}/share/doc/libnet/html
- @${MKDIR} ${PREFIX}/share/doc/libnet/html/examples
-.for i in CHANGELOG CHANGELOG-NEWFUNCTIONS COPYING README README.asn.1 README.bpf README.legacy-applications README.libnet-config README.linux README.rawsockets TODO-1.0 TODO-1.1
- ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/libnet
-.endfor
-.for i in 1.html 2.html 3.html 4.html 5.html 6.html 7.html contrib.html fig-3a.gif figure-1.gif figure-2.gif figure-3.gif figure-3a.gif lrm.html
- ${INSTALL_DATA} ${WRKSRC}/doc/html/${i} ${PREFIX}/share/doc/libnet/html
-.endfor
-.for i in libnet-example-1.c libnet-example-2.c libnet-example-3.c libnet-example-4.c
- ${INSTALL_DATA} ${WRKSRC}/doc/html/examples/${i} ${PREFIX}/share/doc/libnet/html/examples
-.endfor
-.endif
+WRKSRC= ${WRKDIR}/Libnet-1.0.1b
+GNU_CONFIGURE= YES
+CONFIGURE_ENV+= LIBNET_CONFIG_LIBS="-L${PREFIX}/lib" \
+ LIBNET_CONFIG_CFLAGS="-I${PREFIX}/include"
-.include <bsd.port.mk>
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/libnet/files/md5 b/net/libnet/files/md5
index bfc76cf8354..250a991d9a2 100644
--- a/net/libnet/files/md5
+++ b/net/libnet/files/md5
@@ -1 +1,3 @@
-MD5 (libnet-1.0.1b.tar.gz) = 6eed9efc6c806911721b8830f18b5237
+$NetBSD: md5,v 1.1.1.2 2000/11/30 09:03:12 hubertf Exp $
+
+MD5 (libnet-1.0.1b/libnet.tar.gz) = 6eed9efc6c806911721b8830f18b5237
diff --git a/net/libnet/patches/patch-aa b/net/libnet/patches/patch-aa
index bbdf71b6d0c..8ec651abdd7 100644
--- a/net/libnet/patches/patch-aa
+++ b/net/libnet/patches/patch-aa
@@ -1,31 +1,13 @@
---- configure.orig Wed Oct 27 11:47:27 1999
-+++ configure Sat Apr 22 04:01:09 2000
-@@ -903,7 +903,7 @@
-
- if test $ac_cv_prog_gcc = yes; then
- CCOPTS='-O3 -funroll-loops -fomit-frame-pointer -Wall'
-- CFLAGS="$CCOPTS"
-+ CFLAGS?="$CCOPTS"
- fi
-
- # Check whether --with-pf_packet or --without-pf_packet was given.
-@@ -1497,8 +1497,8 @@
-
- LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP \
- -DHAVE_SOCKADDR_SA_LEN"
-- MAN_PREFIX="$prefix/man/man3/"
-- LIB_PREFIX="$prefix/lib/aout"
-+ MAN_PREFIX="$prefix/man/"
-+ LIB_PREFIX="$prefix/lib/"
- INC_PREFIX="$prefix/include/"
- BIN_PREFIX="$prefix/bin/"
- echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm source \
-@@ -1517,7 +1517,7 @@
-
- LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
+$NetBSD: patch-aa,v 1.1.1.2 2000/11/30 09:03:12 hubertf Exp $
+
+--- configure.orig Thu Nov 30 09:30:48 2000
++++ configure
+@@ -1739,7 +1743,7 @@
+ esac
+
+ ADDITIONAL_LIBS='-lsocket -lnsl'
+- LIBNET_CONFIG_LIBS="-lsocket -lnsl"
++ LIBNET_CONFIG_LIBS="$LIBNET_CONFIG_LIBS -lsocket -lnsl"
MAN_PREFIX="$prefix/man/man3/"
-- LIB_PREFIX="$prefix/lib/aout"
-+ LIB_PREFIX="$prefix/lib/"
+ LIB_PREFIX="$prefix/lib/"
INC_PREFIX="$prefix/include/"
- BIN_PREFIX="$prefix/bin/"
- ;;
diff --git a/net/libnet/pkg/COMMENT b/net/libnet/pkg/COMMENT
index 92b86b07372..42522a87aaa 100644
--- a/net/libnet/pkg/COMMENT
+++ b/net/libnet/pkg/COMMENT
@@ -1 +1 @@
-A C library for creating IP packets
+Routines for construction and handling of network packets
diff --git a/net/libnet/pkg/DESCR b/net/libnet/pkg/DESCR
index f0db50505d0..369b60b179d 100644
--- a/net/libnet/pkg/DESCR
+++ b/net/libnet/pkg/DESCR
@@ -1,17 +1,9 @@
-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 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.infonexus.com/~daemon9/Projects/Libnet/
+for low-level network packet shaping, handling and injection. Libnet
+features portable packet creation interfaces at the IP layer and
+link layer, as well as a host of supplementary and complementary
+functionality. 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)
diff --git a/net/libnet/pkg/PLIST b/net/libnet/pkg/PLIST
index 91658979404..f81594d8657 100644
--- a/net/libnet/pkg/PLIST
+++ b/net/libnet/pkg/PLIST
@@ -1,44 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.2 2000/11/30 09:03:12 hubertf Exp $
bin/libnet-config
+lib/libnet.a
+lib/libpwrite
include/libnet.h
-include/libnet/libnet-asn1.h
-include/libnet/libnet-functions.h
include/libnet/libnet-headers.h
+include/libnet/libnet-functions.h
+include/libnet/libnet-structures.h
include/libnet/libnet-macros.h
+include/libnet/libnet-asn1.h
include/libnet/libnet-ospf.h
-include/libnet/libnet-structures.h
-lib/libnet.a
-lib/libpwrite
-share/doc/libnet/CHANGELOG
-share/doc/libnet/CHANGELOG-NEWFUNCTIONS
-share/doc/libnet/COPYING
-share/doc/libnet/README
-share/doc/libnet/README.asn.1
-share/doc/libnet/README.bpf
-share/doc/libnet/README.legacy-applications
-share/doc/libnet/README.libnet-config
-share/doc/libnet/README.linux
-share/doc/libnet/README.rawsockets
-share/doc/libnet/TODO-1.0
-share/doc/libnet/TODO-1.1
-share/doc/libnet/html/1.html
-share/doc/libnet/html/2.html
-share/doc/libnet/html/3.html
-share/doc/libnet/html/4.html
-share/doc/libnet/html/5.html
-share/doc/libnet/html/6.html
-share/doc/libnet/html/7.html
-share/doc/libnet/html/contrib.html
-share/doc/libnet/html/examples/libnet-example-1.c
-share/doc/libnet/html/examples/libnet-example-2.c
-share/doc/libnet/html/examples/libnet-example-3.c
-share/doc/libnet/html/examples/libnet-example-4.c
-share/doc/libnet/html/fig-3a.gif
-share/doc/libnet/html/figure-1.gif
-share/doc/libnet/html/figure-2.gif
-share/doc/libnet/html/figure-3.gif
-share/doc/libnet/html/figure-3a.gif
-share/doc/libnet/html/lrm.html
-@dirrm share/doc/libnet/html/examples
-@dirrm share/doc/libnet/html
-@dirrm share/doc/libnet
-@dirrm include/libnet
+man/man3/libnet.3