net-analyzer/sslsplit: New ebuild
authorPetr Vaněk <arkamar@atlas.cz>
Fri, 17 Nov 2017 11:45:09 +0000 (12:45 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 18 Mar 2018 21:00:46 +0000 (22:00 +0100)
Introduce a new ebuild for sslsplit, the tool for transparent SSL/TLS
interception.

Closes: https://bugs.gentoo.org/637926
Closes: https://github.com/gentoo/gentoo/pull/6210

net-analyzer/sslsplit/Manifest [new file with mode: 0644]
net-analyzer/sslsplit/metadata.xml [new file with mode: 0644]
net-analyzer/sslsplit/sslsplit-0.5.2.ebuild [new file with mode: 0644]
net-analyzer/sslsplit/sslsplit-9999.ebuild [new file with mode: 0644]

diff --git a/net-analyzer/sslsplit/Manifest b/net-analyzer/sslsplit/Manifest
new file mode 100644 (file)
index 0000000..c214847
--- /dev/null
@@ -0,0 +1 @@
+DIST sslsplit-0.5.2.tar.gz 1526606 BLAKE2B 2eb9e1525072626cfdfdfe344a61d92cf340a87dbbabfd06c5a7b46ce6dd0305b27949f91260fe192ecf97484676600e39f79a74995b45fb5b59138726cfbffe SHA512 5f0560dbf89355ad0ef443df2fb0358046efd8c35be6c45f27b04495fd6194c826ef1c7b261683e7f22eb14436293d00395329284d9e709e1188c3c885251935
diff --git a/net-analyzer/sslsplit/metadata.xml b/net-analyzer/sslsplit/metadata.xml
new file mode 100644 (file)
index 0000000..614c7c4
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>arkamar@atlas.cz</email>
+               <name>Petr Vaněk</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription lang="en">
+               SSLsplit is a tool for man-in-the-middle attacks against SSL/TLS
+               encrypted network connections. It is intended to be useful for network
+               forensics, application security analysis and penetration testing.
+       </longdescription>
+       <upstream>
+               <maintainer status="active">
+                       <email>daniel@roe.ch</email>
+                       <name>Daniel Roethlisberger</name>
+               </maintainer>
+               <bugs-to>https://github.com/droe/sslsplit/issues</bugs-to>
+               <remote-id type="github">droe/sslsplit</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/net-analyzer/sslsplit/sslsplit-0.5.2.ebuild b/net-analyzer/sslsplit/sslsplit-0.5.2.ebuild
new file mode 100644 (file)
index 0000000..2684df3
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="Transparent SSL/TLS interception"
+HOMEPAGE="http://www.roe.ch/SSLsplit"
+
+LICENSE="BSD-2"
+SLOT="0"
+IUSE="test"
+
+if [[ ${PV} == *9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/droe/${PN}"
+       EGIT_BRANCH="develop"
+else
+       SRC_URI="https://github.com/droe/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+RDEPEND="
+       elibc_musl? ( sys-libs/fts-standalone )
+       dev-libs/libevent[ssl,threads]
+       dev-libs/openssl:0="
+DEPEND="${RDEPEND}
+       test? ( dev-libs/check )"
+
+src_prepare() {
+       default
+
+       use elibc_musl && append-libs "-lfts"
+
+       sed -i 's/-D_FORTIFY_SOURCE=2 //g' GNUmakefile || die
+       sed -i 's/\<FEATURES\>/SSLSPLIT_FEATURES/g' GNUmakefile version.c || die
+}
+
+src_install() {
+       emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+       dodoc AUTHORS.md NEWS.md README.md
+}
diff --git a/net-analyzer/sslsplit/sslsplit-9999.ebuild b/net-analyzer/sslsplit/sslsplit-9999.ebuild
new file mode 100644 (file)
index 0000000..76b1b4f
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="Transparent SSL/TLS interception"
+HOMEPAGE="http://www.roe.ch/SSLsplit"
+
+LICENSE="BSD-2"
+SLOT="0"
+IUSE="test"
+
+if [[ ${PV} == *9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/droe/${PN}"
+       EGIT_BRANCH="develop"
+else
+       SRC_URI="https://github.com/droe/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+RDEPEND="
+       elibc_musl? ( sys-libs/fts-standalone )
+       dev-libs/libevent[ssl,threads]
+       dev-libs/openssl:0="
+DEPEND="${RDEPEND}
+       test? ( dev-libs/check )"
+
+src_prepare() {
+       default
+
+       use elibc_musl && append-libs "-lfts"
+
+       sed -i 's/-D_FORTIFY_SOURCE=2 //g' GNUmakefile || die
+       sed -i 's/\<FEATURES\>/SSLSPLIT_FEATURES/g' GNUmakefile build.c || die
+}
+
+src_install() {
+       emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+       dodoc AUTHORS.md NEWS.md README.md
+}