2016-11-26 10:15:34 +00:00
|
|
|
|
2012-10-10 13:13:17 +00:00
|
|
|
# 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
|
2022-12-30 20:00:10 +00:00
|
|
|
PKG_VERSION:=7.17
|
2022-11-22 07:58:09 +00:00
|
|
|
PKG_RELEASE:=1
|
2012-10-10 13:13:17 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
build: prefer HTTPS if available (for packages)
Changes PKG_SOURCE_URL's for arptables, bsdiff, dnsmasq,
fortify-headers, ipset, ipset-dns, libaudit, libpcap, libressl,
lua, lua5.3, tcpdump and valgrind, to HTTPS
Signed-off-by: Daniel Cousens <github@dcousens.com>
2022-09-30 00:13:46 +00:00
|
|
|
PKG_SOURCE_URL:=https://ipset.netfilter.org
|
2022-12-30 20:00:10 +00:00
|
|
|
PKG_HASH:=be49c9ff489dd6610cad6541e743c3384eac96e9f24707da7b3929d8f2ac64d8
|
2012-10-10 13:13:17 +00:00
|
|
|
|
2016-06-07 09:42:32 +00:00
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2023-09-18 20:53:14 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:netfilter:ipset
|
2012-10-10 13:13:17 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2017-06-20 12:18:11 +00:00
|
|
|
define Package/ipset/Default
|
2012-10-10 13:13:17 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2013-05-21 13:00:28 +00:00
|
|
|
DEPENDS+= +kmod-ipt-ipset +libmnl
|
2012-10-10 13:13:17 +00:00
|
|
|
TITLE:=IPset administration utility
|
|
|
|
URL:=http://ipset.netfilter.org/
|
|
|
|
endef
|
|
|
|
|
2017-06-20 12:18:11 +00:00
|
|
|
define Package/ipset
|
|
|
|
$(call Package/ipset/Default)
|
|
|
|
DEPENDS+= +libipset
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libipset
|
|
|
|
$(call Package/ipset/Default)
|
2019-01-22 18:17:32 +00:00
|
|
|
ABI_VERSION:=13
|
2017-06-20 12:18:11 +00:00
|
|
|
endef
|
|
|
|
|
2012-10-10 13:13:17 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2019-02-23 16:46:54 +00:00
|
|
|
--disable-static \
|
2012-10-10 13:13:17 +00:00
|
|
|
--with-kbuild="$(LINUX_DIR)"
|
|
|
|
|
2019-02-23 16:46:54 +00:00
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
|
|
|
|
|
2012-10-10 13:13:17 +00:00
|
|
|
MAKE_FLAGS += \
|
2013-07-10 14:59:00 +00:00
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
SHELL="$(BASH)"
|
2012-10-10 13:13:17 +00:00
|
|
|
|
2016-11-26 10:15:34 +00:00
|
|
|
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/
|
2019-02-23 16:46:54 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset.so* $(1)/usr/lib/
|
2016-11-26 10:15:34 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib/libipset.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
2012-10-10 13:13:17 +00:00
|
|
|
define Package/ipset/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/
|
2022-02-25 11:30:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset-translate $(1)/usr/sbin/
|
2017-06-20 12:18:11 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libipset/install
|
2012-10-10 13:13:17 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-01-22 18:17:32 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset*.so.* $(1)/usr/lib/
|
2012-10-10 13:13:17 +00:00
|
|
|
endef
|
|
|
|
|
2017-06-20 12:18:11 +00:00
|
|
|
$(eval $(call BuildPackage,libipset))
|
2021-02-15 23:03:28 +00:00
|
|
|
$(eval $(call BuildPackage,ipset))
|