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
11 PKG_VERSION
:=2013-05-03
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
15 PKG_SOURCE_URL
:=http
://git.zx2c4.com
/ipset-dns
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE_VERSION
:=6be3afd819a86136b51c5ae722ab48266187155b
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
19 PKG_MAINTAINER
:=Jo-Philipp Wich
<jow@openwrt.org
>
22 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/ipset-dns
/Default
29 define Package
/ipset-dns
32 TITLE
:=A lightweight DNS forwarder to populate ipsets
33 URL
:=http
://git.zx2c4.com
/ipset-dns
/about
/
37 define Package
/ipset-dns
/description
38 The ipset-dns daemon is a lightweight DNS forwarding server that adds
all
39 resolved IPs to a given netfilter ipset. It is designed to be used in
40 conjunction with dnsmasq
's upstream server directive.
42 Practical use cases include routing over a given gateway traffic for
43 particular web services or webpages that do not have a priori predictable
44 IP addresses and instead rely on dizzying arrays of DNS resolutions.
47 define Package/ipset-dns/conffiles
51 define Package/ipset-dns/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipset-dns $(1)/usr/sbin/ipset-dns
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/ipset-dns.init $(1)/etc/init.d/ipset-dns
56 $(INSTALL_DIR) $(1)/etc/config
57 $(INSTALL_CONF) ./files/ipset-dns.config $(1)/etc/config/ipset-dns
60 $(eval $(call BuildPackage,ipset-dns))