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
:=https
://git.zx2c4.com
/ipset-dns
15 PKG_SOURCE_DATE
:=2017-10-08
16 PKG_SOURCE_VERSION
:=ade2cf88e933f4f90451e0a6171f0aa4a523f989
17 PKG_MIRROR_HASH
:=3e978df41cf2c79edb13846c458579388b0fae9a547ebca7b9f52ad6c0e50e70
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))