f24d6ef63a0a272f786530983f3089e76ad93c4e
[openwrt/staging/wigyori.git] / package / network / services / ipset-dns / Makefile
1 #
2 # Copyright (C) 2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ipset-dns
11 PKG_VERSION:=2013-05-03
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE_PROTO:=git
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>
21
22 PKG_LICENSE:=GPL-2.0
23 PKG_LICENSE_FILES:=COPYING
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/ipset-dns/Default
28 endef
29
30 define Package/ipset-dns
31 SECTION:=net
32 CATEGORY:=Network
33 TITLE:=A lightweight DNS forwarder to populate ipsets
34 URL:=http://git.zx2c4.com/ipset-dns/about/
35 DEPENDS:=+libmnl
36 endef
37
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.
42
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.
46 endef
47
48 define Package/ipset-dns/conffiles
49 /etc/config/ipset-dns
50 endef
51
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
59 endef
60
61 $(eval $(call BuildPackage,ipset-dns))