From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- net-analyzer/ssldump/Manifest | 1 + .../ssldump/files/ssldump-0.9-DLT_LINUX_SLL.patch | 13 +++++ .../files/ssldump-0.9-configure-dylib.patch | 28 ++++++++++ .../ssldump/files/ssldump-0.9-declaration.patch | 11 ++++ .../ssldump/files/ssldump-0.9-includes.patch | 30 ++++++++++ .../ssldump/files/ssldump-0.9-libpcap-header.patch | 10 ++++ .../ssldump-0.9-openssl-0.9.8.compile-fix.patch | 18 ++++++ .../ssldump/files/ssldump-0.9-prefix-fix.patch | 22 ++++++++ net-analyzer/ssldump/metadata.xml | 5 ++ net-analyzer/ssldump/ssldump-0.9-r2.ebuild | 65 ++++++++++++++++++++++ 10 files changed, 203 insertions(+) create mode 100644 net-analyzer/ssldump/Manifest create mode 100644 net-analyzer/ssldump/files/ssldump-0.9-DLT_LINUX_SLL.patch create mode 100644 net-analyzer/ssldump/files/ssldump-0.9-configure-dylib.patch create mode 100644 net-analyzer/ssldump/files/ssldump-0.9-declaration.patch create mode 100644 net-analyzer/ssldump/files/ssldump-0.9-includes.patch create mode 100644 net-analyzer/ssldump/files/ssldump-0.9-libpcap-header.patch create mode 100644 net-analyzer/ssldump/files/ssldump-0.9-openssl-0.9.8.compile-fix.patch create mode 100644 net-analyzer/ssldump/files/ssldump-0.9-prefix-fix.patch create mode 100644 net-analyzer/ssldump/metadata.xml create mode 100644 net-analyzer/ssldump/ssldump-0.9-r2.ebuild (limited to 'net-analyzer/ssldump') diff --git a/net-analyzer/ssldump/Manifest b/net-analyzer/ssldump/Manifest new file mode 100644 index 000000000000..84478cfaaf65 --- /dev/null +++ b/net-analyzer/ssldump/Manifest @@ -0,0 +1 @@ +DIST ssldump-0.9b3.tar.gz 137435 SHA256 6422c16718d27c270bbcfcc1272c4f9bd3c0799c351f1d6dd54fdc162afdab1e SHA512 ea81558a243950ab43354c9f33c0a4feae0ae859bc2bd6e6b58838a01f4a1e7a6447f2a9ab1fa40bbe8dbd6c3630c489c17fc9c066cacfddfb64269b0cd5090a WHIRLPOOL d9b1593a8d160b8c1eb88397fe6cfdbca7df8122ebac408e71e9cb77c60bd44c762f15ebebdfa53023cba73a3758629c5699e474aaf3e599e7341013ceb15d7a diff --git a/net-analyzer/ssldump/files/ssldump-0.9-DLT_LINUX_SLL.patch b/net-analyzer/ssldump/files/ssldump-0.9-DLT_LINUX_SLL.patch new file mode 100644 index 000000000000..9a58c6369929 --- /dev/null +++ b/net-analyzer/ssldump/files/ssldump-0.9-DLT_LINUX_SLL.patch @@ -0,0 +1,13 @@ +--- a/base/pcap-snoop.c ++++ b/base/pcap-snoop.c +@@ -157,6 +157,10 @@ + return; + + break; ++ case DLT_LINUX_SLL: ++ data+=16; ++ len-=16; ++ break; + } + network_process_packet(n,&hdr->ts,data,len); + } diff --git a/net-analyzer/ssldump/files/ssldump-0.9-configure-dylib.patch b/net-analyzer/ssldump/files/ssldump-0.9-configure-dylib.patch new file mode 100644 index 000000000000..941350e8c789 --- /dev/null +++ b/net-analyzer/ssldump/files/ssldump-0.9-configure-dylib.patch @@ -0,0 +1,28 @@ +--- a/configure.in ++++ b/configure.in +@@ -102,14 +102,13 @@ + AC_MSG_CHECKING(for PCAP library) + ac_found_pcap_lib_dir="no" + for dir in $ac_pcap_lib_dir; do +- if test -f $dir/libpcap.a; then ++ if test -f $dir/libpcap.so -o -f $dir/libpcap.dylib; then + dnl Ok, we think we've found them, but check that they +- dnl actually ontain the right functions ++ dnl actually contain the right functions + save_LIBS=$LIBS +- save_LDFLAGS=$LDFLAGS + LIBS="-lpcap $LIBS" + if test "$dir" != "/usr/lib"; then +- LDFLAGS="-L$dir $LDFLAGS" ++ LIBS="-L$dir $LIBS" + fi + AC_TRY_LINK_FUNC(pcap_open_live,ac_linked_libpcap="true", + ac_linked_libpcap="false"); +@@ -118,7 +117,6 @@ + break + fi + LIBS=$save_LIBS +- LDFLAGS=$save_LDFLAGS + fi + done + diff --git a/net-analyzer/ssldump/files/ssldump-0.9-declaration.patch b/net-analyzer/ssldump/files/ssldump-0.9-declaration.patch new file mode 100644 index 000000000000..836b52c84ab2 --- /dev/null +++ b/net-analyzer/ssldump/files/ssldump-0.9-declaration.patch @@ -0,0 +1,11 @@ +--- a/ssl/ssl_rec.h ++++ b/ssl/ssl_rec.h +@@ -54,6 +54,8 @@ + SSL_CipherSuite *cs,UCHAR *mk,UCHAR *sk,UCHAR *iv)); + int ssl_decode_rec_data PROTO_LIST((ssl_obj *ssl,ssl_rec_decoder *d, + int ct,int version,UCHAR *in,int inl,UCHAR *out,int *outl)); ++int ssl3_check_mac(ssl_rec_decoder *d, int ct, int ver, UCHAR *data, ++ UINT4 datalen, UCHAR *mac); + + #endif + diff --git a/net-analyzer/ssldump/files/ssldump-0.9-includes.patch b/net-analyzer/ssldump/files/ssldump-0.9-includes.patch new file mode 100644 index 000000000000..8ca06dcef449 --- /dev/null +++ b/net-analyzer/ssldump/files/ssldump-0.9-includes.patch @@ -0,0 +1,30 @@ +--- a/common/lib/r_assoc.c ++++ b/common/lib/r_assoc.c +@@ -57,6 +57,7 @@ + static char *RCSSTRING="$Id$"; + + #include ++#include /* memcpy() memcmp() */ + #include "r_assoc.h" + + typedef struct r_assoc_el_ { +--- a/common/lib/r_bitfield.c ++++ b/common/lib/r_bitfield.c +@@ -11,6 +11,7 @@ + static char *RCSSTRING="$Id$"; + + #include ++#include /* memcpy() memset() */ + #include "r_bitfield.h" + + int r_bitfield_create(setp,size) +--- a/common/lib/r_data.c ++++ b/common/lib/r_data.c +@@ -47,6 +47,7 @@ + static char *RCSSTRING="$Id$"; + + #include ++#include /* memcmp() memcpy() memset() */ + #include + + int r_data_create(dp,d,l) diff --git a/net-analyzer/ssldump/files/ssldump-0.9-libpcap-header.patch b/net-analyzer/ssldump/files/ssldump-0.9-libpcap-header.patch new file mode 100644 index 000000000000..a9a724658ccf --- /dev/null +++ b/net-analyzer/ssldump/files/ssldump-0.9-libpcap-header.patch @@ -0,0 +1,10 @@ +--- a/base/pcap-snoop.c ++++ b/base/pcap-snoop.c +@@ -49,7 +49,6 @@ + + #include + #include +-#include + #ifndef _WIN32 + #include + #endif diff --git a/net-analyzer/ssldump/files/ssldump-0.9-openssl-0.9.8.compile-fix.patch b/net-analyzer/ssldump/files/ssldump-0.9-openssl-0.9.8.compile-fix.patch new file mode 100644 index 000000000000..2ce16d54f168 --- /dev/null +++ b/net-analyzer/ssldump/files/ssldump-0.9-openssl-0.9.8.compile-fix.patch @@ -0,0 +1,18 @@ +--- a/ssl/ssldecode.c ++++ b/ssl/ssldecode.c +@@ -51,6 +51,7 @@ + #include + #include + #include ++#include + #include + #endif + #include "ssldecode.h" +@@ -131,6 +132,7 @@ + ssl_decode_ctx *d=0; + int r,_status; + ++ SSL_library_init(); + SSLeay_add_all_algorithms(); + if(!(d=(ssl_decode_ctx *)malloc(sizeof(ssl_decode_ctx)))) + ABORT(R_NO_MEMORY); 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..74d7ddcd6f68 --- /dev/null +++ b/net-analyzer/ssldump/files/ssldump-0.9-prefix-fix.patch @@ -0,0 +1,22 @@ +eliminates unused variable ROOT, which disturbs ld from Prefix. Bug #414335 + +--- a/Makefile.in ++++ b/Makefile.in +@@ -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/metadata.xml b/net-analyzer/ssldump/metadata.xml new file mode 100644 index 000000000000..03aa50bab7e3 --- /dev/null +++ b/net-analyzer/ssldump/metadata.xml @@ -0,0 +1,5 @@ + + + +netmon + 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..fb82381953d3 --- /dev/null +++ b/net-analyzer/ssldump/ssldump-0.9-r2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_IN_SOURCE_BUILD=1 +AUTOTOOLS_AUTORECONF=1 +inherit autotools-utils eutils toolchain-funcs + +MY_P="${PN}-0.9b3" + +DESCRIPTION="An SSLv3/TLS network protocol analyzer" +HOMEPAGE="http://www.rtfm.com/ssldump/" +SRC_URI="${HOMEPAGE}${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 \ + "${FILESDIR}"/${P}-declaration.patch \ + "${FILESDIR}"/${P}-includes.patch + + 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 + + tc-export CC + + autotools-utils_src_configure +} + +src_install() { + dosbin ssldump + doman ssldump.1 + dodoc ChangeLog CREDITS README +} -- cgit v1.2.3-65-gdbad