mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-02-02 13:32:42 +01:00
commit
1896eba64b
3 changed files with 53 additions and 0 deletions
1
net-analyzer/pret/Manifest
Normal file
1
net-analyzer/pret/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST pret-20180611.tar.gz 1568200 BLAKE2B 98b5108c8fcfef73b12c95398fd6be5037a2ac93b684ce45b21822b7b9f7afb6f1f6b74ea75c0d96b97c00a97694471b13a639399272316c11b1885e25f678ea SHA512 a2fdc6f6623dca6df686c7a78ca8a9ec6924c3ccf1c6b3943f8913b7bdfc9db7dbb048572c31552e4e8a120428f2556adc836b3b3fc17d24b700d8a159f8ec72
|
||||
50
net-analyzer/pret/pret-20180611.ebuild
Normal file
50
net-analyzer/pret/pret-20180611.ebuild
Normal file
|
|
@ -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"
|
||||
}
|
||||
|
|
@ -146,3 +146,5 @@ net-analyzer/GyoiThon **
|
|||
net-analyzer/dirble-bin
|
||||
|
||||
net-analyzer/cameradar
|
||||
|
||||
~net-analyzer/pret
|
||||
|
|
|
|||
Loading…
Reference in a new issue