From cbd9bf537d30494eedcceac59e5cb5b30db66484 Mon Sep 17 00:00:00 2001 From: Donny Davies Date: Sat, 8 Dec 2001 18:06:03 +0000 Subject: Made the ebuild produce a shared library since its Makefile doesnt seem to do it. Some programs out there are wanting a shared libpcap library to link against.. and it seems they were dying because of this. Remember to update the symlinks when the version number goes up :) --- net-libs/libpcap/files/digest-libpcap-0.6.2-r1 | 1 + net-libs/libpcap/libpcap-0.6.2-r1.ebuild | 41 ++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 net-libs/libpcap/files/digest-libpcap-0.6.2-r1 create mode 100644 net-libs/libpcap/libpcap-0.6.2-r1.ebuild (limited to 'net-libs/libpcap') diff --git a/net-libs/libpcap/files/digest-libpcap-0.6.2-r1 b/net-libs/libpcap/files/digest-libpcap-0.6.2-r1 new file mode 100644 index 000000000000..eb1de2cccf4c --- /dev/null +++ b/net-libs/libpcap/files/digest-libpcap-0.6.2-r1 @@ -0,0 +1 @@ +MD5 a6325b5fe429eba06294ce2db9263a66 libpcap-0.6.2.tar.gz 172032 diff --git a/net-libs/libpcap/libpcap-0.6.2-r1.ebuild b/net-libs/libpcap/libpcap-0.6.2-r1.ebuild new file mode 100644 index 000000000000..65d76ad0168a --- /dev/null +++ b/net-libs/libpcap/libpcap-0.6.2-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger +# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/libpcap-0.6.2-r1.ebuild,v 1.1 2001/12/08 18:06:03 woodchip Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="pcap-Library" +SRC_URI="http://www.tcpdump.org/release/${P}.tar.gz + http://www.jp.tcpdump.org/release/${P}.tar.gz" +HOMEPAGE="http://www.tcpdump.org/" + +DEPEND="virtual/glibc" + +src_compile() { + + local myconf + use ipv6 && myconf="--enable-ipv6" + + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --host=${CHOST} ${myconf} || die "bad configure" + + emake || die "compile problem" + + # no provision for this in the Makefile, so... + gcc -Wl,-soname,libpcap.so.0 -shared -fpic -o libpcap.so.0.6 *.o + assert "couldn't make a shared lib" +} + +src_install() { + + make prefix=${D}/usr mandir=${D}/usr/share/man install + + insopts -m 755 + insinto /usr/lib ; doins libpcap.so.0.6 + dosym /usr/lib/libpcap.so.0.6 /usr/lib/libpcap.so.0 + dosym /usr/lib/libpcap.so.0.6 /usr/lib/libpcap.so + + dodoc CREDITS CHANGES FILES README* VERSION +} -- cgit v1.2.3-65-gdbad