diff options
author | sakamoto <sakamoto@pkgsrc.org> | 1999-11-08 08:25:00 +0000 |
---|---|---|
committer | sakamoto <sakamoto@pkgsrc.org> | 1999-11-08 08:25:00 +0000 |
commit | 9dccb11b0afeff23063483ee11928c06ddc5ffc0 (patch) | |
tree | 23eec02485316e12b5bbb6919db772fcdfb6ad01 /devel/libnet | |
parent | de0fff7cb906cb08a29ed8330bf6a2688c9beba6 (diff) | |
download | pkgsrc-9dccb11b0afeff23063483ee11928c06ddc5ffc0.tar.gz |
Initial import of libnet-1.0.
A C library for portable packet creation and injection
Diffstat (limited to 'devel/libnet')
-rw-r--r-- | devel/libnet/Makefile | 33 | ||||
-rw-r--r-- | devel/libnet/files/md5 | 3 | ||||
-rw-r--r-- | devel/libnet/files/patch-sum | 3 | ||||
-rw-r--r-- | devel/libnet/patches/patch-aa | 50 | ||||
-rw-r--r-- | devel/libnet/pkg/COMMENT | 1 | ||||
-rw-r--r-- | devel/libnet/pkg/DESCR | 10 | ||||
-rw-r--r-- | devel/libnet/pkg/PLIST | 14 |
7 files changed, 114 insertions, 0 deletions
diff --git a/devel/libnet/Makefile b/devel/libnet/Makefile new file mode 100644 index 00000000000..6a47caa5930 --- /dev/null +++ b/devel/libnet/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/11/08 08:25:00 sakamoto Exp $ +# + +DISTNAME= libnet-1.0 +CATEGORIES= devel net +MASTER_SITES= http://www.packetfactory.net/libnet/dist/ +EXTRACT_SUFX= .tgz + +MAINTAINER= sakamoto@netbsd.org +HOMEPAGE= http://www.packetfactory.net/libnet/ + +USE_LIBTOOL= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV+= LIBNET_CONFIG_CFLAGS="-I${PREFIX}/include" \ + LIBNET_CONFIG_LIBS="${LDFLAGS}" + +WRKSRC= ${WRKDIR}/${DISTNAME:C/l/L/} +PLIST_SRC= ${WRKDIR}/PLIST +DOCDIR= share/doc/libnet + +post-install: + @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libnet + @(cd ${WRKSRC}/doc/html; ${GTAR} cf - *.html *.gif */*.c | \ + (cd ${PREFIX}/${DOCDIR};${GTAR} xf -)) + @${LN} -s ${PREFIX}/share/doc/libnet/examples \ + ${PREFIX}/share/examples/libnet + @${CP} ${PKGDIR}/PLIST ${PLIST_SRC} + @(cd ${PREFIX}; \ + find ${DOCDIR} -type f >> ${PLIST_SRC}; \ + find ${DOCDIR} -type d| ${SED} -e 's|^|@dirrm |' | sort -r \ + >> ${PLIST_SRC}) + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/libnet/files/md5 b/devel/libnet/files/md5 new file mode 100644 index 00000000000..693ab630299 --- /dev/null +++ b/devel/libnet/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/11/08 08:25:01 sakamoto Exp $ + +MD5 (libnet-1.0.tgz) = 7dab315bb4117e65a2578c8d7a848de0 diff --git a/devel/libnet/files/patch-sum b/devel/libnet/files/patch-sum new file mode 100644 index 00000000000..c51e5b67e97 --- /dev/null +++ b/devel/libnet/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 1999/11/08 08:25:01 sakamoto Exp $ + +MD5 (patch-aa) = c5b32e159a63cead20947b254dd0b4c9 diff --git a/devel/libnet/patches/patch-aa b/devel/libnet/patches/patch-aa new file mode 100644 index 00000000000..a40ff593bfa --- /dev/null +++ b/devel/libnet/patches/patch-aa @@ -0,0 +1,50 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/11/08 08:25:02 sakamoto Exp $ + +--- ./Makefile.in.orig Thu Oct 28 08:44:26 1999 ++++ ./Makefile.in Mon Nov 8 11:23:32 1999 +@@ -21,5 +21,5 @@ + LIBNET = libnet + LIBPWRITE = libpwrite +-LIB = lib/$(LIBNET).a ++LIB = $(LIBNET).a + MAN = doc/$(LIBNET).3 + INCLUDE = include/$(LIBNET).h +@@ -68,12 +68,13 @@ + + .c.o: +- $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFINES) -c $< -o $@ ++ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFINES) -c $< ++ ln -s $(@:C|src|..|) src + + all: libnet + supp: test example + +-libnet: version.h $(OBJECTS) +- $(AR) -cr $(LIB) $(OBJECTS) +- $(RANLIB) $(LIB) ++libnet: $(LIB) ++$(LIB): version.h $(OBJECTS) ++ $(LIBTOOL) --mode=link $(CC) -o $(LIB:.a=.la) $(OBJECTS:C|src/||:.o=.lo) -rpath $(LIB_PREFIX) -version-info 1:0 + + version.o: version.h +@@ -92,13 +93,6 @@ + + install: libnet +- $(ENSUREDIR) $(DESTDIR)$(prefix) 755 +- $(ENSUREDIR) $(DESTDIR)$(LIB_PREFIX) 755 + $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX)$(LIBNET) 755 +- $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX) 755 +- $(ENSUREDIR) $(DESTDIR)$(MAN_PREFIX) 755 +- $(ENSUREDIR) $(DESTDIR)$(BIN_PREFIX) 755 +- $(INSTALL) -c -m 0644 $(LIB) $(DESTDIR)$(LIB_PREFIX) +- rm -f $(DESTDIR)$(LIB_PREFIX)$(LIBPWRITE) +- $(LN) -f -s $(DESTDIR)$(LIB_PREFIX)$(LIBNET).a $(DESTDIR)$(LIB_PREFIX)$(LIBPWRITE) ++ $(LIBTOOL) --mode=install $(INSTALL) -c -m 0644 $(LIB:.a=.la) $(DESTDIR)$(LIB_PREFIX) + $(INSTALL) -c -m 0644 $(INCLUDE) $(DESTDIR)$(INC_PREFIX) + $(INSTALL) -c -m 0644 $(INCLUDE-H) $(DESTDIR)$(INC_PREFIX)$(LIBNET) +@@ -110,4 +104,5 @@ + $(INSTALL) -c -m 0644 $(MAN) $(DESTDIR)$(MAN_PREFIX) + $(INSTALL) -c -m 0755 $(CONFIG) $(DESTDIR)$(BIN_PREFIX) ++ $(LIBTOOL) --mode=finish $(DESTDIR)$(LIB_PREFIX) + + clean: diff --git a/devel/libnet/pkg/COMMENT b/devel/libnet/pkg/COMMENT new file mode 100644 index 00000000000..534bd2f396a --- /dev/null +++ b/devel/libnet/pkg/COMMENT @@ -0,0 +1 @@ +A C library for portable packet creation and injection diff --git a/devel/libnet/pkg/DESCR b/devel/libnet/pkg/DESCR new file mode 100644 index 00000000000..5321c40fb63 --- /dev/null +++ b/devel/libnet/pkg/DESCR @@ -0,0 +1,10 @@ +Libnet + +A C library for portable packet creation and injection. + +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. diff --git a/devel/libnet/pkg/PLIST b/devel/libnet/pkg/PLIST new file mode 100644 index 00000000000..40f74928a4d --- /dev/null +++ b/devel/libnet/pkg/PLIST @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/11/08 08:25:01 sakamoto Exp $ +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/libnet.so.1.0 +man/man3/libnet.3 +@exec ln -s %D/share/doc/libnet/examples %D/share/examples/libnet +@unexec rm %D/share/examples/libnet |