aboutsummaryrefslogtreecommitdiffstats
path: root/security/snoopy
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2018-02-09 22:07:36 +0800
committersunpoet <sunpoet@FreeBSD.org>2018-02-09 22:07:36 +0800
commitfb66594dbbf57612613498c6cf1d7eeb014fb67f (patch)
treecde651ebd85d1fdbd41eb30ad9932d644ff36fc3 /security/snoopy
parentea0e49e143e63744a256fc53afce02f88e087545 (diff)
downloadfreebsd-ports-gnome-fb66594dbbf57612613498c6cf1d7eeb014fb67f.tar.gz
freebsd-ports-gnome-fb66594dbbf57612613498c6cf1d7eeb014fb67f.tar.zst
freebsd-ports-gnome-fb66594dbbf57612613498c6cf1d7eeb014fb67f.zip
Use REINPLACE_CMD instead of patch files
Diffstat (limited to 'security/snoopy')
-rw-r--r--security/snoopy/Makefile10
-rw-r--r--security/snoopy/files/patch-build-Makefile.am.common8
-rw-r--r--security/snoopy/files/patch-configure.ac17
-rw-r--r--security/snoopy/files/patch-src-configfile.c12
-rw-r--r--security/snoopy/files/patch-src-datasource-sid.c10
-rw-r--r--security/snoopy/files/patch-src-datasource-snoopy_version.c10
-rw-r--r--security/snoopy/files/patch-src-output-socketoutput.c10
-rw-r--r--security/snoopy/files/patch-src-snoopy.h14
-rw-r--r--security/snoopy/files/patch-src-tsrm.c10
-rw-r--r--security/snoopy/files/patch-tests-bin-snoopy-test-exec-in-threads.c11
-rw-r--r--security/snoopy/files/patch-tests-bin-snoopy-test-threads.c23
11 files changed, 14 insertions, 121 deletions
diff --git a/security/snoopy/Makefile b/security/snoopy/Makefile
index 9f77d7022da3..872eaaedf01a 100644
--- a/security/snoopy/Makefile
+++ b/security/snoopy/Makefile
@@ -30,7 +30,17 @@ USE_GITHUB= yes
SHEBANG_GLOB= *.sh
post-patch:
+ @${REINPLACE_CMD} -e 's| -Wall -Werror||' ${WRKSRC}/configure.ac ${WRKSRC}/build/Makefile.am.common
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/README.md
+ @${REINPLACE_CMD} -e '/#define.*_XOPEN_SOURCE/d' \
+ ${WRKSRC}/src/configfile.c \
+ ${WRKSRC}/src/datasource/sid.c \
+ ${WRKSRC}/src/datasource/snoopy_version.c \
+ ${WRKSRC}/src/snoopy.h \
+ ${WRKSRC}/tests/bin/snoopy-test-threads.c \
+ ${WRKSRC}/src/tsrm.c
+ @${REINPLACE_CMD} -e '/features.h/d' ${WRKSRC}/configure.ac ${WRKSRC}/src/output/socketoutput.c ${WRKSRC}/src/snoopy.h
+ @${REINPLACE_CMD} -e 's|#include <wait.h>|#include <sys/wait.h>|' ${WRKSRC}/tests/bin/snoopy-test-exec-in-threads.c ${WRKSRC}/tests/bin/snoopy-test-threads.c
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
diff --git a/security/snoopy/files/patch-build-Makefile.am.common b/security/snoopy/files/patch-build-Makefile.am.common
deleted file mode 100644
index 009dbe34dbe7..000000000000
--- a/security/snoopy/files/patch-build-Makefile.am.common
+++ /dev/null
@@ -1,8 +0,0 @@
---- build/Makefile.am.common.orig 2016-09-14 15:02:26 UTC
-+++ build/Makefile.am.common
-@@ -9,4 +9,4 @@ MAINTAINERCLEANFILES = Makefile.in
- # Note:
- # -I$(top_srcdir) is here for #include 'lib/iniparser/src/iniparser.h' to work
- #
--AM_CFLAGS = -Wall -Werror -Wextra -Wno-unused-parameter -std=c99 -pedantic -I$(top_srcdir)
-+AM_CFLAGS = -Wextra -Wno-unused-parameter -std=c99 -pedantic -I$(top_srcdir)
diff --git a/security/snoopy/files/patch-configure.ac b/security/snoopy/files/patch-configure.ac
index f338d2a87046..50427be8472d 100644
--- a/security/snoopy/files/patch-configure.ac
+++ b/security/snoopy/files/patch-configure.ac
@@ -1,15 +1,6 @@
--- configure.ac.orig 2016-09-14 15:02:26 UTC
+++ configure.ac
-@@ -30,7 +30,7 @@ AC_CONFIG_SRCDIR([src/eventsource/execve
- AC_CONFIG_AUX_DIR([build/aux])
- AC_CONFIG_MACRO_DIR([build/m4])
- m4_include([build/snoopy.m4])
--AM_INIT_AUTOMAKE([1.11 gnu silent-rules subdir-objects -Wall -Werror])
-+AM_INIT_AUTOMAKE([1.11 gnu silent-rules subdir-objects])
-
-
- ### Silent make output
-@@ -125,18 +125,11 @@ SNOOPY_PROG_CHECK([wc], [WC],
+@@ -125,12 +125,6 @@ SNOOPY_PROG_CHECK([wc], [WC],
@@ -22,9 +13,3 @@
dnl Checks for header files.
AC_CHECK_HEADERS([ \
ctype.h \
- dlfcn.h \
- errno.h \
-- features.h \
- grp.h \
- limits.h \
- pwd.h \
diff --git a/security/snoopy/files/patch-src-configfile.c b/security/snoopy/files/patch-src-configfile.c
deleted file mode 100644
index 72db43b137ae..000000000000
--- a/security/snoopy/files/patch-src-configfile.c
+++ /dev/null
@@ -1,12 +0,0 @@
---- src/configfile.c.orig 2016-09-14 15:02:26 UTC
-+++ src/configfile.c
-@@ -35,9 +35,6 @@
-
- #include "lib/inih/src/ini.h"
-
--#ifndef _XOPEN_SOURCE // For strdup
--#define _XOPEN_SOURCE 500
--#endif
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
diff --git a/security/snoopy/files/patch-src-datasource-sid.c b/security/snoopy/files/patch-src-datasource-sid.c
deleted file mode 100644
index cedc698be5fa..000000000000
--- a/security/snoopy/files/patch-src-datasource-sid.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/datasource/sid.c.orig 2016-09-14 15:02:26 UTC
-+++ src/datasource/sid.c
-@@ -30,7 +30,6 @@
- #include "snoopy.h"
-
- #ifndef _XOPEN_SOURCE /* Needed to get getpgid and getsid on older glibc */
--#define _XOPEN_SOURCE 500
- #endif
- #include <stdio.h>
- #include <sys/types.h>
diff --git a/security/snoopy/files/patch-src-datasource-snoopy_version.c b/security/snoopy/files/patch-src-datasource-snoopy_version.c
deleted file mode 100644
index edfbf5518c55..000000000000
--- a/security/snoopy/files/patch-src-datasource-snoopy_version.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/datasource/snoopy_version.c.orig 2016-09-14 15:02:26 UTC
-+++ src/datasource/snoopy_version.c
-@@ -30,7 +30,6 @@
- #include "snoopy.h"
-
- #ifndef _XOPEN_SOURCE /* Needed to get getpgid and getsid on older glibc */
--#define _XOPEN_SOURCE 500
- #endif
- #include <stdio.h>
- #include <sys/types.h>
diff --git a/security/snoopy/files/patch-src-output-socketoutput.c b/security/snoopy/files/patch-src-output-socketoutput.c
deleted file mode 100644
index 4967a719311b..000000000000
--- a/security/snoopy/files/patch-src-output-socketoutput.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/output/socketoutput.c.orig 2016-09-14 15:02:26 UTC
-+++ src/output/socketoutput.c
-@@ -30,7 +30,6 @@
- #include "snoopy.h"
- #include "configuration.h"
-
--#include <features.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
diff --git a/security/snoopy/files/patch-src-snoopy.h b/security/snoopy/files/patch-src-snoopy.h
deleted file mode 100644
index da6d1575eb7a..000000000000
--- a/security/snoopy/files/patch-src-snoopy.h
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/snoopy.h.orig 2016-09-14 15:02:26 UTC
-+++ src/snoopy.h
-@@ -31,11 +31,6 @@
- /* This must be the first file to be included, or implicit inclusion
- * (by i.e. <features.h>) does the wrong thing
- */
--#ifdef _XOPEN_SOURCE
--#undef _XOPEN_SOURCE
--#endif
--#define _XOPEN_SOURCE 500
--#include <features.h> /* Needed for GLIBC macros here */
- #include <syslog.h> /* Needed for syslog defaults */
- #include <unistd.h> /* Needed for _SC_ARG_MAX constant */
-
diff --git a/security/snoopy/files/patch-src-tsrm.c b/security/snoopy/files/patch-src-tsrm.c
deleted file mode 100644
index 0b93be67372d..000000000000
--- a/security/snoopy/files/patch-src-tsrm.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/tsrm.c.orig 2016-09-14 15:02:26 UTC
-+++ src/tsrm.c
-@@ -25,7 +25,6 @@
- /*
- * Includes order: from local to global
- */
--#define _XOPEN_SOURCE 700 // Required by pthread_mutex_setattr
-
- #include "tsrm.h"
-
diff --git a/security/snoopy/files/patch-tests-bin-snoopy-test-exec-in-threads.c b/security/snoopy/files/patch-tests-bin-snoopy-test-exec-in-threads.c
deleted file mode 100644
index 1c2849926d7f..000000000000
--- a/security/snoopy/files/patch-tests-bin-snoopy-test-exec-in-threads.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- tests/bin/snoopy-test-exec-in-threads.c.orig 2016-09-14 15:02:26 UTC
-+++ tests/bin/snoopy-test-exec-in-threads.c
-@@ -31,7 +31,7 @@
- #include <string.h>
- #include <sys/types.h>
- #include <unistd.h>
--#include <wait.h>
-+#include <sys/wait.h>
-
-
-
diff --git a/security/snoopy/files/patch-tests-bin-snoopy-test-threads.c b/security/snoopy/files/patch-tests-bin-snoopy-test-threads.c
index f6584c4557ed..3e53630252c7 100644
--- a/security/snoopy/files/patch-tests-bin-snoopy-test-threads.c
+++ b/security/snoopy/files/patch-tests-bin-snoopy-test-threads.c
@@ -1,23 +1,6 @@
---- tests/bin/snoopy-test-threads.c.orig 2016-09-14 15:02:26 UTC
-+++ tests/bin/snoopy-test-threads.c
-@@ -25,7 +25,6 @@
- /*
- * Includes order: from local to global
- */
--#define _XOPEN_SOURCE 500
- #define _GNU_SOURCE
-
- #include <snoopy.h>
-@@ -42,7 +41,7 @@
- #include <sys/syscall.h>
- #include <sys/types.h>
- #include <unistd.h>
--#include <wait.h>
-+#include <sys/wait.h>
-
-
-
-@@ -307,7 +306,7 @@ int randomNumberInclusive (int nMin, int
+--- tests/bin/snoopy-test-threads.c.orig 2017-12-26 01:38:15.298217000 +0800
++++ tests/bin/snoopy-test-threads.c 2017-12-26 01:41:42.177506000 +0800
+@@ -307,7 +307,7 @@
int randomNr;
// Seed