aboutsummaryrefslogtreecommitdiffstats
path: root/testing/masscan/APKBUILD
blob: cde934d328eab9944393a39e929e9133d84df1bf (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
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=masscan
pkgver=1.0
pkgrel=0
pkgdesc="A TCP port scanner"
url="https://github.com/robertdavidgraham/masscan"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="libpcap-dev"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/robertdavidgraham/masscan/archive/$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -m755 -D "$_builddir"/bin/$pkgname \
		"$pkgdir"/usr/bin/$pkgname  || return 1
}

md5sums="56a7c2f433d6704e48b35f6cb9963752  masscan-1.0.tar.gz"
sha256sums="703f5b61246dd70f71c4145e254a0b9306ffd302b466a2b615ea9aae1db34d43  masscan-1.0.tar.gz"
sha512sums="ba26690d1a2f68d2651f3800eddef5b1c90d4a260b9c750f069e4e9957212c6dec954544b16fe5540b18783f677b040398d0c2e3c825331e6cc1aaf05bbe9696  masscan-1.0.tar.gz"