Skip to content

Commit

Permalink
security/fwknop: Fix compilation on FreeBSD 13+
Browse files Browse the repository at this point in the history
PR:		254570
Reported by:	Jens Grassel <freebsd-ports@jan0sch.de>
Approved by:	Sean Greven <sean.greven@gmail.com> (maintainer)
  • Loading branch information
kev009 committed Apr 8, 2021
1 parent 5de9a3f commit 29a3852
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
5 changes: 1 addition & 4 deletions security/fwknop/Makefile
Expand Up @@ -2,7 +2,7 @@

PORTNAME= fwknop
PORTVERSION= 2.6.10
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://www.cipherdyne.org/fwknop/download/

Expand All @@ -11,9 +11,6 @@ COMMENT= SPA implementation for Linux and FreeBSD

LICENSE= GPLv2

BROKEN_FreeBSD_13= ld: error: duplicate symbol: log_level_t
BROKEN_FreeBSD_14= ld: error: duplicate symbol: log_level_t

BUILD_DEPENDS= wget:ftp/wget
RUN_DEPENDS= wget:ftp/wget
LIB_DEPENDS+= libassuan.so:security/libassuan
Expand Down
19 changes: 19 additions & 0 deletions security/fwknop/files/patch-client_log__msg.h
@@ -0,0 +1,19 @@
*** client/log_msg.h.orig Sat Apr 3 21:59:58 2021
--- client/log_msg.h Sat Apr 3 22:00:14 2021
***************
*** 38,44 ****
LOG_VERBOSITY_INFO, /*!< Constant to define a INFO message */
LOG_VERBOSITY_DEBUG, /*!< Constant to define a DEBUG message */
LOG_LAST_VERBOSITY
! } log_level_t;

#define LOG_DEFAULT_VERBOSITY LOG_VERBOSITY_NORMAL /*!< Default verbosity to use */

--- 38,44 ----
LOG_VERBOSITY_INFO, /*!< Constant to define a INFO message */
LOG_VERBOSITY_DEBUG, /*!< Constant to define a DEBUG message */
LOG_LAST_VERBOSITY
! };

#define LOG_DEFAULT_VERBOSITY LOG_VERBOSITY_NORMAL /*!< Default verbosity to use */

0 comments on commit 29a3852

Please sign in to comment.