diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/ssldump |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/ssldump')
10 files changed, 221 insertions, 0 deletions
diff --git a/net-analyzer/ssldump/Manifest b/net-analyzer/ssldump/Manifest new file mode 100644 index 000000000000..28da8bf82321 --- /dev/null +++ b/net-analyzer/ssldump/Manifest @@ -0,0 +1,12 @@ +AUX ssldump-0.9-DLT_LINUX_SLL.patch 256 SHA256 8e11944fd4ed5299bc2b557445b68e5746fd3d8f87ed1393ce066af98e206e8b SHA512 4365db431100d7d6520b5563c2f97c0954bc0c66867a5e86b49d66d1cf39fac05bfe87b585e279f51de8358fd8def3ffc3a6d448280a11344522cea21d702130 WHIRLPOOL c74b22bf8c6f51e394413e5d88bdf9eac534b130df7f5391bf55e53f24940dce267c1550db774362f1563db6cc707c4f944ecd745f75a72905cdc439424dd433 +AUX ssldump-0.9-configure-dylib.patch 743 SHA256 d71970cf77577b3d7b2d833d7bdef91c77643191923ecec2454bf1e55dd6cbbf SHA512 7dcaa84416e7c776a0dffaefce7944ef23f9bd4084885ccec1f4b5d885851abdd2dd6829ca69cbaeae3e109175ca19a79cb0e19ba6e370138e9989d892e55aa5 WHIRLPOOL 8b1aadb8a8dd54b02f48b8bad6c63118a653b75308dc4bfd4a93fdb2dbf0bc07ef72f1bd645d402d77625e5454c47ed0173c19b863b3e389bbbb919b3067443e +AUX ssldump-0.9-declaration.patch 361 SHA256 692aa400ef7751aa6d7c6a93e820026554e2453b526ef26de6c0e6cdb6679a3d SHA512 318a28c2a92cd2b2983e056d2116b8b755248f5e3578a062fa687c35ebe20b8f9d152dea29bb273b016991ad50a197356607c9fd2a75e30879fcace4cbe15d7f WHIRLPOOL 5cda2b05cef1e1b29c7c8646c34df333e559afd6c59ec122a91a77bbeb8551570041622abe88e9a4023d471e242362924f6999935699c4d0b7ca1401f11d327b +AUX ssldump-0.9-includes.patch 700 SHA256 95dc1fc23a5db528d1fd8e5f9d24d8a681ea5b7b49416c4ee1c7aaa99cc9ce4e SHA512 ebd0fd742d93f35926b68a45039ef895153e7c3ca6e8d1afc412392cedcdaadfc03bd364b9c55ef1c88812a6d10de5be7a0455cf3a7f3b010b44bfcf096b5625 WHIRLPOOL a59218948a75e9e6f7d8e7afdbc9696ada15c160d4933b985df071f6af9ea5137972b60bb3e17af3b7687c7ec186592f1a3b1f4d4601cb64f3c8ee79ce5e2308 +AUX ssldump-0.9-libpcap-header.patch 178 SHA256 87ba5657b81fa310de3403926ee2f1cd37ee57473fe612d31ab65c9fb9871e13 SHA512 ef50bcb81712ffb41414bf68ca91c7d7d4158d205e9527718d54373c04a4a4fbe1cdc93f4546d993d20a1bece6954b058a2ee4816e2ff3f167867c366cba8863 WHIRLPOOL feb1e2f668baf27ac8100da6e5d94dacc8f22fe66c94b772ccb7630488ce591ff4c2f610d497b799a2add1837a62e491ae61856b4ab26e7f754589cd071c919a +AUX ssldump-0.9-openssl-0.9.8.compile-fix.patch 449 SHA256 315ef6847b31bcd07e271257a89393a0fa8f76f8b0838c4a53d2b32bfecdd20f SHA512 37b6ab0f9ae44751570c8eb1eaf4cb1f04a3b812dc18611c6dbca003ac84dd260582351749011e7a56eac2858f817376fc92cdd5a0aae2a2c11ce98e96b3aeb9 WHIRLPOOL 98887281da15411edf601bba2ea30603752242ba9dcf05cb02b0d9a0ead04258a5430e010875e035f97d8e44471cf829ed413bcbc971cc4a9c5fd513a8cd96b1 +AUX ssldump-0.9-prefix-fix.patch 554 SHA256 42725e0df17d2265b8c874d83d9a85a35e379d3ad04e35660315cfa49255b7de SHA512 55a11a1ec6e76039b474dabb2a9b5e647c66231d0ab12620dc5513335da3057bcedb36df1a5e19480be7f4a7004aaecc4d21abd8420149a79fb48abc981d1ff8 WHIRLPOOL 6f254680bbd0dd340d415034d6bb0421f72e28ee471fdb6eea47634cc3e21042039155e30818d8ebf900a5f5e380aef5ed8b98eb83df707dfb11f21387b1c408 +DIST ssldump-0.9b3.tar.gz 137435 SHA256 6422c16718d27c270bbcfcc1272c4f9bd3c0799c351f1d6dd54fdc162afdab1e SHA512 ea81558a243950ab43354c9f33c0a4feae0ae859bc2bd6e6b58838a01f4a1e7a6447f2a9ab1fa40bbe8dbd6c3630c489c17fc9c066cacfddfb64269b0cd5090a WHIRLPOOL d9b1593a8d160b8c1eb88397fe6cfdbca7df8122ebac408e71e9cb77c60bd44c762f15ebebdfa53023cba73a3758629c5699e474aaf3e599e7341013ceb15d7a +EBUILD ssldump-0.9_beta3.ebuild 1431 SHA256 55baab5cee7c51973a1360f50032658e60a6f92b921daa03e55cf24e55de3b11 SHA512 6e4233e3440b5cbc3ada6c588403c258a5fc24f6f4fb3d13f8a99610caa76033ca9138613cd24d0a11be9e5477eb5d0c7323d8e33f2b5c77f81382692caa8e72 WHIRLPOOL 0c55d59f560e16df2602d8810a05422e3bc8482bdce18468ae95bcc3b5689253962766a68e68dc69f512831b68921d7c2d4e2ca78f0dacbb2b19470ea6a2671c +MISC ChangeLog 3001 SHA256 9eb03fb5af03107aa56d5141bd9556e75118012250a4333a59eef04f929cc53a SHA512 0b3774756f731eb40806760cfbd8a1e9d27a440977daa5c640800ca43c5dd1b572d49c8f2c65684f4f8ff759f6ee6c2ae1eb83fd0c07b88368e2229ddbe43d8b WHIRLPOOL 3310303dd7b1d813c947f3497f0fdd476ec3760d54f0f677d3419ec225f85ec5f33c0caa9f00b1de50860c35478a056f68e9038e6b8ad4b9965915ce4db1ae3d +MISC ChangeLog-2015 4571 SHA256 c439ed14ce2c0d2f604ad3345713a7d949bcbd019f679a87e41d98c015c44a4f SHA512 a4809674f006abc3e42a63adfb4b78c64744220eeff6fce14127a051d560a80bdfad3d74506495408fc8ad4090ba038b4155aab5a4985277d5c7874f86ac2da2 WHIRLPOOL 01bce89688f9858478377b536912fa1a92d42743a170c544c03cbc5cbb7189b4e41b4ba80d8b1973cb5d88bd1e2f4e07197f0e028bc41213e62824e5b06afa8e +MISC metadata.xml 359 SHA256 e6ecb26b0858b880d1ae506b9aba3b87feb5c0ad7643fcd4d8023cf5ffa2de01 SHA512 c80158a4a7334b16b28fe0462cc82e70c03674bde862f6858ab6f67645cb3d856fb41bfe5480690fa25c85b0a5205bc2f6cf2febb45fd355a949da92024fc1ee WHIRLPOOL b4a79a2eb9c568fd39664ee85219d2cbce352b18f625f80badc40fb3cfcd3eb1382e18fcf29dfc2a1f48d2243cd0a95ba0b79cea80a6e00e68bd68d78f1a81bd 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 <r_common.h> ++#include <string.h> /* 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 <r_common.h> ++#include <string.h> /* 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 <r_common.h> ++#include <string.h> /* memcmp() memcpy() memset() */ + #include <r_data.h> + + 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 <pcap.h> + #include <unistd.h> +-#include <net/bpf.h> + #ifndef _WIN32 + #include <sys/param.h> + #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 <openssl/ssl.h> + #include <openssl/hmac.h> + #include <openssl/evp.h> ++#include <openssl/md5.h> + #include <openssl/x509v3.h> + #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..12203e1a761b --- /dev/null +++ b/net-analyzer/ssldump/metadata.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">downloads</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/ssldump/ssldump-0.9_beta3.ebuild b/net-analyzer/ssldump/ssldump-0.9_beta3.ebuild new file mode 100644 index 000000000000..08f96fcfee51 --- /dev/null +++ b/net-analyzer/ssldump/ssldump-0.9_beta3.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +AUTOTOOLS_IN_SOURCE_BUILD=1 +AUTOTOOLS_AUTORECONF=1 +inherit autotools eutils toolchain-funcs + +MY_PV=${PV/_beta/b} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="An SSLv3/TLS network protocol analyzer" +HOMEPAGE="http://ssldump.sourceforge.net/" +SRC_URI=" + http://downloads.sourceforge.net/project/${PN}/${PN}/${MY_PV}/${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} + +PATCHES=( + "${FILESDIR}"/${PN}-0.9-libpcap-header.patch + "${FILESDIR}"/${PN}-0.9-configure-dylib.patch + "${FILESDIR}"/${PN}-0.9-openssl-0.9.8.compile-fix.patch + "${FILESDIR}"/${PN}-0.9-DLT_LINUX_SLL.patch + "${FILESDIR}"/${PN}-0.9-prefix-fix.patch + "${FILESDIR}"/${PN}-0.9-declaration.patch + "${FILESDIR}"/${PN}-0.9-includes.patch +) + +src_prepare() { + default + + eapply_user + + eautoreconf +} + +src_configure() { + tc-export CC + + econf \ + --with-pcap-inc="${EPREFIX}/usr/include" \ + --with-pcap-lib="${EPREFIX}/usr/$(get_libdir)" \ + $(usex ssl --with-openssl-inc="${EPREFIX}/usr/include" '--without-openssl') \ + $(usex ssl --with-openssl-lib="${EPREFIX}/usr/$(get_libdir)" '--without-openssl') +} + +src_install() { + dosbin ssldump + doman ssldump.1 + dodoc ChangeLog CREDITS README +} |