summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2013-01-23 09:31:47 +0000
committerSergey Popov <pinkbyte@gentoo.org>2013-01-23 09:31:47 +0000
commitb9670a1e53150d0913b56ae281cd54a785e0f94e (patch)
tree466b3b5489c7d999421f36ae7be973f4de9cdc1e /net-analyzer
parentdev-util/nvidia-cuda-sdk: Correct installatoion path of cuda in common.mk, #4... (diff)
downloadgentoo-2-b9670a1e53150d0913b56ae281cd54a785e0f94e.tar.gz
gentoo-2-b9670a1e53150d0913b56ae281cd54a785e0f94e.tar.bz2
gentoo-2-b9670a1e53150d0913b56ae281cd54a785e0f94e.zip
Revision bump: EAPI 5, utilize autotools-utils eclass, add support for installation in Prefix, wrt bug #414359, patch by Benda Xu
(Portage version: 2.2.0_alpha159/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/ssldump/ChangeLog11
-rw-r--r--net-analyzer/ssldump/files/ssldump-0.9-prefix-fix.patch21
-rw-r--r--net-analyzer/ssldump/ssldump-0.9-r2.ebuild62
3 files changed, 92 insertions, 2 deletions
diff --git a/net-analyzer/ssldump/ChangeLog b/net-analyzer/ssldump/ChangeLog
index 2825a3ced133..bf2c4fac6ce7 100644
--- a/net-analyzer/ssldump/ChangeLog
+++ b/net-analyzer/ssldump/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-analyzer/ssldump
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ssldump/ChangeLog,v 1.23 2011/12/09 16:15:55 jer Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ssldump/ChangeLog,v 1.24 2013/01/23 09:31:45 pinkbyte Exp $
+
+*ssldump-0.9-r2 (23 Jan 2013)
+
+ 23 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> +ssldump-0.9-r2.ebuild,
+ +files/ssldump-0.9-prefix-fix.patch:
+ Revision bump: EAPI 5, utilize autotools-utils eclass, add support for
+ installation in Prefix, wrt bug #414359, patch by Benda Xu
09 Dec 2011; Jeroen Roovers <jer@gentoo.org> ssldump-0.9-r1.ebuild:
sed must die().
diff --git a/net-analyzer/ssldump/files/ssldump-0.9-prefix-fix.patch b/net-analyzer/ssldump/files/ssldump-0.9-prefix-fix.patch
new file mode 100644
index 000000000000..4d665da7e045
--- /dev/null
+++ b/net-analyzer/ssldump/files/ssldump-0.9-prefix-fix.patch
@@ -0,0 +1,21 @@
+eliminates unused variable ROOT, which disturbs ld from Prefix. Bug #414335
+--- Makefile.in 2001-11-27 07:38:13.000000000 +0900
++++ Makefile.in.new 2012-05-02 16:13:10.000000000 +0900
+@@ -46,13 +46,12 @@ BINDIR=@sbindir@
+ MANDIR=@mandir@
+ RM=rm -f
+
+-ROOT=./
+-ANALYZE_SRCDIR=$(ROOT)base/
++ANALYZE_SRCDIR=base/
+ COMMONDIR=common/
+ COMMON_LIB_SRCDIR=$(COMMONDIR)lib/
+-ANALYZE_NULL_SRCDIR=$(ROOT)null/
+-ANALYZE_SSL_SRCDIR=$(ROOT)ssl/
+-ANALYZE_RECORD_SRCDIR=$(ROOT)@RECORD_MOD@/
++ANALYZE_NULL_SRCDIR=null/
++ANALYZE_SSL_SRCDIR=ssl/
++ANALYZE_RECORD_SRCDIR=@RECORD_MOD@/
+ include rules.mk
+
+ include $(COMMON_LIB_SRCDIR)/targets.mk
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
+}