summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2000-08-11 08:00:10 +0000
committeritojun <itojun@pkgsrc.org>2000-08-11 08:00:10 +0000
commite18cbf9a9eb21881248780a16e1e66f14bd2cea2 (patch)
treeeb39e1c9c32fd0b16c92020bd6cc83128d476059
parent3821b095dd645e66460720a99b05a07c1a6a7307 (diff)
downloadpkgsrc-e18cbf9a9eb21881248780a16e1e66f14bd2cea2.tar.gz
libnet 1.0.1b
-rw-r--r--net/libnet/Makefile39
-rw-r--r--net/libnet/files/md51
-rw-r--r--net/libnet/patches/patch-aa31
-rw-r--r--net/libnet/patches/patch-ab11
-rw-r--r--net/libnet/pkg/COMMENT1
-rw-r--r--net/libnet/pkg/DESCR17
-rw-r--r--net/libnet/pkg/PLIST44
7 files changed, 144 insertions, 0 deletions
diff --git a/net/libnet/Makefile b/net/libnet/Makefile
new file mode 100644
index 00000000000..2dea6ec57eb
--- /dev/null
+++ b/net/libnet/Makefile
@@ -0,0 +1,39 @@
+# 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 $
+#
+
+PORTNAME= libnet
+PORTVERSION= 1.0.1b
+CATEGORIES= net
+MASTER_SITES= http://www.packetfactory.net/libnet/dist/
+
+MAINTAINER= shipley@dis.org
+
+MAN3= libnet.3
+
+GNU_CONFIGURE= yes
+
+WRKSRC= ${WRKDIR}/Libnet-${PORTVERSION}
+MAN3= libnet.3
+
+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
+
+.include <bsd.port.mk>
diff --git a/net/libnet/files/md5 b/net/libnet/files/md5
new file mode 100644
index 00000000000..bfc76cf8354
--- /dev/null
+++ b/net/libnet/files/md5
@@ -0,0 +1 @@
+MD5 (libnet-1.0.1b.tar.gz) = 6eed9efc6c806911721b8830f18b5237
diff --git a/net/libnet/patches/patch-aa b/net/libnet/patches/patch-aa
new file mode 100644
index 00000000000..bbdf71b6d0c
--- /dev/null
+++ b/net/libnet/patches/patch-aa
@@ -0,0 +1,31 @@
+--- 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"
+ MAN_PREFIX="$prefix/man/man3/"
+- LIB_PREFIX="$prefix/lib/aout"
++ LIB_PREFIX="$prefix/lib/"
+ INC_PREFIX="$prefix/include/"
+ BIN_PREFIX="$prefix/bin/"
+ ;;
diff --git a/net/libnet/patches/patch-ab b/net/libnet/patches/patch-ab
new file mode 100644
index 00000000000..6c877fe4269
--- /dev/null
+++ b/net/libnet/patches/patch-ab
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Thu Oct 7 20:17:43 1999
++++ Makefile.in Thu Oct 7 20:17:56 1999
+@@ -104,7 +104,7 @@
+ $(INSTALL) -c -m 0644 $(INCLUDE-M) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+ $(INSTALL) -c -m 0644 $(INCLUDE-A) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+ $(INSTALL) -c -m 0644 $(INCLUDE-O) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+- $(INSTALL) -c -m 0644 $(MAN) $(DESTDIR)$(MAN_PREFIX)
++ $(INSTALL) -c -m 0644 $(MAN) $(DESTDIR)$(MAN_PREFIX)/man3
+ $(INSTALL) -c -m 0755 $(CONFIG) $(DESTDIR)$(BIN_PREFIX)
+
+ clean:
diff --git a/net/libnet/pkg/COMMENT b/net/libnet/pkg/COMMENT
new file mode 100644
index 00000000000..92b86b07372
--- /dev/null
+++ b/net/libnet/pkg/COMMENT
@@ -0,0 +1 @@
+A C library for creating IP packets
diff --git a/net/libnet/pkg/DESCR b/net/libnet/pkg/DESCR
new file mode 100644
index 00000000000..f0db50505d0
--- /dev/null
+++ b/net/libnet/pkg/DESCR
@@ -0,0 +1,17 @@
+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/
diff --git a/net/libnet/pkg/PLIST b/net/libnet/pkg/PLIST
new file mode 100644
index 00000000000..91658979404
--- /dev/null
+++ b/net/libnet/pkg/PLIST
@@ -0,0 +1,44 @@
+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
+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