aboutsummaryrefslogtreecommitdiffstats
path: root/community/masscan/APKBUILD
blob: ba1488859ecb969a2058a5ca94433794d196fadf (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
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=masscan
pkgver=1.3.2
pkgrel=0
pkgdesc="TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes"
url="https://github.com/robertdavidgraham/masscan"
arch="all"
license="AGPL-3.0-only"
makedepends="libpcap-dev linux-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/robertdavidgraham/masscan/archive/$pkgver.tar.gz"

build() {
	make CC="${CC:-gcc}" CFLAGS="$CFLAGS -I."
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 doc/masscan.8 -t "$pkgdir/usr/share/man/man8"
}

sha512sums="b0709f6f937a0e86c6913407c3bc60187074395ffff7a7a2bb54b23824d72982510e44fb1b1e7dcba85c4ad25ab1a623597661db43d9046165ba865cd9bd5b27  masscan-1.3.2.tar.gz"