From owner-svn-ports-all@freebsd.org Fri Feb 9 14:07:39 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A61FF066AC; Fri, 9 Feb 2018 14:07:39 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 06A0A84A56; Fri, 9 Feb 2018 14:07:37 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 570BF25CA9; Fri, 9 Feb 2018 14:07:37 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w19E7bjv066075; Fri, 9 Feb 2018 14:07:37 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w19E7a9Z066072; Fri, 9 Feb 2018 14:07:36 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201802091407.w19E7a9Z066072@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Fri, 9 Feb 2018 14:07:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r461297 - in head/security/snoopy: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/security/snoopy: . files X-SVN-Commit-Revision: 461297 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 14:07:39 -0000 Author: sunpoet Date: Fri Feb 9 14:07:36 2018 New Revision: 461297 URL: https://svnweb.freebsd.org/changeset/ports/461297 Log: Use REINPLACE_CMD instead of patch files Deleted: head/security/snoopy/files/patch-build-Makefile.am.common head/security/snoopy/files/patch-src-configfile.c head/security/snoopy/files/patch-src-datasource-sid.c head/security/snoopy/files/patch-src-datasource-snoopy_version.c head/security/snoopy/files/patch-src-output-socketoutput.c head/security/snoopy/files/patch-src-snoopy.h head/security/snoopy/files/patch-src-tsrm.c head/security/snoopy/files/patch-tests-bin-snoopy-test-exec-in-threads.c Modified: head/security/snoopy/Makefile head/security/snoopy/files/patch-configure.ac head/security/snoopy/files/patch-tests-bin-snoopy-test-threads.c Modified: head/security/snoopy/Makefile ============================================================================== --- head/security/snoopy/Makefile Fri Feb 9 14:07:31 2018 (r461296) +++ head/security/snoopy/Makefile Fri Feb 9 14:07:36 2018 (r461297) @@ -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 |#include |' ${WRKSRC}/tests/bin/snoopy-test-exec-in-threads.c ${WRKSRC}/tests/bin/snoopy-test-threads.c do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR}/ Modified: head/security/snoopy/files/patch-configure.ac ============================================================================== --- head/security/snoopy/files/patch-configure.ac Fri Feb 9 14:07:31 2018 (r461296) +++ head/security/snoopy/files/patch-configure.ac Fri Feb 9 14:07:36 2018 (r461297) @@ -1,18 +1,9 @@ --- 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]) +@@ -125,12 +125,6 @@ SNOOPY_PROG_CHECK([wc], [WC], - ### Silent make output -@@ -125,18 +125,11 @@ SNOOPY_PROG_CHECK([wc], [WC], - - -dnl Checks for libraries. -dnl FIXME: Replace `main' with a function in `-ldl': -AC_CHECK_LIB([dl], [dlsym], [], [ @@ -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 \ Modified: head/security/snoopy/files/patch-tests-bin-snoopy-test-threads.c ============================================================================== --- head/security/snoopy/files/patch-tests-bin-snoopy-test-threads.c Fri Feb 9 14:07:31 2018 (r461296) +++ head/security/snoopy/files/patch-tests-bin-snoopy-test-threads.c Fri Feb 9 14:07:36 2018 (r461297) @@ -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 -@@ -42,7 +41,7 @@ - #include - #include - #include --#include -+#include - - - -@@ -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