diff --git a/srcpkgs/masscan/patches/fix-musl.patch b/srcpkgs/masscan/patches/fix-musl.patch new file mode 100644 index 00000000000..b486252db65 --- /dev/null +++ b/srcpkgs/masscan/patches/fix-musl.patch @@ -0,0 +1,17 @@ +Backported from +https://github.com/robertdavidgraham/masscan/commit/8e58f7caf78c1d3e8e042dae72d4017cf5a1af86 +which was merged shortly after release. + +diff --git a/src/pixie-backtrace.c b/src/pixie-backtrace.c +index e7113a2..715b5db 100644 +--- a/src/pixie-backtrace.c ++++ b/src/pixie-backtrace.c +@@ -11,7 +11,7 @@ + char global_self[512] = ""; + + +-#if defined(__linux__) ++#if defined(__GLIBC__) + #include + #include + #include diff --git a/srcpkgs/masscan/template b/srcpkgs/masscan/template new file mode 100644 index 00000000000..2d68d2cf2e6 --- /dev/null +++ b/srcpkgs/masscan/template @@ -0,0 +1,13 @@ +# Template file for 'masscan' +pkgname=masscan +version=1.0.4 +revision=1 +build_style=gnu-makefile +patch_args='-p1' # one patch to be removed on next update. +depends="libpcap-devel" +short_desc="TCP port scanner, spews SYN packets asynchronously" +maintainer="Ɓukasz Jendrysik " +license="AGPL-3" +homepage="https://github.com/robertdavidgraham/masscan" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=51de345f677f46595fc3bd747bfb61bc9ff130adcbec48f3401f8057c8702af9