2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE_URL:=http://git.zx2c4.com/ipset-dns
15 PKG_SOURCE_DATE:=2013-05-03
16 PKG_SOURCE_VERSION:=6be3afd819a86136b51c5ae722ab48266187155b
17 PKG_MIRROR_HASH:=4e34943b547babe705c2fad295ee24a5ee0c93ca03e2a9cdeaf323150f97e60b
18 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
21 PKG_LICENSE_FILES:=COPYING
23 include $(INCLUDE_DIR)/package.mk
25 define Package/ipset-dns/Default
28 define Package/ipset-dns
31 TITLE:=A lightweight DNS forwarder to populate ipsets
32 URL:=http://git.zx2c4.com/ipset-dns/about/
36 define Package/ipset-dns/description
37 The ipset-dns daemon is a lightweight DNS forwarding server that adds all
38 resolved IPs to a given netfilter ipset. It is designed to be used in
39 conjunction with dnsmasq's upstream server directive.
41 Practical use cases include routing over a given gateway traffic for
42 particular web services or webpages that do not have a priori predictable
43 IP addresses and instead rely on dizzying arrays of DNS resolutions.
46 define Package/ipset-dns/conffiles
50 define Package/ipset-dns/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipset-dns $(1)/usr/sbin/ipset-dns
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/ipset-dns.init $(1)/etc/init.d/ipset-dns
55 $(INSTALL_DIR) $(1)/etc/config
56 $(INSTALL_CONF) ./files/ipset-dns.config $(1)/etc/config/ipset-dns
59 $(eval $(call BuildPackage,ipset-dns))