diff --git a/net-analyzer/pret/Manifest b/net-analyzer/pret/Manifest new file mode 100644 index 000000000..4a56f4416 --- /dev/null +++ b/net-analyzer/pret/Manifest @@ -0,0 +1 @@ +DIST pret-20180611.tar.gz 1568200 BLAKE2B 98b5108c8fcfef73b12c95398fd6be5037a2ac93b684ce45b21822b7b9f7afb6f1f6b74ea75c0d96b97c00a97694471b13a639399272316c11b1885e25f678ea SHA512 a2fdc6f6623dca6df686c7a78ca8a9ec6924c3ccf1c6b3943f8913b7bdfc9db7dbb048572c31552e4e8a120428f2556adc836b3b3fc17d24b700d8a159f8ec72 diff --git a/net-analyzer/pret/pret-20180611.ebuild b/net-analyzer/pret/pret-20180611.ebuild new file mode 100644 index 000000000..93ccac841 --- /dev/null +++ b/net-analyzer/pret/pret-20180611.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) +inherit python-single-r1 + +if [[ ${PV} = *9999* ]]; then + inherit golang-vcs +else + KEYWORDS="~amd64 ~x86" + EGIT_COMMIT="4f3820a83cd0e8bd88fcc1d09641e54720e5bbc9" + SRC_URI="https://github.com/RUB-NDS/PRET/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +fi + +DESCRIPTION="Printer Exploitation Toolkit" +HOMEPAGE="https://github.com/RUB-NDS/PRET" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + app-text/ghostscript-gpl + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/pysnmp[${PYTHON_USEDEP}] + media-gfx/imagemagick +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/PRET-${EGIT_COMMIT}" + +src_prepare() { + cat > ${PN} << EOF +#!/bin/sh +cd /usr/share/pret +exec ./pret.py "\${@}" +EOF + eapply_user +} + +src_install() { + dobin ${PN} + python_fix_shebang "${PN}.py" + insinto "/usr/share/${PN}" + doins -r db fonts lpd mibs overlays testpages *.py + fperms 0755 "/usr/share/${PN}/${PN}.py" +} diff --git a/profiles/pentoo/base/package.accept_keywords/net-analyzer b/profiles/pentoo/base/package.accept_keywords/net-analyzer index 4fdb4e8e2..e35220347 100644 --- a/profiles/pentoo/base/package.accept_keywords/net-analyzer +++ b/profiles/pentoo/base/package.accept_keywords/net-analyzer @@ -146,3 +146,5 @@ net-analyzer/GyoiThon ** net-analyzer/dirble-bin net-analyzer/cameradar + +~net-analyzer/pret