photon: new tool

This commit is contained in:
Yury Martynov 2019-04-28 22:38:43 +03:00
parent 7c49363d63
commit 376fc7ba98
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
4 changed files with 57 additions and 0 deletions

1
net-misc/photon/Manifest Normal file
View file

@ -0,0 +1 @@
DIST photon-1.3.0.tar.gz 26599 BLAKE2B a082a602b6c88eef2f8f89383aaee0fd54664602f733c8b594d4c1a50835141f34a24128f8a1730569129fa5aa8bcea7f560bdffec3d9c10eec0b912d093faa7 SHA512 03856cdc5aa809e345ab73e45d206aa3a9fa5139b894010ca46c028a6224724a1842b5048cfa55553b738ca58c89ff9ae35187134715bf87cf104c003301a60f

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
</pkgmetadata>

View file

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

View file

@ -0,0 +1,47 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6,7} )
inherit eutils python-r1
DESCRIPTION="Incredibly fast crawler designed for OSINT"
HOMEPAGE="https://github.com/s0md3v/Photon"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/s0md3v/Photon"
else
SRC_URI="https://github.com/s0md3v/Photon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}"/Photon-${PV}
fi
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND="${PYTHON_DEPS}
dev-python/tld[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]"
pkg_setup() {
python_setup
}
src_install() {
insinto "/usr/share/${PN}"
for x in core plugins *.py; do
doins -r "${x}"
done
python_optimize "${D}/usr/share/${PN}"
make_wrapper "${PN}" \
"python3 /usr/share/${PN}/${PN}.py"
}
pkg_postinst() {
elog "\nSee documentation: https://github.com/s0md3v/Photon/wiki#usage/\n"
}