Skip to content

Commit

Permalink
spiderfoot: remove keywords, waiting for the upstream to fix bugs, see
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Bolshakov committed Sep 5, 2021
1 parent a564d91 commit 692049c
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 2 deletions.
1 change: 1 addition & 0 deletions app-forensics/spiderfoot/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST spiderfoot-3.0.tar.gz 3478605 BLAKE2B dbf6e058f01e768dfef85ddcb059ce5c5e5070adf96dbecdf40ef5e6bbbc99e0f25820ee67d68f59aa55d35d867c8648d70b99981840f07f36ed76db58f284b6 SHA512 abf64b6b819f8535f87237649be677af27aaddc729897eff8d4c27bd441e32862a42f8b84cf61ad3a0b9e1fc940fddf9d2e47d7decfcb62812239c5a9e01850a
DIST spiderfoot-3.3.tar.gz 3324791 BLAKE2B 3f72a8f9de6501d9f030ba8c907c33ba3d7da7704a81fdd141c4e12f4a9e20a7c774966cb3f2202890bb15f69fd882ecaadce2b4930fdf64d420730dacde9350 SHA512 5e888d263ec46466d501dc3b383d5b5bb29b4271556a14f40bedcda3eda910e1e100b00d440b0b5c2e744507273629ce0b18e56d4ca4f45d194d6924ce25794c
DIST spiderfoot-3.4.tar.gz 3416447 BLAKE2B 642fe3363b26796be61857d4bae668f7ec2770f5460251051e521d37b9f98031f8a03fe12ce99f59d4424fde8944c4bfa20aacdd7d5fada8ba040b352e95b112 SHA512 52297125c4d8aa0db586c3da91bddb6a056889fc144ef21fba8c1a1b2e50da9188cb4ae7793a6b65d48796eb9a909a487bdd723a9989e0c1c9bc038db1a6dd19
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ diff -ur spiderfoot-3.3.orig/sflib.py spiderfoot-3.3/sflib.py
"""

- path = self.myPath() + '/cache'
+ path = str(os.path.expanduser('~') + '/cache'
+ path = str(os.path.expanduser('~') + '/cache')
if not os.path.isdir(path):
os.mkdir(path)
return path
Expand Down
3 changes: 2 additions & 1 deletion app-forensics/spiderfoot/spiderfoot-3.3-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ if [[ ${PV} == *9999 ]]; then
EGIT_REPO_URI="https://github.com/smicallef/spiderfoot"
else
SRC_URI="https://github.com/smicallef/spiderfoot/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
#https://github.com/smicallef/spiderfoot/issues/1176
# KEYWORDS="~amd64 ~x86"
fi

LICENSE="GPL-2"
Expand Down
99 changes: 99 additions & 0 deletions app-forensics/spiderfoot/spiderfoot-3.4.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{8..9} )
PYTHON_REQ_USE="sqlite,ssl,readline"

inherit eutils python-single-r1

DESCRIPTION="The most complete OSINT collection and reconnaissance tool"
HOMEPAGE="https://www.spiderfoot.net"

if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/smicallef/spiderfoot"
else
SRC_URI="https://github.com/smicallef/spiderfoot/archive/v${PV}.tar.gz -> ${P}.tar.gz"
#https://github.com/smicallef/spiderfoot/issues/1176
KEYWORDS="~amd64 ~x86"
fi

LICENSE="GPL-2"
SLOT="0"

DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
acct-group/spiderfoot
acct-user/spiderfoot
$(python_gen_cond_dep '
>=dev-python/adblockparser-0.7[${PYTHON_MULTI_USEDEP}]
>=dev-python/dnspython-1.16.0[${PYTHON_MULTI_USEDEP}]
>=dev-python/exifread-2.1.2[${PYTHON_MULTI_USEDEP}]
>=dev-python/cherrypy-18.0[${PYTHON_MULTI_USEDEP}]
>=dev-python/cherrypy-cors-1.6[${PYTHON_MULTI_USEDEP}]
dev-python/mako[${PYTHON_MULTI_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}]
dev-python/lxml[${PYTHON_MULTI_USEDEP}]
>=dev-python/netaddr-0.7.18[${PYTHON_MULTI_USEDEP}]
>=dev-python/PySocks-1.7.1[${PYTHON_MULTI_USEDEP}]
dev-python/requests[${PYTHON_MULTI_USEDEP}]
~dev-python/ipwhois-1.0.0[${PYTHON_MULTI_USEDEP}]
>=dev-python/ipaddr-2.2.0[${PYTHON_MULTI_USEDEP}]
dev-python/phonenumbers[${PYTHON_MULTI_USEDEP}]
dev-python/pygexf[${PYTHON_MULTI_USEDEP}]
dev-python/PyPDF2[${PYTHON_MULTI_USEDEP}]
>=net-libs/stem-1.7.1[${PYTHON_MULTI_USEDEP}]
dev-python/python-whois[${PYTHON_MULTI_USEDEP}]
dev-python/python-secure[${PYTHON_MULTI_USEDEP}]
dev-python/pyopenssl[${PYTHON_MULTI_USEDEP}]
dev-python/python-docx[${PYTHON_MULTI_USEDEP}]
dev-python/python-pptx[${PYTHON_MULTI_USEDEP}]
dev-python/networkx[${PYTHON_MULTI_USEDEP}]
dev-python/cryptography[${PYTHON_MULTI_USEDEP}]
dev-python/publicsuffixlist[${PYTHON_MULTI_USEDEP}]
')"

#https://github.com/smicallef/spiderfoot/issues/1176
#PATCHES=(
# "${FILESDIR}/${PN}-3.0_fix_module_bug_sfp_hackertarget.patch"
# "${FILESDIR}/${P}_add_support_user_homedir.patch"
#)

src_prepare() {
default
python_fix_shebang "${S}"
}

src_install() {
insinto /usr/share/${PN}
doins -r modules/ spiderfoot/ *.py

for x in sf sfcli; do
make_wrapper $x \
"${EPYTHON} /usr/share/${PN}/${x}.py" \
"/usr/share/${PN}/"
done

dosym ./sf /usr/bin/${PN}
dosym ./sfcli /usr/bin/${PN}-cli

keepdir /var/lib/${PN}
fowners ${PN}:${PN} /var/lib/${PN}

newinitd "${FILESDIR}"/spiderfoot-daemon.initd-r1 spiderfoot-daemon
newconfd "${FILESDIR}"/spiderfoot-daemon.confd-r1 spiderfoot-daemon

dodoc *.md Dockerfile

python_optimize "${D}"/usr/share/${PN}
}

pkg_postinst() {
elog "\nJust run:"
elog " ~# rc-service spiderfoot-daemon start"
elog "and open in browser http://127.0.0.1:5001\n"

elog "See documentation: https://www.spiderfoot.net/documentation/\n"
}

0 comments on commit 692049c

Please sign in to comment.