diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-08-21 04:12:03 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-08-21 04:12:03 +0000 |
commit | 1ce536a692c26af71d043a1f56f28d1458e30e52 (patch) | |
tree | 57cde1bc0216530cd28f5f7522e04f6da516cdd0 /net-libs/libnids | |
parent | new version (diff) | |
download | gentoo-2-1ce536a692c26af71d043a1f56f28d1458e30e52.tar.gz gentoo-2-1ce536a692c26af71d043a1f56f28d1458e30e52.tar.bz2 gentoo-2-1ce536a692c26af71d043a1f56f28d1458e30e52.zip |
deprecate libnet-1.0.x
Diffstat (limited to 'net-libs/libnids')
-rw-r--r-- | net-libs/libnids/files/1.16-libnet-1.0.patch | 56 | ||||
-rw-r--r-- | net-libs/libnids/files/digest-libnids-1.16-r1 | 1 | ||||
-rw-r--r-- | net-libs/libnids/libnids-1.16-r1.ebuild | 41 |
3 files changed, 98 insertions, 0 deletions
diff --git a/net-libs/libnids/files/1.16-libnet-1.0.patch b/net-libs/libnids/files/1.16-libnet-1.0.patch new file mode 100644 index 000000000000..82a9a7f1b4b2 --- /dev/null +++ b/net-libs/libnids/files/1.16-libnet-1.0.patch @@ -0,0 +1,56 @@ +--- configure.orig 2003-08-19 13:57:32.933711496 -0400 ++++ configure 2003-08-19 13:57:33.029696904 -0400 +@@ -1498 +1498 @@ +- if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a; then ++ if test -f $withval/include/libnet-1.0.h -a -f $withval/lib/libnet-1.0.a; then +@@ -1501 +1501 @@ +- CFLAGS="$CFLAGS `$withval/libnet-config --defines`" ++ CFLAGS="$CFLAGS `$withval/libnet-1.0-config --defines`" +@@ -1503 +1503 @@ +- LNETLIB="-L$withval/lib -lnet" ++ LNETLIB="-L$withval/lib -lnet-1.0" +@@ -1506 +1506 @@ +- { echo "configure: error: libnet.h or libnet.a not found in $withval" 1>&2; exit 1; } ++ { echo "configure: error: libnet-1.0.h or libnet-1.0.a not found in $withval" 1>&2; exit 1; } +@@ -1511,2 +1511,2 @@ +- if test -f ${prefix}/include/libnet.h; then +- CFLAGS="$CFLAGS `${prefix}/bin/libnet-config --defines`" ++ if test -f ${prefix}/include/libnet-1.0.h; then ++ CFLAGS="$CFLAGS `${prefix}/bin/libnet-1.0-config --defines`" +@@ -1514 +1514 @@ +- LNETLIB="-L${prefix}/lib -lnet" ++ LNETLIB="-L${prefix}/lib -lnet-1.0" +@@ -1516,3 +1516,3 @@ +- elif test -f /usr/include/libnet.h; then +- CFLAGS="$CFLAGS `libnet-config --defines`" +- LNETLIB="-lnet" ++ elif test -f /usr/include/libnet-1.0.h; then ++ CFLAGS="$CFLAGS `libnet-1.0-config --defines`" ++ LNETLIB="-lnet-1.0" +--- samples/Makefile.in.orig 2003-08-19 13:57:32.937710888 -0400 ++++ samples/Makefile.in 2003-08-19 13:57:32.995702072 -0400 +@@ -20 +20 @@ +-LIBS = -L../src -lnids -lpcap -lnet @LIBS@ ++LIBS = -L../src -lnids-1.0 -lpcap -lnet-1.0 @LIBS@ +--- src/Makefile.in.orig 2003-08-19 13:57:32.941710280 -0400 ++++ src/Makefile.in 2003-08-19 13:57:33.000701312 -0400 +@@ -38 +38 @@ +-all: libnids.a ++all: libnids-1.0.a +@@ -40 +40 @@ +-libnids.a: $(OBJS) ++libnids-1.0.a: $(OBJS) +@@ -44 +44 @@ +-install: libnids.a ++install: libnids-1.0.a +@@ -48 +48 @@ +- $(INSTALL) -c -m 644 libnids.a $(install_prefix)$(libdir) ++ $(INSTALL) -c -m 644 libnids-1.0.a $(install_prefix)$(libdir) +@@ -53 +53 @@ +- rm -f *.o *~ libnids.a ++ rm -f *.o *~ libnids-1.0.a +--- src/killtcp.c.orig 2003-08-19 13:57:32.945709672 -0400 ++++ src/killtcp.c 2003-08-19 13:57:33.031696600 -0400 +@@ -6 +6 @@ +-#include <libnet.h> ++#include <libnet-1.0.h> diff --git a/net-libs/libnids/files/digest-libnids-1.16-r1 b/net-libs/libnids/files/digest-libnids-1.16-r1 new file mode 100644 index 000000000000..3c272906668f --- /dev/null +++ b/net-libs/libnids/files/digest-libnids-1.16-r1 @@ -0,0 +1 @@ +MD5 95497093d0de330be12ddc658ad7decc libnids-1.16.tar.gz 72309 diff --git a/net-libs/libnids/libnids-1.16-r1.ebuild b/net-libs/libnids/libnids-1.16-r1.ebuild new file mode 100644 index 000000000000..13ca8a987946 --- /dev/null +++ b/net-libs/libnids/libnids-1.16-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/libnids-1.16-r1.ebuild,v 1.1 2003/08/21 04:12:03 vapier Exp $ + +inherit eutils + +DESCRIPTION="emulates the IP stack of Linux 2.0.x and offers IP defragmentation, TCP stream assembly and TCP port scan detection." +HOMEPAGE="http://www.packetfactory.net/Projects/libnids/" +SRC_URI="http://www.packetfactory.net/Projects/libnids/dist/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="1.0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha" + +DEPEND="net-libs/libpcap + >=net-libs/libnet-1.0.2a-r3 + <net-libs/libnet-1.1" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/libnids_gcc33_fix + epatch ${FILESDIR}/${PV}-libnet-1.0.patch +} + +src_compile() { + econf || die + make || die +} + +src_install() { + einstall || die + mv ${D}/usr/include/nids{,-${SLOT}}.h + dodoc CHANGES COPYING CREDITS MISC README +} + +pkg_postinst(){ + einfo "libnids ${PV} is deprecated !" + einfo "library: libnids-${SLOT}.a" + einfo "include: libnids-${SLOT}.h" +} |