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.xz
19 PKG_MIRROR_MD5SUM
:=9deca25a4602936938611d21d891f06685e109626b9eda7f84aa2f0af7aba092
20 PKG_MAINTAINER
:=Jo-Philipp Wich
<jo@mein.io
>
23 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/ipset-dns
/Default
30 define Package
/ipset-dns
33 TITLE
:=A lightweight DNS forwarder to populate ipsets
34 URL
:=http
://git.zx2c4.com
/ipset-dns
/about
/
38 define Package
/ipset-dns
/description
39 The ipset-dns daemon is a lightweight DNS forwarding server that adds
all
40 resolved IPs to a given netfilter ipset. It is designed to be used in
41 conjunction with dnsmasq
's upstream server directive.
43 Practical use cases include routing over a given gateway traffic for
44 particular web services or webpages that do not have a priori predictable
45 IP addresses and instead rely on dizzying arrays of DNS resolutions.
48 define Package/ipset-dns/conffiles
52 define Package/ipset-dns/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipset-dns $(1)/usr/sbin/ipset-dns
55 $(INSTALL_DIR) $(1)/etc/init.d
56 $(INSTALL_BIN) ./files/ipset-dns.init $(1)/etc/init.d/ipset-dns
57 $(INSTALL_DIR) $(1)/etc/config
58 $(INSTALL_CONF) ./files/ipset-dns.config $(1)/etc/config/ipset-dns
61 $(eval $(call BuildPackage,ipset-dns))