diff options
author | Stefan Jones <cretin@gentoo.org> | 2003-01-03 07:40:35 +0000 |
---|---|---|
committer | Stefan Jones <cretin@gentoo.org> | 2003-01-03 07:40:35 +0000 |
commit | b80ae55ed37090d587e95ca74e1a351836dbd01a (patch) | |
tree | 2fa06bbcb62192836b2af7afacca5a07637016b5 /net-libs/libpcap | |
parent | really remove autoconf dep :) (diff) | |
download | historical-b80ae55ed37090d587e95ca74e1a351836dbd01a.tar.gz historical-b80ae55ed37090d587e95ca74e1a351836dbd01a.tar.bz2 historical-b80ae55ed37090d587e95ca74e1a351836dbd01a.zip |
Prelink -fPIC fix0r
Diffstat (limited to 'net-libs/libpcap')
-rw-r--r-- | net-libs/libpcap/ChangeLog | 9 | ||||
-rw-r--r-- | net-libs/libpcap/files/digest-libpcap-0.7.1-r2 | 2 | ||||
-rw-r--r-- | net-libs/libpcap/libpcap-0.7.1-r2.ebuild | 53 |
3 files changed, 62 insertions, 2 deletions
diff --git a/net-libs/libpcap/ChangeLog b/net-libs/libpcap/ChangeLog index 24b521feda82..f730de6eaf11 100644 --- a/net-libs/libpcap/ChangeLog +++ b/net-libs/libpcap/ChangeLog @@ -1,9 +1,14 @@ # ChangeLog for net-libs/libpcap # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/ChangeLog,v 1.6 2002/12/13 11:00:04 blizzy Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/ChangeLog,v 1.7 2003/01/03 07:40:35 cretin Exp $ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords - + +*libpcap-0.7.1-r2 (3 Jan 2003) + + 3 Jan 2003; Stefan Jones <cretin@gentoo.org> : + Added -fpic to the CFLAGS to aid prelinking. + *libpcap-0.7.1-r1 (31 Aug 2002) 02 Nov 2002; Calum Selkirk <cselkirk@gentoo.org> libpcap-0.7.1-r1.ebuild : diff --git a/net-libs/libpcap/files/digest-libpcap-0.7.1-r2 b/net-libs/libpcap/files/digest-libpcap-0.7.1-r2 new file mode 100644 index 000000000000..5b487a5e5054 --- /dev/null +++ b/net-libs/libpcap/files/digest-libpcap-0.7.1-r2 @@ -0,0 +1,2 @@ +MD5 0597c23e3496a5c108097b2a0f1bd0c7 libpcap-0.7.1.tar.gz 197653 +MD5 048d868aea3fa4704c53a78da0966241 libpcap-0.7.1-prism.diff 631 diff --git a/net-libs/libpcap/libpcap-0.7.1-r2.ebuild b/net-libs/libpcap/libpcap-0.7.1-r2.ebuild new file mode 100644 index 000000000000..17ba4599469f --- /dev/null +++ b/net-libs/libpcap/libpcap-0.7.1-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/libpcap-0.7.1-r2.ebuild,v 1.1 2003/01/03 07:40:35 cretin 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 + http://www.shaftnet.org/%7Epizza/software/libpcap-0.7.1-prism.diff" +HOMEPAGE="http://www.tcpdump.org/" + +DEPEND="virtual/glibc" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~x86 ~ppc ~sparc " + +inherit flag-o-matic + +src_unpack() { + unpack ${P}.tar.gz + cd ${S} + patch -p0 < ${DISTDIR}/libpcap-0.7.1-prism.diff || die + +} + +src_compile() { + + local myconf + use ipv6 && myconf="--enable-ipv6" + + append-flags -fPIC + + econf ${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() { + + einstall || die + + 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 LICENSE +} |