aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/masscan/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/masscan/APKBUILD')
-rw-r--r--unmaintained/masscan/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/unmaintained/masscan/APKBUILD b/unmaintained/masscan/APKBUILD
new file mode 100644
index 0000000000..a21c2aa108
--- /dev/null
+++ b/unmaintained/masscan/APKBUILD
@@ -0,0 +1,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"