mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-11 09:43:40 +02:00
Merge pull request #348 from gkroon/cipherscan
Submitting cipherscan ebuilds for #248
This commit is contained in:
commit
d8f6e36618
6 changed files with 104 additions and 1 deletions
1
dev-python/tlslite-ng/Manifest
Normal file
1
dev-python/tlslite-ng/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST tlslite-ng-0.7.5.tar.gz 314745 BLAKE2B 273550f1f4d0ce7f6008554bd14f60a59a6c9327352a62a9a4e84f1b9d7f3d616319b618b517dcb0a0ec0156dcf5b8bb9bb745403b12421e9c8c999a6cb85641 SHA512 fef195e1254b7a2a60be279eac22aea748304cade77b29a8204a109c333eadcd062de693418bf72c90ca50fa981ce78406beb3dd41f216f7d3b5206445c5eb14
|
||||
34
dev-python/tlslite-ng/tlslite-ng-0.7.5.ebuild
Normal file
34
dev-python/tlslite-ng/tlslite-ng-0.7.5.ebuild
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_6 )
|
||||
EGO_PN=github.com/tomato42/${PN}
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/tomato42/tlslite-ng"
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="New home of the TLS implementation in pure python."
|
||||
HOMEPAGE="https://github.com/tomato42/tlslite-ng"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/coverage
|
||||
dev-python/enum34
|
||||
dev-python/hypothesis
|
||||
dev-python/pylint
|
||||
dev-python/unittest2"
|
||||
DEPEND="${RDEPEND}"
|
||||
1
net-analyzer/cipherscan/Manifest
Normal file
1
net-analyzer/cipherscan/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST cipherscan-20180519.tar.gz 13388922 BLAKE2B 7319d05dceba26a72ed8b0a8fdf4f5c89bd4ff86062410e5800a0dd24e5254ef34db7e20f9e994385bf6d20fab67c072e61e9376eb2df9cac2607ca7d5b393f8 SHA512 dc957cd46707b18344d0ef7bf85ee70916f8926f5b32b5dbacbf20205e8249155c03441c3781b02854105bfe0e79bbaf650450873dc30fdc58d7ff019d76b1ad
|
||||
63
net-analyzer/cipherscan/cipherscan-20180519.ebuild
Normal file
63
net-analyzer/cipherscan/cipherscan-20180519.ebuild
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
EGO_PN=github.com/mozilla/${PN}
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/mozilla/cipherscan.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
EGIT_COMMIT="b0548dff8e5f9a098b7e14211f610ff63e3f63f7"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A very simple way to find out which SSL ciphersuites are supported by a target."
|
||||
HOMEPAGE="https://github.com/mozilla/cipherscan"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
# cipherscan depends on dev-python/tlslite-ng, not dev-python/tlslite.
|
||||
RDEPEND="!dev-python/tlslite
|
||||
dev-python/tlslite-ng
|
||||
dev-python/ecdsa"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
|
||||
|
||||
src_prepare() {
|
||||
# Dirty hack to actually add a shebang to the file, so that we can then fix
|
||||
# it using python_fix_shebang. Without a shebang, python_fix_shebang won't
|
||||
# even work.
|
||||
sed -i '1i#!/usr/bin/env python' cscan.py
|
||||
python_fix_shebang cscan.py
|
||||
|
||||
# We don't want cipherscan pulling in the latest and greatest
|
||||
# dev-python/tlslite and dev-python/ecdsa using GitHub. We fixed its
|
||||
# dependencies using RDEPENDs.
|
||||
sed -e 's|\$DIRNAMEPATH/cscan.sh|$DIRNAMEPATH/cscan.py|' -i ${PN} || die "sed for ${PN} failed"
|
||||
default
|
||||
}
|
||||
|
||||
src_install(){
|
||||
dodir /usr/share/${PN}
|
||||
insinto /usr/share/${PN}
|
||||
doins -r *
|
||||
|
||||
fperms +x /usr/share/${PN}/${PN}
|
||||
fperms +x /usr/share/${PN}/cscan.py
|
||||
|
||||
# cipherscan needs to be run from its installation directory.
|
||||
insinto /usr/bin
|
||||
doins "${FILESDIR}/${PN}"
|
||||
fperms +x /usr/bin/${PN}
|
||||
}
|
||||
3
net-analyzer/cipherscan/files/cipherscan
Normal file
3
net-analyzer/cipherscan/files/cipherscan
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
cd /usr/share/cipherscan
|
||||
exec ./cipherscan $@
|
||||
|
|
@ -112,4 +112,5 @@ net-analyzer/zmap
|
|||
net-analyzer/sublist3r
|
||||
net-analyzer/amass
|
||||
|
||||
~net-analyzer/gobuster-2.0.1
|
||||
~net-analyzer/cipherscan-20180519
|
||||
~net-analyzer/gobuster-2.0.1
|
||||
Loading…
Reference in a new issue