svn commit: r555067 - in head/security/snort2pfcd: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Sat Nov 14 03:09:35 UTC 2020
Author: pkubaj
Date: Sat Nov 14 03:09:34 2020
New Revision: 555067
URL: https://svnweb.freebsd.org/changeset/ports/555067
Log:
security/snort2pfcd: fix build on GCC architectures
cc1: error: unrecognized command line option "-Wimplicit-fallthrough"
cc1: error: unrecognized command line option "-Wcovered-switch-default"
cc1: error: unrecognized command line option "-Wno-noexcept-type"
cc1: error: unrecognized command line option "-Wstring-conversion"
Tested to build with Clang.
Added:
head/security/snort2pfcd/files/patch-Makefile (contents, props changed)
Modified:
head/security/snort2pfcd/Makefile
Modified: head/security/snort2pfcd/Makefile
==============================================================================
--- head/security/snort2pfcd/Makefile Sat Nov 14 01:37:40 2020 (r555066)
+++ head/security/snort2pfcd/Makefile Sat Nov 14 03:09:34 2020 (r555067)
@@ -14,6 +14,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcidr.so:devel/libcidr
RUN_DEPENDS= snort:security/snort
+USES= compiler:c11
USE_RC_SUBR= snort2pfcd
PLIST_FILES= man/man8/snort2pfcd.8.gz \
sbin/snort2pfcd
Added: head/security/snort2pfcd/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/snort2pfcd/files/patch-Makefile Sat Nov 14 03:09:34 2020 (r555067)
@@ -0,0 +1,11 @@
+--- Makefile.orig 2020-11-14 01:58:17 UTC
++++ Makefile
+@@ -2,7 +2,7 @@ PROG= snort2pfcd
+ SRCS= main.c parser.c kevent.c spfc.c tools.c
+ MAN= ${PROG}.8
+ CFLAGS+= -Wall -Wextra -pipe -fno-strict-aliasing -pedantic -pthread -Wno-unused-parameter \
+--Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wstring-conversion \
++-Wno-long-long -Wimplicit-fallthrough -Wno-noexcept-type \
+ -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -D_REENTRANT -D_THREAD_SAFE -D_VERSION="${1}" -I${LOCALBASE}/include
+
+ LDFLAGS+=-lutil -L${LOCALBASE}/lib -lcidr
More information about the svn-ports-all
mailing list