blob: d7751b8ba94948ab4b1304323aac23367668eb27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dnsrecon
pkgver=0.9.1
pkgrel=1
pkgdesc="DNS Enumeration Script"
url="https://github.com/darkoperator/dnsrecon"
arch="noarch"
license="GPL-2.0"
depends="py3-dnspython py3-lxml py3-netaddr"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/darkoperator/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
default_prepare
# set interpreter line to python3
find . -type f -name "*.py" -exec \
sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/' {} \;
}
build() {
cd "$builddir"
return 0
}
package() {
cd "$builddir"
for dir in lib tools msf_plugin; do
mkdir -p "$pkgdir"/usr/share/dnsrecon/$dir
cp $dir/* "$pkgdir"/usr/share/dnsrecon/$dir
done
install -D -m 0755 dnsrecon.py "$pkgdir"/usr/share/dnsrecon/dnsrecon.py
mkdir -p "$pkgdir"/usr/bin
ln -sf /usr/share/dnsrecon/dnsrecon.py "$pkgdir"/usr/bin/dnsrecon.py
}
sha512sums="1b0ed1b405e58f8df7a8e1fb8a2dd07713bf5e8434ccfbced316cac8b16966b88a98f583be122c35bfbc540753bd44e5e47474aa58544dbea77e73d0cddc4c6b dnsrecon-0.9.1.tar.gz"
|