From 75d68548af7cdb7874834659446ad8ccc9545653 Mon Sep 17 00:00:00 2001 From: blshkv Date: Sat, 21 Mar 2020 18:22:17 +0800 Subject: [PATCH] proton: new tool, WIP, https://github.com/entynetproject/proton/issues/4 --- app-exploits/proton/Manifest | 1 + app-exploits/proton/proton-20200311.ebuild | 54 +++++++++++++++++++ dev-python/playsound/Manifest | 1 + dev-python/playsound/playsound-1.2.2.ebuild | 24 +++++++++ .../base/package.accept_keywords/app-exploits | 1 + .../base/package.accept_keywords/dev-python | 3 ++ 6 files changed, 84 insertions(+) create mode 100644 app-exploits/proton/Manifest create mode 100644 app-exploits/proton/proton-20200311.ebuild create mode 100644 dev-python/playsound/Manifest create mode 100644 dev-python/playsound/playsound-1.2.2.ebuild diff --git a/app-exploits/proton/Manifest b/app-exploits/proton/Manifest new file mode 100644 index 000000000..faadf86a8 --- /dev/null +++ b/app-exploits/proton/Manifest @@ -0,0 +1 @@ +DIST proton-20200311.tar.gz 2602367 BLAKE2B fde5abd1fdfd31541dc407015668072b4b0aa3627c1c13cbb3070464861523578800b4b66d17274d5f3ad93d96297a7decbb2e0807e3d3e15cb5a2ef85013319 SHA512 eefc1150a124a15111790ab0ee3a560114dab9d93c5ebf2b5b48deb3276151d8f61b1f0411f624e8f75075022e4c45d87690ef302439897f47c4c2bdbb08af6f diff --git a/app-exploits/proton/proton-20200311.ebuild b/app-exploits/proton/proton-20200311.ebuild new file mode 100644 index 000000000..aecc0c2d0 --- /dev/null +++ b/app-exploits/proton/proton-20200311.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +#inherit python-single-r1 +inherit eutils python-single-r1 + +DESCRIPTION="" +HOMEPAGE="https://github.com/entynetproject/proton" +HASH_COMMIT="e253fbcf9f082fb0ad791121ba5aa763c94c2c55" +SRC_URI="https://github.com/entynetproject/proton/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="" +SLOT="0" +#https://github.com/entynetproject/proton/issues/4 +#KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + dev-python/impacket[${PYTHON_MULTI_USEDEP}] + dev-python/pycryptodome[${PYTHON_MULTI_USEDEP}] + dev-python/pyasn1[${PYTHON_MULTI_USEDEP}] + dev-python/tabulate[${PYTHON_MULTI_USEDEP}] + dev-python/rjsmin[${PYTHON_MULTI_USEDEP}] + dev-python/playsound[${PYTHON_MULTI_USEDEP}] + ')" + +S="${WORKDIR}/${PN}-${HASH_COMMIT}" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + python_fix_shebang "${S}" + default +} + +src_install() { + insinto "/usr/share/${PN}" + doins -r . + + python_optimize "${D}/usr/share/${PN}" + + make_wrapper $PN \ + "${PYTHON} /usr/share/${PN}/${PN}" + + dodoc README.md +} diff --git a/dev-python/playsound/Manifest b/dev-python/playsound/Manifest new file mode 100644 index 000000000..9c9cc6401 --- /dev/null +++ b/dev-python/playsound/Manifest @@ -0,0 +1 @@ +DIST playsound-1.2.2.tar.gz 4824 BLAKE2B bab05481b349002e2dadbcfa6a8fa1053603c69881578490c4a01aac62e377c339452b2cded97e3d9e4bd33f7f6aac45bd797506a227c46ccd81d11404f5c338 SHA512 decd84ac3e7105adaecdd817cd2ff65eea5e507934278b058e5d183b384b9dd9dbd73236313e2eaed2b38f39ebbeb73f18bdefddde92b5963266e7773cbecc77 diff --git a/dev-python/playsound/playsound-1.2.2.ebuild b/dev-python/playsound/playsound-1.2.2.ebuild new file mode 100644 index 000000000..2daf1fe58 --- /dev/null +++ b/dev-python/playsound/playsound-1.2.2.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Single function module with no dependencies for playing sounds" +HOMEPAGE="https://github.com/TaylorSMarks/playsound/" +HASH_COMMIT="907f1fe73375a2156f7e0900c4b42c0a60fa1d00" +SRC_URI="https://github.com/TaylorSMarks/playsound/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +S="${WORKDIR}/${PN}-${HASH_COMMIT}" diff --git a/profiles/pentoo/base/package.accept_keywords/app-exploits b/profiles/pentoo/base/package.accept_keywords/app-exploits index b70625111..9fb9663ba 100644 --- a/profiles/pentoo/base/package.accept_keywords/app-exploits +++ b/profiles/pentoo/base/package.accept_keywords/app-exploits @@ -5,6 +5,7 @@ app-exploits/empire app-exploits/enumdb =app-exploits/exploitdb-9999 ** app-exploits/osslsigncode +app-exploits/proton app-exploits/pwntools app-exploits/ROPgadget app-exploits/ropper diff --git a/profiles/pentoo/base/package.accept_keywords/dev-python b/profiles/pentoo/base/package.accept_keywords/dev-python index d31748df9..81c148ccd 100644 --- a/profiles/pentoo/base/package.accept_keywords/dev-python +++ b/profiles/pentoo/base/package.accept_keywords/dev-python @@ -521,3 +521,6 @@ dev-python/IP2Location # required by net-analyzer/gitgraber ~dev-python/python-crontab-20191023 + +# required by proton +dev-python/playsound