diff options
author | Alin Năstac <mrness@gentoo.org> | 2006-06-26 17:46:24 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2006-06-26 17:46:24 +0000 |
commit | 4fd44568731ed060adde1526135da61fc6823525 (patch) | |
tree | a8c4e9cdbbe33a70b3d7ab50e43d0d934a333fe4 /net-libs/libpcap-ringbuffer | |
parent | New upstream version. Switched from GNU make to pmake (fixes bug #136904). Co... (diff) | |
download | historical-4fd44568731ed060adde1526135da61fc6823525.tar.gz historical-4fd44568731ed060adde1526135da61fc6823525.tar.bz2 historical-4fd44568731ed060adde1526135da61fc6823525.zip |
Fix bug #117898
Package-Manager: portage-2.1-r1
Diffstat (limited to 'net-libs/libpcap-ringbuffer')
4 files changed, 110 insertions, 2 deletions
diff --git a/net-libs/libpcap-ringbuffer/ChangeLog b/net-libs/libpcap-ringbuffer/ChangeLog index 255801d4d045..3485360cc830 100644 --- a/net-libs/libpcap-ringbuffer/ChangeLog +++ b/net-libs/libpcap-ringbuffer/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for net-libs/libpcap-ringbuffer -# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap-ringbuffer/ChangeLog,v 1.6 2005/06/11 13:41:09 dholm Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap-ringbuffer/ChangeLog,v 1.7 2006/06/26 17:46:24 mrness Exp $ + +*libpcap-ringbuffer-0.9.20060417 (26 Jun 2006) + + 26 Jun 2006; Alin Nastac <mrness@gentoo.org> + +files/libpcap-ringbuffer-0.9.20060417-makefile.patch, + -files/libpcap-ringbuffer-1.0.20050129-makefile.patch, + -files/libpcap-ringbuffer-1.0.20050129-mmap-exec.patch, + +libpcap-ringbuffer-0.9.20060417.ebuild, + -libpcap-ringbuffer-1.0.20041001.ebuild, + -libpcap-ringbuffer-1.0.20050129-r2.ebuild: + Fix bug #117898. 11 Jun 2005; David Holm <dholm@gentoo.org> libpcap-ringbuffer-1.0.20050129-r2.ebuild: diff --git a/net-libs/libpcap-ringbuffer/files/digest-libpcap-ringbuffer-0.9.20060417 b/net-libs/libpcap-ringbuffer/files/digest-libpcap-ringbuffer-0.9.20060417 new file mode 100644 index 000000000000..a4987fdb24f3 --- /dev/null +++ b/net-libs/libpcap-ringbuffer/files/digest-libpcap-ringbuffer-0.9.20060417 @@ -0,0 +1,3 @@ +MD5 21a2c20583d69a0153863145a7382aec libpcap-0.9.20060417.tar.gz 645916 +RMD160 d0617c1b41d203640402aa652eec447638439f8b libpcap-0.9.20060417.tar.gz 645916 +SHA256 9dba82dce7f6918864dc44c580a3f1767ee53e06c1514a5f50d877adbf7675db libpcap-0.9.20060417.tar.gz 645916 diff --git a/net-libs/libpcap-ringbuffer/files/libpcap-ringbuffer-0.9.20060417-makefile.patch b/net-libs/libpcap-ringbuffer/files/libpcap-ringbuffer-0.9.20060417-makefile.patch new file mode 100644 index 000000000000..d245af10c9fa --- /dev/null +++ b/net-libs/libpcap-ringbuffer/files/libpcap-ringbuffer-0.9.20060417-makefile.patch @@ -0,0 +1,22 @@ +--- libpcap-ringbuffer-0.9.20060417/work/libpcap-0.9.20060417/Makefile.am 2006-04-18 01:03:18.000000000 +0200 ++++ libpcap-ringbuffer-0.9.20060417-fixed/work/libpcap-0.9.20060417/Makefile.am 2006-05-19 11:54:24.000000000 +0200 +@@ -77,6 +77,8 @@ CSRC = pcap.c inet.c + + PCAPSRC = $(GENSRC) $(PSRC) $(FSRC) $(CSRC) + ++include_HEADERS = pcap-bpf.h pcap.h pcap-namedb.h ++ + lib_LTLIBRARIES = libpcap.la + + libpcap_la_LDFLAGS = -release $(LTRELEASE) +@@ -105,8 +107,8 @@ clean-local: + # rm -f libpcap.a; $(LN_S) .libs/libpcap.a libpcap.a + all-local: libpcap.a + +-libpcap.a: .libs/libpcap.a +- cp .libs/libpcap.a libpcap.a ++libpcap.a: ++# cp .libs/libpcap.a libpcap.a + + install-data-local: + diff --git a/net-libs/libpcap-ringbuffer/libpcap-ringbuffer-0.9.20060417.ebuild b/net-libs/libpcap-ringbuffer/libpcap-ringbuffer-0.9.20060417.ebuild new file mode 100644 index 000000000000..47988fcc7a87 --- /dev/null +++ b/net-libs/libpcap-ringbuffer/libpcap-ringbuffer-0.9.20060417.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap-ringbuffer/libpcap-ringbuffer-0.9.20060417.ebuild,v 1.1 2006/06/26 17:46:24 mrness Exp $ + +inherit eutils toolchain-funcs linux-info multilib libtool autotools + +MY_P=${PN:0:7}-${PV} + +DESCRIPTION="A libpcap version which supports MMAP mode (ringbuffer) on the linux kernel 2.[46].x" +HOMEPAGE="http://public.lanl.gov/cpw/" +SRC_URI="http://public.lanl.gov/cpw/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="ipv6" + +DEPEND="!virtual/libpcap" + +PROVIDE="virtual/libpcap" + +S=${WORKDIR}/${MY_P} + +# Used in linux-info to check minium Kernel support +CONFIG_CHECK="PACKET_MMAP" +PACKET_MMAP_ERROR="Make sure you have PACKET_MMAP compiled in your kernel to make use of libpcap's ringbuffer feature." + +src_unpack() { + unpack ${A} + + cd "${S}" + epatch "${FILESDIR}/${P}-makefile.patch" + eautoreconf +} + +src_compile() { + econf $(use_enable ipv6) --enable-shared --with-pcap=linux || die "configure failed" + emake || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + dodoc CREDITS CHANGES FILES README* VERSION + + dosym libpcap-0.9.3.so /usr/$(get_libdir)/libpcap.so.0.9 + dosym libpcap-0.9.3.so /usr/$(get_libdir)/libpcap.so.0 + + #set PCAP_FRAMES=max + echo "PCAP_FRAMES=32768" > "${T}/99libpcap-ringbuffer" + doenvd "${T}/99libpcap-ringbuffer" +} + +pkg_postinst() { + echo + einfo "Use of the ringbuffer requires that the environment variable PCAP_FRAMES be set." + einfo "This has automaticaly been set to the maximal accepted value" + einfo " PCAP_FRAMES=32768" + echo + einfo "This will tie up at around 51 Mbytes of memory for the ring buffer alone" + einfo "when capturing packets with tools like tcpdump or snort." + einfo "You can change this environment variable by editing" + einfo " /etc/env.d/99libpcap-ringbuffer" + einfo "and then run" + einfo " env-update && source /etc/profile" + echo + einfo "To continue to use libpcap-ringbuffer without the ringbuffer, just set PCAP_FRAMES=0" + einfo "in the env.d file. Alternatively, you could run ethereal like this:" + einfo " PCAP_FRAMES=0 ethereal" + echo + einfo "For further details see:" + einfo " /usr/share/doc/${PF}/README.ring.gz" +} |