aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/masscan/APKBUILD
blob: a21c2aa1088914a649253a3fbd88e4d7555ebb76 (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.1
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="f22c77fdaef4e2018d3b25532c1b1e6e  masscan-1.0.1.tar.gz"
sha256sums="821c3bae851b50b9d47b3bef6c4b18b7d46c14c3f3bb5b4710dda19fff8bef86  masscan-1.0.1.tar.gz"
sha512sums="5991c4d4994bd4e7d4f4d7c6e6b1dcdb5c39e9a1b4f6d46ff3eff78d376e2658f199493c7e33fe660a5f405402a817a525d7a6dd7c810d47496d9accec52b3a7  masscan-1.0.1.tar.gz"