From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-analyzer/sslsniff/Manifest | 9 ++++ .../sslsniff/files/sslsniff-0.6-asneeded.patch | 10 ++++ .../files/sslsniff-0.8-error-redefinition.patch | 50 ++++++++++++++++++++ ...-compatibility-with-boost-1.47-and-higher.patch | 53 ++++++++++++++++++++++ .../sslsniff/files/sslsniff-0.8-underlinking.patch | 21 +++++++++ net-analyzer/sslsniff/metadata.xml | 15 ++++++ net-analyzer/sslsniff/sslsniff-0.8-r2.ebuild | 49 ++++++++++++++++++++ 7 files changed, 207 insertions(+) create mode 100644 net-analyzer/sslsniff/Manifest create mode 100644 net-analyzer/sslsniff/files/sslsniff-0.6-asneeded.patch create mode 100644 net-analyzer/sslsniff/files/sslsniff-0.8-error-redefinition.patch create mode 100644 net-analyzer/sslsniff/files/sslsniff-0.8-fix-compatibility-with-boost-1.47-and-higher.patch create mode 100644 net-analyzer/sslsniff/files/sslsniff-0.8-underlinking.patch create mode 100644 net-analyzer/sslsniff/metadata.xml create mode 100644 net-analyzer/sslsniff/sslsniff-0.8-r2.ebuild (limited to 'net-analyzer/sslsniff') diff --git a/net-analyzer/sslsniff/Manifest b/net-analyzer/sslsniff/Manifest new file mode 100644 index 000000000000..bc2469bbb717 --- /dev/null +++ b/net-analyzer/sslsniff/Manifest @@ -0,0 +1,9 @@ +AUX sslsniff-0.6-asneeded.patch 1358 SHA256 c6721d7f784c4e8ef1f7bf4ad9566ff168c7497ad6f292c87ad7ee595f3cc968 SHA512 2b692eee8154457b6b7a7c12042e017defb94157341885ceadb3970ba40c5a878bb1d1effc5f5b71e7a3161dfadfda27e9f5d5c47fd642007c11f47b1f243904 WHIRLPOOL 1edcfeb959b8bf027518bc049bf91804e943444d1da71b26898de82bbd506f8e0e87d094201e66e09a63c240e9e6cd651ec6edf68f0ef18bebf2108021c3cb73 +AUX sslsniff-0.8-error-redefinition.patch 1718 SHA256 e83ec6fdd9a3b14e942b8be045e1b6b4315d8f2d61c2586b34853b1832bc4377 SHA512 ff9424f59844dc74ac2044dab3541186608bd4063e4b54a2fbb337cb4cf6beb76aa3e2e39d64a5d7817a4a14d4976f361f6e5472c41c7073dd106cf9cb74f9a0 WHIRLPOOL 444a8b608f5ce1f722b98e1cbb3f8e45f705ac23efd7b96aef0b74ece8588903400fe6d72797abef72ea6eaff96d1df5e4f2d1e48004d6724cd317c271ac5c78 +AUX sslsniff-0.8-fix-compatibility-with-boost-1.47-and-higher.patch 2316 SHA256 dcd85adb3e41ecbd55c33e9b79223a391e2ecdf2841f046e7f482200daa6afa6 SHA512 7606d8c466063c9c903a2eadd0a584c1ae759abb62e5a289c0748d4a18329b90aa9a1d89ebcc5e7b145ee2d98c48f7af8f37641d7a32c67208ccabab9a9da876 WHIRLPOOL 081ef181150d10d0805b4399bd6a2b732f0bc08b470b8694de1203e405e835cc80a97ee57301a8330e297144725b52b45a698846aaed73c563aabf9c76de083e +AUX sslsniff-0.8-underlinking.patch 1631 SHA256 5aabc49acbce711f30724d92b54c2c414f4dd076494b62f2704ecd46fbca1f50 SHA512 8ffbb67f9fbec85179769c0ace64e62f8a3d27e403f33bdd761195339cdcffe37cb473621cb20a739b2b2ce26c6b2335a4d5ea7c6cb697c4328ac7f7047b5e01 WHIRLPOOL 1247654a26429c9aff5704dfdd7a8db565a9bf764a8947baf52d391b1495730876a02938642285f29ec8818f4ca4006a5927010db788d53d92dc682969dc660f +DIST sslsniff-0.8.tar.gz 207858 SHA256 50b4283a3e80fa4b4f3f684c4e76348aba8e257cbaa85e4f4cb7a4062cf091d5 SHA512 4ac1bcff8f396d868b2381bc73bb0307022e9a7d5228c83722abde8d4d01e4c6273042763c1e003c8e60f606d60923a573122d33680f5d892b4ef7b62f02009f WHIRLPOOL d97d6cd55324f84353dad7f7defbb7b1e619acdf8df13b74f752198ad18ebcae1bddd0680f581bc66ebd8c0326cf4f09badc683ca0dc4ada2ed14f8351a10d57 +EBUILD sslsniff-0.8-r2.ebuild 1098 SHA256 ce6f2fdab93180f9f0ab52c2f7455590265f3c91ed3c526fb0a290a364fff858 SHA512 b30839b74cdc741b6363aa5b8e360b9f86ca78466f91d5d0db45c7109a43330333feae7722a2b8e3b4d11ba6162b419752e4f2ef0c902fbcb78aa6c6f543c438 WHIRLPOOL 32be8be3b5fdc77cf0dce55b52548225b2076a05baa6052629a2a6b4d9f581ca09f8ba07d675d2728c0c15a08393a0abd57c35b1a2f040e783b7057cc1437235 +MISC ChangeLog 2771 SHA256 d45f292028496f98d8c891294157b66b18fb80de23e3645afe80a7aa7a432080 SHA512 395513972392d623e1f1805c992effb104ead43472d8a13397159c3e1285fb51c72bb7ad8fa9407b53c1dd6b3b25f370e2ebc3438731568d51c832d1a1b7bf57 WHIRLPOOL ed6163ba919369bbce2f40852e59fd265440eae7c88a18608f504959d7fcdd9ca2ed8847d5761369a4094cdc53daa9dde81ec0e4c32a7f08d72b11132c0d55d0 +MISC ChangeLog-2015 1791 SHA256 3d7eb7a8d67e7808f261171df8fc420b9b4d183480e18ea4f294256f12df8591 SHA512 002f9bc2a5134052261959c43cb62330f7e32eaf11cefe4dbec25075065a848bee06206366c4862aafa6c9c6f80670699ab44c02ed426efc76e5a35e3518e199 WHIRLPOOL 211c243900f938153d4eb938063d166231d8cbaf4bc5bc2a590542cb05a7d1958576a4fdd1505550bcdb19f887071feb705a6d604a73526f18d1411a6d03bf14 +MISC metadata.xml 449 SHA256 a95a4ca1ba4b1adc8e5ac43f316ad242ffbb47c3f3151681475652a3a664817a SHA512 c31421b1e27c6f9ec70a97fbe92030447306e71be3eba6631d93d228f1ca7d37e9cb2e2de0aed775006913fc2b6624f802f010e01f77baa9979e01b4403b9900 WHIRLPOOL 1f1aa23fc7214bb8928de2cc1a4dd0ee67ea83e73394a4c136025a2d230b24317b6932872ab7fb757678f76aa7b493888fbb93eec4275de3fa1621712bd01c65 diff --git a/net-analyzer/sslsniff/files/sslsniff-0.6-asneeded.patch b/net-analyzer/sslsniff/files/sslsniff-0.6-asneeded.patch new file mode 100644 index 000000000000..db629b3c4a25 --- /dev/null +++ b/net-analyzer/sslsniff/files/sslsniff-0.6-asneeded.patch @@ -0,0 +1,10 @@ +--- sslsniff-0.6.orig/Makefile.am 2009-08-04 03:48:58.000000000 +0200 ++++ sslsniff-0.6/Makefile.am 2009-12-06 20:39:02.066902985 +0100 +@@ -4,6 +4,6 @@ + + sslsniff_SOURCES = Bridge.hpp SSLConnectionManager.cpp FingerprintManager.hpp FirefoxAddonUpdater.hpp FirefoxUpdater.hpp HTTPSBridge.hpp Logger.hpp RawBridge.hpp SessionCache.hpp SSLBridge.hpp SSLConnectionManager.hpp sslsniff.hpp UpdateManager.hpp certificate/AuthorityCertificateManager.hpp certificate/Certificate.hpp certificate/CertificateManager.hpp certificate/TargetedCertificateManager.hpp http/HttpBridge.hpp http/HttpConnectionManager.hpp http/HttpHeaders.hpp http/OCSPDenier.hpp util/Destination.hpp util/Util.hpp FirefoxUpdater.cpp Logger.cpp SessionCache.cpp SSLBridge.cpp HTTPSBridge.cpp sslsniff.cpp FingerprintManager.cpp certificate/AuthorityCertificateManager.cpp certificate/TargetedCertificateManager.cpp certificate/CertificateManager.cpp http/HttpBridge.cpp http/HttpConnectionManager.cpp http/HttpHeaders.cpp UpdateManager.cpp http/OCSPDenier.cpp FirefoxAddonUpdater.cpp + +-sslsniff_LDFLAGS = -lssl -lboost_filesystem -lpthread -lboost_thread -llog4cpp ++sslsniff_LDADD = -lssl -lboost_filesystem -lpthread -lboost_thread -llog4cpp + + EXTRA_DIST = certs/wildcard IPSCACLASEA1.crt leafcert.pem updates/Darwin_Universal-gcc3.xml updates/Linux_x86-gcc3.xml updates/WINNT_x86-msvc.xml diff --git a/net-analyzer/sslsniff/files/sslsniff-0.8-error-redefinition.patch b/net-analyzer/sslsniff/files/sslsniff-0.8-error-redefinition.patch new file mode 100644 index 000000000000..f3c2fd08da0f --- /dev/null +++ b/net-analyzer/sslsniff/files/sslsniff-0.8-error-redefinition.patch @@ -0,0 +1,50 @@ +--- SSLConnectionManager.cpp.orig 2014-09-01 23:09:35.916376510 +0200 ++++ SSLConnectionManager.cpp 2014-09-01 23:10:32.492515988 +0200 +@@ -95,13 +95,13 @@ + } catch (SSLConnectionError &error) { + std::stringstream errorStream; + errorStream << "Got exception: " << error.what(); +- std::string error = errorStream.str(); +- Logger::logError(error); ++ std::string errorStr = errorStream.str(); ++ Logger::logError(errorStr); + } catch (FirefoxUpdateException &error) { + std::stringstream errorStream; + errorStream << "Got exception: " << error.what(); +- std::string error = errorStream.str(); +- Logger::logError(error); ++ std::string errorStr = errorStream.str(); ++ Logger::logError(errorStr); + } + } + +@@ -120,13 +120,13 @@ + } catch (SSLConnectionError &error) { + std::stringstream errorStream; + errorStream << "Got exception: " << error.what(); +- std::string error = errorStream.str(); +- Logger::logError(error); ++ std::string errorStr = errorStream.str(); ++ Logger::logError(errorStr); + } catch (FirefoxUpdateException &error) { + std::stringstream errorStream; + errorStream << "Got exception: " << error.what(); +- std::string error = errorStream.str(); +- Logger::logError(error); ++ std::string errorStr = errorStream.str(); ++ Logger::logError(errorStr); + } + } + +@@ -151,9 +151,9 @@ + } catch (SSLConnectionError &error) { + std::stringstream errorStream; + errorStream << "Got exception: " << error.what(); +- std::string error = errorStream.str(); ++ std::string errorStr = errorStream.str(); + +- Logger::logError(error); ++ Logger::logError(errorStr); + } + } + } diff --git a/net-analyzer/sslsniff/files/sslsniff-0.8-fix-compatibility-with-boost-1.47-and-higher.patch b/net-analyzer/sslsniff/files/sslsniff-0.8-fix-compatibility-with-boost-1.47-and-higher.patch new file mode 100644 index 000000000000..eb0a052c7988 --- /dev/null +++ b/net-analyzer/sslsniff/files/sslsniff-0.8-fix-compatibility-with-boost-1.47-and-higher.patch @@ -0,0 +1,53 @@ +Index: sslsniff/SSLConnectionManager.cpp +=================================================================== +--- sslsniff.orig/SSLConnectionManager.cpp 2011-12-31 09:25:04.000000000 +0100 ++++ sslsniff/SSLConnectionManager.cpp 2011-12-31 09:26:14.394534948 +0100 +@@ -44,7 +44,7 @@ + } + + void SSLConnectionManager::acceptIncomingConnection() { +- boost::shared_ptr socket(new ip::tcp::socket(acceptor.io_service())); ++ boost::shared_ptr socket(new ip::tcp::socket(acceptor.get_io_service())); + + acceptor.async_accept(*socket, boost::bind(&SSLConnectionManager::handleClientConnection, + this, socket, placeholders::error)); +@@ -76,7 +76,7 @@ + ip::tcp::endpoint &destination) + + { +- Bridge::ptr bridge = RawBridge::create(clientSocket, destination, acceptor.io_service()); ++ Bridge::ptr bridge = RawBridge::create(clientSocket, destination, acceptor.get_io_service()); + bridge->shuttle(); + } + +@@ -134,7 +134,7 @@ + ip::tcp::endpoint &destination, + bool wildcardOK) + { +- ip::tcp::socket serverSocket(acceptor.io_service()); ++ ip::tcp::socket serverSocket(acceptor.get_io_service()); + boost::system::error_code error; + serverSocket.connect(destination, error); + +Index: sslsniff/http/HttpConnectionManager.cpp +=================================================================== +--- sslsniff.orig/http/HttpConnectionManager.cpp 2011-05-14 11:37:52.000000000 +0200 ++++ sslsniff/http/HttpConnectionManager.cpp 2011-12-31 09:26:28.442534999 +0100 +@@ -53,7 +53,7 @@ + } + + void HttpConnectionManager::acceptIncomingConnection() { +- boost::shared_ptr socket(new ip::tcp::socket(acceptor_.io_service())); ++ boost::shared_ptr socket(new ip::tcp::socket(acceptor_.get_io_service())); + + acceptor_.async_accept(*socket, boost::bind(&HttpConnectionManager::handleClientConnection, + this, socket, placeholders::error)); +@@ -63,7 +63,7 @@ + void HttpConnectionManager::bridgeHttpRequest(boost::shared_ptr socket, + ip::tcp::endpoint destination) + { +- Bridge::ptr bridge = HttpBridge::create(socket, acceptor_.io_service(), ++ Bridge::ptr bridge = HttpBridge::create(socket, acceptor_.get_io_service(), + FingerprintManager::getInstance()); + + bridge->getServerSocket(). diff --git a/net-analyzer/sslsniff/files/sslsniff-0.8-underlinking.patch b/net-analyzer/sslsniff/files/sslsniff-0.8-underlinking.patch new file mode 100644 index 000000000000..049ee5f293a0 --- /dev/null +++ b/net-analyzer/sslsniff/files/sslsniff-0.8-underlinking.patch @@ -0,0 +1,21 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -16,7 +16,7 @@ + AC_CHECK_HEADER([boost/thread.hpp], + [], + AC_MSG_ERROR([libboost-thread1.35-dev library is not installed.])) +-AC_CHECK_HEADER([openssl/ssl.h], ++PKG_CHECK_MODULES(openssl,openssl, + [], + AC_MSG_ERROR([openssl (libssl-dev) library not installed.])) + AC_OUTPUT(Makefile) +--- a/Makefile.am ++++ b/Makefile.am +@@ -4,6 +4,6 @@ + + sslsniff_SOURCES = Bridge.hpp SSLConnectionManager.cpp FingerprintManager.hpp FirefoxAddonUpdater.hpp FirefoxUpdater.hpp HTTPSBridge.hpp Logger.hpp RawBridge.hpp SessionCache.hpp SSLBridge.hpp SSLConnectionManager.hpp sslsniff.hpp UpdateManager.hpp certificate/AuthorityCertificateManager.hpp certificate/Certificate.hpp certificate/CertificateManager.hpp certificate/TargetedCertificateManager.hpp http/HttpBridge.hpp http/HttpConnectionManager.hpp http/HttpHeaders.hpp http/OCSPDenier.hpp util/Destination.cpp util/Destination.hpp util/Util.hpp FirefoxUpdater.cpp Logger.cpp SessionCache.cpp SSLBridge.cpp HTTPSBridge.cpp sslsniff.cpp FingerprintManager.cpp certificate/AuthorityCertificateManager.cpp certificate/TargetedCertificateManager.cpp certificate/CertificateManager.cpp http/HttpBridge.cpp http/HttpConnectionManager.cpp http/HttpHeaders.cpp UpdateManager.cpp http/OCSPDenier.cpp FirefoxAddonUpdater.cpp + +-sslsniff_LDADD = -lssl -lboost_filesystem -lpthread -lboost_thread -llog4cpp ++sslsniff_LDADD = $(openssl_LIBS) -lboost_system -lboost_filesystem -lpthread -lboost_thread -llog4cpp + + EXTRA_DIST = certs/wildcard IPSCACLASEA1.crt leafcert.pem updates/Darwin_Universal-gcc3.xml updates/Linux_x86-gcc3.xml updates/WINNT_x86-msvc.xml diff --git a/net-analyzer/sslsniff/metadata.xml b/net-analyzer/sslsniff/metadata.xml new file mode 100644 index 000000000000..44077c9f826f --- /dev/null +++ b/net-analyzer/sslsniff/metadata.xml @@ -0,0 +1,15 @@ + + + + + robbat2@gentoo.org + + + prometheanfire@gentoo.org + + + zerochaos@gentoo.org + Rick Farina + co-maintainer + + diff --git a/net-analyzer/sslsniff/sslsniff-0.8-r2.ebuild b/net-analyzer/sslsniff/sslsniff-0.8-r2.ebuild new file mode 100644 index 000000000000..c0f2ea35d7d7 --- /dev/null +++ b/net-analyzer/sslsniff/sslsniff-0.8-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils + +DESCRIPTION="MITM all SSL connections on a LAN and dynamically generates certs" +HOMEPAGE="http://thoughtcrime.org/software/sslsniff/" +SRC_URI="http://thoughtcrime.org/software/sslsniff/${P}.tar.gz" + +LICENSE="GPL-3" # plus OpenSSL exception +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-libs/boost:= + dev-libs/log4cpp:= + dev-libs/openssl:0" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS README ) + +# last two patches are taken from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652756 +PATCHES=( + "${FILESDIR}"/${PN}-0.6-asneeded.patch + "${FILESDIR}"/${P}-error-redefinition.patch + "${FILESDIR}"/${P}-fix-compatibility-with-boost-1.47-and-higher.patch + "${FILESDIR}"/${P}-underlinking.patch +) + +src_prepare() { + epatch "${PATCHES[@]}" + epatch_user + + eautoreconf +} + +src_install() { + default + + insinto /usr/share/sslsniff + doins leafcert.pem IPSCACLASEA1.crt + + insinto /usr/share/sslsniff/updates + doins updates/*xml + + insinto /usr/share/sslsniff/certs + doins certs/* +} -- cgit v1.2.3