Merge pull request #12720 from neheb/fw
fwknop: fix compilation with GCC10
This commit is contained in:
commit
5be4b51414
2 changed files with 19 additions and 10 deletions
|
@ -9,15 +9,19 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=fwknop
|
PKG_NAME:=fwknop
|
||||||
PKG_VERSION:=2.6.10
|
PKG_VERSION:=2.6.10
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=https://www.cipherdyne.org/fwknop/download
|
PKG_SOURCE_URL:=https://www.cipherdyne.org/fwknop/download
|
||||||
PKG_HASH:=f6c09bec97ed8e474a98ae14f9f53e1bcdda33393f20667b6af3fb6bb894ca77
|
PKG_HASH:=f6c09bec97ed8e474a98ae14f9f53e1bcdda33393f20667b6af3fb6bb894ca77
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jonathan Bennett <JBennett@incomsystems.biz>
|
PKG_MAINTAINER:=Jonathan Bennett <JBennett@incomsystems.biz>
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
|
PKG_LICENSE_FILES:=COPYING
|
||||||
PKG_CPE_ID:=cpe:/a:cipherdyne:fwknop
|
PKG_CPE_ID:=cpe:/a:cipherdyne:fwknop
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
@ -90,16 +94,10 @@ define Package/libfko/description
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_FWKNOPD_GPG),y)
|
|
||||||
CONFIGURE_ARGS += --without-gpgme
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_FWKNOPD_NFQ_CAPTURE),y)
|
|
||||||
CONFIGURE_ARGS += --enable-nfq-capture
|
|
||||||
endif
|
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--with-iptables=/usr/sbin/iptables
|
--$(if $(CONFIG_FWKNOPD_NFQ_CAPTURE),en,dis)able-nfq-capture \
|
||||||
|
--with$(if $(CONFIG_FWKNOPD_GPG),,out)-gpgme \
|
||||||
|
--with-iptables=/usr/sbin/iptables \
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
|
|
11
net/fwknop/patches/010-gcc10.patch
Normal file
11
net/fwknop/patches/010-gcc10.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/client/log_msg.h
|
||||||
|
+++ b/client/log_msg.h
|
||||||
|
@@ -29,7 +29,7 @@
|
||||||
|
#ifndef LOG_MSG_H
|
||||||
|
#define LOG_MSG_H
|
||||||
|
|
||||||
|
-enum
|
||||||
|
+static enum
|
||||||
|
{
|
||||||
|
LOG_FIRST_VERBOSITY = 0,
|
||||||
|
LOG_VERBOSITY_ERROR = 0, /*!< Constant to define a ERROR message */
|
Loading…
Reference in a new issue