summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/ssldump/ssldump-0.9-r2.ebuild')
-rw-r--r--net-analyzer/ssldump/ssldump-0.9-r2.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/net-analyzer/ssldump/ssldump-0.9-r2.ebuild b/net-analyzer/ssldump/ssldump-0.9-r2.ebuild
new file mode 100644
index 000000000000..7988e9a19d40
--- /dev/null
+++ b/net-analyzer/ssldump/ssldump-0.9-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ssldump/ssldump-0.9-r2.ebuild,v 1.1 2013/01/23 09:31:45 pinkbyte Exp $
+
+EAPI=5
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+AUTOTOOLS_AUTORECONF=1
+inherit autotools-utils eutils
+
+MY_P="${PN}-0.9b3"
+
+DESCRIPTION="A Tool for network monitoring and data acquisition"
+HOMEPAGE="http://www.rtfm.com/ssldump/"
+SRC_URI="http://www.rtfm.com/ssldump/${MY_P}.tar.gz"
+
+LICENSE="openssl"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="ssl"
+
+RDEPEND="net-libs/libpcap
+ ssl? ( >=dev-libs/openssl-1 )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libpcap-header.patch \
+ "${FILESDIR}"/${P}-configure-dylib.patch \
+ "${FILESDIR}"/${P}-openssl-0.9.8.compile-fix.patch \
+ "${FILESDIR}"/${P}-DLT_LINUX_SLL.patch \
+ "${FILESDIR}"/${P}-prefix-fix.patch #414359
+
+ sed -i configure.in -e 's|libpcap.a|libpcap.so|g' || die
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --with-pcap-inc="${EPREFIX}/usr/include"
+ --with-pcap-lib="${EPREFIX}/usr/$(get_libdir)"
+ )
+
+ if use ssl; then
+ myeconfargs+=(
+ --with-openssl-inc="${EPREFIX}/usr/include"
+ --with-openssl-lib="${EPREFIX}/usr/$(get_libdir)"
+ )
+ else
+ myeconfargs+=( "--without-openssl" )
+ fi
+
+ autotools-utils_src_configure
+}
+
+src_install() {
+ dosbin ssldump
+ doman ssldump.1
+ dodoc ChangeLog CREDITS README
+}