Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ssldump/ssldump-0.9-r1.ebuild,v 1.7 2011/12/09 16:15:55 jer Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ssldump/ssldump-0.9-r1.ebuild,v 1.7 2011/12/09 16:15:55 jer Exp $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=4 |
6 |
inherit autotools eutils |
6 |
inherit autotools eutils |
7 |
|
7 |
|
8 |
MY_P=${PN}-0.9b3 |
8 |
MY_P=${PN}-0.9b3 |
Lines 13-19
SRC_URI="http://www.rtfm.com/ssldump/${M
Link Here
|
13 |
|
13 |
|
14 |
LICENSE="openssl" |
14 |
LICENSE="openssl" |
15 |
SLOT="0" |
15 |
SLOT="0" |
16 |
KEYWORDS="amd64 ppc sparc x86" |
16 |
KEYWORDS="amd64 ~arm ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
17 |
IUSE="ssl" |
17 |
IUSE="ssl" |
18 |
|
18 |
|
19 |
RDEPEND="net-libs/libpcap |
19 |
RDEPEND="net-libs/libpcap |
Lines 26-32
src_prepare() {
Link Here
|
26 |
epatch "${FILESDIR}"/${P}-libpcap-header.patch \ |
26 |
epatch "${FILESDIR}"/${P}-libpcap-header.patch \ |
27 |
"${FILESDIR}"/${P}-configure-dylib.patch \ |
27 |
"${FILESDIR}"/${P}-configure-dylib.patch \ |
28 |
"${FILESDIR}"/${P}-openssl-0.9.8.compile-fix.patch \ |
28 |
"${FILESDIR}"/${P}-openssl-0.9.8.compile-fix.patch \ |
29 |
"${FILESDIR}"/${P}-DLT_LINUX_SLL.patch |
29 |
"${FILESDIR}"/${P}-DLT_LINUX_SLL.patch \ |
|
|
30 |
"${FILESDIR}"/${P}-makefile-fix.patch |
30 |
|
31 |
|
31 |
sed -i configure.in -e 's|libpcap.a|libpcap.so|g' || die |
32 |
sed -i configure.in -e 's|libpcap.a|libpcap.so|g' || die |
32 |
|
33 |
|
Lines 35-41
src_prepare() {
Link Here
|
35 |
|
36 |
|
36 |
src_configure() { |
37 |
src_configure() { |
37 |
local myconf |
38 |
local myconf |
38 |
use ssl || myconf="--without-openssl" |
39 |
myconf="${myconf} \ |
|
|
40 |
--with-pcap-inc=${EPREFIX}/usr/include \ |
41 |
--with-pcap-lib=${EPREFIX}/usr/$(get_libdir)" |
42 |
|
43 |
if use ssl; then |
44 |
myconf="${myconf} \ |
45 |
--with-openssl-inc=${EPREFIX}/usr/include \ |
46 |
--with-openssl-lib=${EPREFIX}/usr/$(get_libdir)" |
47 |
else |
48 |
myconf="${myconf} --without-openssl" |
49 |
fi |
39 |
|
50 |
|
40 |
econf ${myconf} |
51 |
econf ${myconf} |
41 |
} |
52 |
} |