mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
e5440ec871
When porting mwan3 from iptables to nftables I tried the new translation tool for ipset ipset-translate. I noticed that no IPv6 ipset can be created with the tool. I have reported the problem to the upstream project and the following patch fixes the problem. Until this upsream is included in a new release, this patch should be used in Openwrt. https://lore.kernel.org/netfilter-devel/20220228190217.2256371-1-pablo@netfilter.org/T/#m09cc3cb738f2e42024c7aecf5b7240d9f6bbc19c Signed-off-by: Florian Eckert <fe@dev.tdt.de>
75 lines
1.7 KiB
Makefile
75 lines
1.7 KiB
Makefile
|
|
# Copyright (C) 2009-2012 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=ipset
|
|
PKG_VERSION:=7.15
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=http://ipset.netfilter.org
|
|
PKG_HASH:=0a5545aaadb640142c1f888d366a78ddf8724799967fa20686a70053bd621751
|
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/ipset/Default
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS+= +kmod-ipt-ipset +libmnl
|
|
TITLE:=IPset administration utility
|
|
URL:=http://ipset.netfilter.org/
|
|
endef
|
|
|
|
define Package/ipset
|
|
$(call Package/ipset/Default)
|
|
DEPENDS+= +libipset
|
|
endef
|
|
|
|
define Package/libipset
|
|
$(call Package/ipset/Default)
|
|
ABI_VERSION:=13
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
--disable-static \
|
|
--with-kbuild="$(LINUX_DIR)"
|
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
|
|
|
|
MAKE_FLAGS += \
|
|
ARCH="$(LINUX_KARCH)" \
|
|
SHELL="$(BASH)"
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libipset $(1)/usr/include/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset.so* $(1)/usr/lib/
|
|
$(CP) $(PKG_BUILD_DIR)/lib/libipset.pc $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/ipset/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset-translate $(1)/usr/sbin/
|
|
endef
|
|
|
|
define Package/libipset/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset*.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libipset))
|
|
$(eval $(call BuildPackage,ipset))
|