summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
Diffstat (limited to 'network')
-rw-r--r--network/masscan/masscan.SlackBuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/network/masscan/masscan.SlackBuild b/network/masscan/masscan.SlackBuild
index e8c68bbc85..39c38c7837 100644
--- a/network/masscan/masscan.SlackBuild
+++ b/network/masscan/masscan.SlackBuild
@@ -69,6 +69,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# gcc-5 fixes thanks to Arch Linux
+sed -i "s|#elif defined(__GNUC__) && (__GNUC__ == 4)|#elif defined(__GNUC__)|" src/string_s.h
+sed -i -r "s|(CFLAGS )=|\1+=|g" Makefile
+
make
make install DESTDIR=$PKG
install -pDm644 doc/masscan.8 $PKG/usr/man/man8/masscan.8