1 2# Copyright (C) 2009-2012 OpenWrt.org 3# 4# This is free software, licensed under the GNU General Public License v2. 5# See /LICENSE for more information. 6# 7# 8include $(TOPDIR)/rules.mk 9include $(INCLUDE_DIR)/kernel.mk 10 11PKG_NAME:=ipset 12PKG_VERSION:=6.24 13PKG_RELEASE:=1 14 15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 16PKG_SOURCE_URL:=http://ipset.netfilter.org 17PKG_MD5SUM:=8831b8f01458bf2abacc222884195a62 18 19PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org> 20PKG_LICENSE:=GPL-2.0 21 22PKG_FIXUP:=autoreconf 23PKG_INSTALL:=1 24 25include $(INCLUDE_DIR)/package.mk 26 27define Package/ipset 28 SECTION:=net 29 CATEGORY:=Network 30 DEPENDS+= +kmod-ipt-ipset +libmnl 31 TITLE:=IPset administration utility 32 URL:=http://ipset.netfilter.org/ 33endef 34 35CONFIGURE_ARGS += \ 36 --with-kbuild="$(LINUX_DIR)" 37 38MAKE_FLAGS += \ 39 ARCH="$(LINUX_KARCH)" \ 40 SHELL="$(BASH)" 41 42define Build/Compile 43 $(call Build/Compile/Default) 44endef 45 46define Package/ipset/install 47 $(INSTALL_DIR) $(1)/usr/sbin 48 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/ 49 $(INSTALL_DIR) $(1)/usr/lib 50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset*.so* $(1)/usr/lib/ 51endef 52 53$(eval $(call BuildPackage,ipset)) 54