aboutsummaryrefslogtreecommitdiffstats
path: root/community/dnsrecon/APKBUILD
blob: 5e6b2156d795a1aaf2da0b615031e88214cf810a (plain) (blame)
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
# 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-only"
depends="py3-dnspython py3-lxml py3-netaddr"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/darkoperator/dnsrecon/archive/$pkgver.tar.gz"

prepare() {
	default_prepare

	# set interpreter line to python3
	find . -type f -name "*.py" -exec \
		sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/' {} \;
}

package() {
	mkdir -p "$pkgdir"/usr/share/dnsrecon
	cp -r lib msf_plugin tools "$pkgdir"/usr/share/dnsrecon
	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
	install -D -m 0644 namelist.txt subdomains-*.txt -t \
		"$pkgdir"/usr/share/dnsrecon/
}

sha512sums="1b0ed1b405e58f8df7a8e1fb8a2dd07713bf5e8434ccfbced316cac8b16966b88a98f583be122c35bfbc540753bd44e5e47474aa58544dbea77e73d0cddc4c6b  dnsrecon-0.9.1.tar.gz"