summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD38
-rw-r--r--spiderfoot.service11
-rw-r--r--spiderfoot.sh3
4 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cc46c1c35d2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+# Generated by mksrcinfo v8
+# Sat Mar 31 02:08:04 UTC 2018
+pkgbase = spiderfoot
+ pkgdesc = SpiderFoot is an open source intelligence automation tool. Its goal is to automate the process of gathering intelligence about a given target.
+ pkgver = 2.12.0
+ pkgrel = 1
+ url = http://www.spiderfoot.net/
+ arch = any
+ license = GPLv2
+ makedepends = python2
+ depends = python2
+ depends = python2-m2crypto
+ depends = python2-netaddr
+ depends = python2-dnspython
+ depends = python2-cherrypy
+ depends = python2-mako
+ depends = python2-pysocks
+ depends = python2-pypdf2
+ depends = python2-stem
+ depends = python2-bs4
+ depends = python2-phonenumbers
+ source = spiderfoot-2.12.0.tar.gz::https://github.com/smicallef/spiderfoot/archive/v2.12.0-final.tar.gz
+ source = spiderfoot.sh
+ source = spiderfoot.service
+ sha256sums = 93946fb8ff8b53fae53187ea5ff7a09da07da0e09c29480d52fe78b0524cbcb7
+ sha256sums = 2246fe34cd61433a35cd49f2d6d18a6a66fd714014c6c703d1f1f29e3b2a5007
+ sha256sums = fe22ab59b2e6b118c3d7fdeb7da2ca8489379810acae713519a48a651c62774e
+
+pkgname = spiderfoot
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..27b0e8bac91
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: GI_Jack <iamjacksemail@hackermail.com>
+
+pkgname=spiderfoot
+pkgver=2.12.0
+_verpostfix="-final"
+pkgrel=1
+pkgdesc="SpiderFoot is an open source intelligence automation tool. Its goal is to automate the process of gathering intelligence about a given target."
+arch=('any')
+url="http://www.spiderfoot.net/"
+license=('GPLv2')
+depends=( 'python2' 'python2-m2crypto' 'python2-netaddr' 'python2-dnspython' 'python2-cherrypy' 'python2-mako' 'python2-pysocks' 'python2-pypdf2' 'python2-stem' 'python2-bs4' 'python2-phonenumbers')
+makedepends=('python2')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/smicallef/spiderfoot/archive/v${pkgver}-final.tar.gz"
+ "spiderfoot.sh"
+ "spiderfoot.service")
+sha256sums=('93946fb8ff8b53fae53187ea5ff7a09da07da0e09c29480d52fe78b0524cbcb7'
+ '2246fe34cd61433a35cd49f2d6d18a6a66fd714014c6c703d1f1f29e3b2a5007'
+ 'fe22ab59b2e6b118c3d7fdeb7da2ca8489379810acae713519a48a651c62774e')
+
+build() {
+ cd "${pkgname}-${pkgver}${_verpostfix}"
+ # Add shebang because derp who wrote this is a windows silly goose
+ for file in *.py;do
+ sed -i '1s/^/#!\/usr\/bin\/python2\n/' ${file}
+ done
+ python2 -m compileall *.py
+}
+
+
+package() {
+ cd "${pkgname}-${pkgver}${_verpostfix}"
+ mkdir -p "${pkgdir}/usr/share/spiderfoot"
+ #mkdir -p "${pkgdir}/usr/bin"
+ cp -r * "${pkgdir}/usr/share/spiderfoot"
+ install -Dm755 "${srcdir}/spiderfoot.sh" "${pkgdir}/usr/bin/spiderfoot"
+ install -Dm644 "${srcdir}/spiderfoot.service" "${pkgdir}/usr/lib/systemd/system/spiderfoot.service"
+}
+
diff --git a/spiderfoot.service b/spiderfoot.service
new file mode 100644
index 00000000000..d8131c6461c
--- /dev/null
+++ b/spiderfoot.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Spiderfoot: OSINT Automation Tool
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/spiderfoot
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/spiderfoot.sh b/spiderfoot.sh
new file mode 100644
index 00000000000..8b3b94720e6
--- /dev/null
+++ b/spiderfoot.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd /usr/share/spiderfoot
+./sf.py "${@}"