routersploit: 3.1.0 bump

This commit is contained in:
blshkv 2018-06-15 07:53:17 +08:00
parent dde78977f5
commit 27b814973e
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
4 changed files with 67 additions and 65 deletions

View file

@ -1 +1,2 @@
DIST routersploit-3.0.0.tar.gz 418706 BLAKE2B d297929d0122656921a2fec0e2edde6c040ca1bf60ea5d5b477a08d8611e5142af38c40f9f16da7ac7f77ee7f2019e4027543d63cb5cef54015802489afbc9ec SHA512 0367a11c086e98db08691f25f6a45cf3e210948d9f06e91602230d87f091a28387b51cbc8bc6e9d7d0a2da0f5ab4cd404a683dee290956e8754a988e0912fa27
DIST routersploit-3.1.0.tar.gz 432902 BLAKE2B 0998d51297b5150a299c22cb48471b7ba66f39440b69727cf45f71538884953d4310bd603f9ac23d2732d4c1855dd7ec12a0bd79b0156bf08b6ed1b67ab71207 SHA512 1fd80e811b6f36d751b9a89a2d4d6721cdbf9c9906b806f035a95d2455065639e780f27cbe5d95b101b6fec03882d3518ba25fcb5e2d0419b9d42a8a6809b59f

View file

@ -1,64 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_6 )
inherit python-single-r1
# distutils-r1
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/threat9/routersploit.git"
KEYWORDS=""
else
SRC_URI="https://github.com/threat9/routersploit/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
DESCRIPTION="An open-source exploitation framework dedicated to embedded devices"
HOMEPAGE="https://github.com/threat9/routersploit/wiki"
LICENSE="BSD"
SLOT="0"
IUSE="doc desktopicons bluetooth"
DEPEND=">=dev-python/future-0.16.0[${PYTHON_USEDEP}]
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
>=dev-python/paramiko-1.16.0[${PYTHON_USEDEP}]
>=dev-python/pysnmp-4.3.2[${PYTHON_USEDEP}]
>=dev-python/pycryptodome-2.6.1[${PYTHON_USEDEP}]
bluetooth? ( dev-python/bluepy )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}"
src_prepare() {
#do not compile
rm -f Makefile
eapply_user
}
src_install() {
dodir /opt/${PN}
insinto /opt/${PN}
doins -r routersploit/ rsf.py
fperms +x /opt/${PN}/rsf.py
dosym "${EPREFIX}"/opt/${PN}/rsf.py /usr/bin/rsf
if use doc; then
einstalldocs /usr/share/doc/${PN}/
dodoc -r /{README.md,LICENSE}
fi
#FIXME: convert to desktop.eclass
if use desktopicons; then
dodir /usr/share/icons/${PN}/
cp ${FILES}/{routersploit.png,routersploit.svg} /usr/share/icons/${PN}/
dodir /usr/share/applications/${PN}/
cp ${FILES}*.desktop /usr/share/applications/${PN}/
fixperms +r +x /usr/share/applications/${PN}/*.desktop
fi
}

View file

@ -0,0 +1 @@
routersploit-9999.ebuild

View file

@ -0,0 +1 @@
routersploit-9999.ebuild

View file

@ -1 +0,0 @@
routersploit-3.0.0.ebuild

View file

@ -0,0 +1,64 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_6 )
inherit python-single-r1
# distutils-r1
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/threat9/routersploit.git"
KEYWORDS=""
else
SRC_URI="https://github.com/threat9/routersploit/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
DESCRIPTION="An open-source exploitation framework dedicated to embedded devices"
HOMEPAGE="https://github.com/threat9/routersploit/wiki"
LICENSE="BSD"
SLOT="0"
IUSE="doc desktopicons bluetooth"
DEPEND=">=dev-python/future-0.16.0[${PYTHON_USEDEP}]
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
>=dev-python/paramiko-1.16.0[${PYTHON_USEDEP}]
>=dev-python/pysnmp-4.3.2[${PYTHON_USEDEP}]
>=dev-python/pycryptodome-2.6.1[${PYTHON_USEDEP}]
bluetooth? ( dev-python/bluepy )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}"
src_prepare() {
#do not compile
rm -f Makefile
eapply_user
}
src_install() {
dodir /opt/${PN}
insinto /opt/${PN}
doins -r routersploit/ rsf.py
fperms +x /opt/${PN}/rsf.py
dosym "${EPREFIX}"/opt/${PN}/rsf.py /usr/bin/rsf
if use doc; then
einstalldocs /usr/share/doc/${PN}/
dodoc -r /{README.md,LICENSE}
fi
#FIXME: convert to desktop.eclass
if use desktopicons; then
dodir /usr/share/icons/${PN}/
cp ${FILES}/{routersploit.png,routersploit.svg} /usr/share/icons/${PN}/
dodir /usr/share/applications/${PN}/
cp ${FILES}*.desktop /usr/share/applications/${PN}/
fixperms +r +x /usr/share/applications/${PN}/*.desktop
fi
}