summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorocelot2019-01-13 20:28:19 +1100
committerocelot2019-01-13 20:28:19 +1100
commite95fb728702559d953e3a7cb01ad7f7ed77e65ce (patch)
tree87ca481b61ab23e3ef309e73c1470b06ad4375fd /PKGBUILD
parent9c5a1215e0166a241b6bd0669bbacdeae66d6504 (diff)
downloadaur-e95fb728702559d953e3a7cb01ad7f7ed77e65ce.tar.gz
add .install file with API instructions
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 15 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2ba67d1c5ab..1ca08572643 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,10 +7,18 @@ pkgdesc="A tool for gathering e-mail accounts, subdomain names, virtual hosts, o
arch=('any')
url="https://github.com/laramies/theHarvester"
license=('GPL2')
-depends=('bash' 'python2' 'python2-requests')
+depends=(
+ 'bash'
+ 'python'
+ 'python-requests'
+ 'python-plotly'
+ 'python-pytest'
+ 'python-texttable'
+ 'python-shodan')
makedepends=('git' 'bash')
provides=("${pkgname}")
conflicts=("${pkgname}")
+install="theHarvester.install"
source=("$pkgname::git+https://github.com/laramies/theHarvester.git")
md5sums=('SKIP')
@@ -25,7 +33,7 @@ prepare() {
cd "$srcdir/$pkgname"
cat <<__EOF__ > run.sh
#!/bin/bash
-PYTHONPATH="\$PYTHONPATH:/opt/$pkgname/" /usr/bin/env python2 /opt/$pkgname/theHarvester.py "\$@"
+PYTHONPATH="\$PYTHONPATH:/opt/$pkgname/" /usr/bin/env python /opt/$pkgname/theHarvester.py "\$@"
__EOF__
}
@@ -35,9 +43,13 @@ package() {
cp -r "$srcdir/$pkgname/discovery" "$pkgdir/opt/$pkgname/"
cp -r "$srcdir/$pkgname/lib" "$pkgdir/opt/$pkgname/"
- install "$srcdir/$pkgname/myparser.py" "$pkgdir/opt/$pkgname/"
+ cp -r "$srcdir/$pkgname/parsers" "$pkgdir/opt/$pkgname/"
+ cp -r "$srcdir/$pkgname/tests" "$pkgdir/opt/$pkgname/"
+ cp -r "$srcdir/$pkgname/wordlists" "$pkgdir/opt/$pkgname/"
+ install "$srcdir/$pkgname/stash.py" "$pkgdir/opt/$pkgname/"
install "$srcdir/$pkgname/theHarvester.py" "$pkgdir/opt/$pkgname/"
install "$srcdir/$pkgname/run.sh" "$pkgdir/opt/$pkgname/"
ln -s "/opt/$pkgname/run.sh" "$pkgdir/usr/bin/theharvester"
+
}