aboutsummaryrefslogtreecommitdiffstats
path: root/testing/p0f/p0f-fixes.patch
diff options
context:
space:
mode:
authorArch3y <arch3y@arch3y.com>2017-04-24 20:30:34 -0400
committerTimo Teräs <timo.teras@iki.fi>2017-08-29 07:21:40 +0000
commit87d740c28ee69228e75d0f2f4963e7bf92467f26 (patch)
treecf763d1ffd83c6d11f894b5eeb6304748d605385 /testing/p0f/p0f-fixes.patch
parent19bff561e3385c19076fe36ddbf38df01efe278d (diff)
downloadaports-87d740c28ee69228e75d0f2f4963e7bf92467f26.tar.bz2
aports-87d740c28ee69228e75d0f2f4963e7bf92467f26.tar.xz
testing/p0f: new aport
Passive traffic fingerprinting tool http://lcamtuf.coredump.cx/p0f3/ [TT: modernize]
Diffstat (limited to 'testing/p0f/p0f-fixes.patch')
-rw-r--r--testing/p0f/p0f-fixes.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/p0f/p0f-fixes.patch b/testing/p0f/p0f-fixes.patch
new file mode 100644
index 0000000000..97332e6519
--- /dev/null
+++ b/testing/p0f/p0f-fixes.patch
@@ -0,0 +1,42 @@
+--- p0f-3.09b.orig/build.sh
++++ p0f-3.09b/build.sh
+@@ -13,12 +13,12 @@
+
+ test "$CC" = "" && CC="gcc"
+
+-BASIC_CFLAGS="-Wall -Wno-format -I/usr/local/include/ \
++BASIC_CFLAGS="-Wall -Wno-format -I/usr/include/ \
+ -I/opt/local/include/ -DVERSION=\"$VERSION\" $CFLAGS"
+
+-BASIC_LDFLAGS="-L/usr/local/lib/ -L/opt/local/lib $LDFLAGS"
++BASIC_LDFLAGS="-L/usr/lib/ -L/opt/local/lib $LDFLAGS"
+
+-USE_CFLAGS="-fstack-protector-all -fPIE -D_FORTIFY_SOURCE=2 -g -ggdb \
++USE_CFLAGS="-fstack-protector-all -fPIE -D_FORTIFY_SOURCE=2 \
+ $BASIC_CFLAGS"
+
+ USE_LDFLAGS="-Wl,-z,relro -pie $BASIC_LDFLAGS"
+--- p0f-3.09b.orig/config.h
++++ p0f-3.09b/config.h
+@@ -20,7 +20,7 @@
+ /* Default location of p0f.fp: */
+
+ #ifndef FP_FILE
+-# define FP_FILE "p0f.fp"
++# define FP_FILE "/etc/p0f/p0f.fp"
+ #endif /* !FP_FILE */
+
+ /* Initial permissions on log files: */
+--- p0f-3.09b.orig/tools/Makefile
++++ p0f-3.09b/tools/Makefile
+@@ -8,8 +8,8 @@
+ #
+
+ CC = gcc
+-CFLAGS = -g -ggdb -Wall -Wno-format -funsigned-char
+-LDFLAGS =
++CFLAGS = -Wall -Wno-format -funsigned-char
++LDFLAGS =
+ TARGETS = p0f-client p0f-sendsyn p0f-sendsyn6
+
+ all: $(TARGETS)