This commit is contained in:
Anton Bolshakov 2022-01-02 09:11:02 +08:00
parent a5d452b53e
commit 2c7f87e1f3
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
6 changed files with 28 additions and 119 deletions

View file

@ -1,57 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
#openssl system can be used optionally
#something to investigate in https://github.com/nabla-c0d3/sslyze/issues/101
#see tags in "build_tasks.py" file
MY_OPENSSL_MODERN="OpenSSL_1_1_1h"
MY_OPENSSL_LEGACY="OpenSSL_1_0_2e"
MY_ZLIB="zlib-1.2.11"
DESCRIPTION="Experimental OpenSSL wrapper for Python 3.6+ and SSLyze"
HOMEPAGE="https://github.com/nabla-c0d3/nassl"
SRC_URI="https://github.com/nabla-c0d3/nassl/archive/${PV}.tar.gz -> ${P}.tar.gz
https://github.com/openssl/openssl/archive/${MY_OPENSSL_LEGACY}.zip -> openssl-${MY_OPENSSL_LEGACY}.zip
https://github.com/openssl/openssl/archive/${MY_OPENSSL_MODERN}.zip -> openssl-${MY_OPENSSL_MODERN}.zip
https://zlib.net/${MY_ZLIB}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="dev-python/invoke[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
src_prepare() {
rm -r tests
mkdir deps
ln -s "${WORKDIR}/openssl-${MY_OPENSSL_LEGACY}" "${S}/deps"
ln -s "${WORKDIR}/openssl-${MY_OPENSSL_MODERN}" "${S}/deps"
ln -s "${WORKDIR}/${MY_ZLIB}" "${S}/deps"
eapply_user
}
src_compile() {
#https://github.com/nabla-c0d3/nassl/issues/42
python3 /usr/bin/invoke build.zlib --do-not-clean
python3 /usr/bin/invoke build.legacy-openssl --do-not-clean
python3 /usr/bin/invoke build.modern-openssl --do-not-clean
compile_python() {
${EPYTHON} setup.py build_ext
#https://github.com/nabla-c0d3/nassl/issues/63
MAKEOPTS="${MAKEOPTS} -j1"
distutils-r1_python_compile
}
python_foreach_impl compile_python
}

View file

@ -1,59 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
#openssl system can be used optionally
#something to investigate in https://github.com/nabla-c0d3/sslyze/issues/101
#see tags in "build_tasks.py" file
MY_OPENSSL_MODERN="OpenSSL_1_1_1h"
MY_OPENSSL_LEGACY="OpenSSL_1_0_2e"
MY_ZLIB="zlib-1.2.11"
DESCRIPTION="Experimental OpenSSL wrapper for Python 3.7+ and SSLyze"
HOMEPAGE="https://github.com/nabla-c0d3/nassl"
SRC_URI="https://github.com/nabla-c0d3/nassl/archive/${PV}.tar.gz -> ${P}.tar.gz
https://github.com/openssl/openssl/archive/${MY_OPENSSL_LEGACY}.zip -> openssl-${MY_OPENSSL_LEGACY}.zip
https://github.com/openssl/openssl/archive/${MY_OPENSSL_MODERN}.zip -> openssl-${MY_OPENSSL_MODERN}.zip
https://zlib.net/${MY_ZLIB}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="dev-python/invoke[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
src_prepare() {
rm -r tests
mkdir deps
ln -s "${WORKDIR}/openssl-${MY_OPENSSL_LEGACY}" "${S}/deps"
ln -s "${WORKDIR}/openssl-${MY_OPENSSL_MODERN}" "${S}/deps"
ln -s "${WORKDIR}/${MY_ZLIB}" "${S}/deps"
sed -i "s|ctx.run(\"make\")|ctx.run\(\"make -j$(makeopts_jobs)\"\)|g" build_tasks.py
eapply_user
}
src_compile() {
#FIXME: get rid of invoke and compile it using Gentoo env
#https://github.com/nabla-c0d3/nassl/issues/42
python3 /usr/bin/invoke build.zlib --do-not-clean
python3 /usr/bin/invoke build.legacy-openssl --do-not-clean
python3 /usr/bin/invoke build.modern-openssl --do-not-clean
compile_python() {
#https://github.com/nabla-c0d3/nassl/issues/63
#fails to *run* without this workaround
MAKEOPTS="${MAKEOPTS} -j1"
distutils-r1_python_compile build_ext
}
python_foreach_impl compile_python
}

View file

@ -1 +1,2 @@
DIST tls_parser-1.2.2.tar.gz 21234 BLAKE2B f85e4d64c0f712262c8a11ce9724b3393b74b2690b947477077386d8abce1a26af5c39278aac6b27be90b40a5c048eea3522d5819ab7da41a0251a29d47cdb11 SHA512 9bf22dfe27dfb23faae2b1638c82346dc7ac7ebc91e19280ccd72196f791ea4d032f10a0912f4de4793be85d3cc1e411c2a3c37620b67c6a721f251feb417091
DIST tls_parser-2.0.0.tar.gz 20780 BLAKE2B 74aab616cca21bcf80c0eff75535b30ee9be4993a652866c683978e2927dd00e7a718614e35479c3e0b22391f857509904f1bfa1e5806a558d677cf9366228a5 SHA512 788e18cda10336aea1b6c8665bd8e06b98304c3afc0c1fb36dbcf878045281d6c3e4cfaa0eddc0489d4f84afcc41643e86adae82c8f4ddef0f863799aaebc74c

View file

@ -0,0 +1,24 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="Small library to parse TLS records."
HOMEPAGE="https://github.com/nabla-c0d3/tls_parser"
SRC_URI="https://github.com/nabla-c0d3/tls_parser/archive/${PV}.tar.gz -> ${P}.tar.gz"
#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"
RDEPEND=""
DEPEND="${RDEPEND}
test? ( dev-python/pytest )"
distutils_enable_tests pytest

View file

@ -1,2 +1,2 @@
DIST sslyze-5.0.0.tar.gz 4364647 BLAKE2B 2250a701ce3c853a4a591c3fedf535f8cd3877fbfd3398db21643d8247e7500229b424e3f0331655cd9de50769e3c1d4cb74c119257f79e063e92d092029f78d SHA512 8ccc34d39c9a8d96c58933a15ac7e7115099d7bc18365bf3bf2137c29950a11df63b1866146115b98952983f7d9914208b80a229a23030253590bc84e2eb329d
DIST sslyze-5.0.1.tar.gz 4409246 BLAKE2B 2b6a79086e6c33918cf68483dd5b7a4c82d65f07677ec7d228746860f2dc96700b6cacece57eee9cecfeac905ade6f0e240096fcda237f3c8aed70d248ce7edd SHA512 d3cb166739b8ffd890994e8eeb6c11391a0f696843323501c7d3235d0370a298f8cc8b8a55e4332a2642d81b2d9209d7a85f77bd4d1fa2388864fb2980c5828e
DIST sslyze-5.0.2.tar.gz 4409485 BLAKE2B d96392a59d25ee211974adb4d9f20f914257f178e6eba631be067b6f18b2c76df83b4f209339fa66e727dbf291c7c977997945b8d884f04725d756dddbf52d65 SHA512 c3fbd703ea11edee60903cd04ed17a5778f2cae48a18a97e4a34146efc7c1ff09cbaa31e645c41f1bbc9921d6be5a1668f8e201e74aa8abf3f38b90b71ebc734

View file

@ -1,9 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="Fast and full-featured SSL scanner"