rpcd: iwinfo plugin fixes
[openwrt.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.gz
19 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
20
21 PKG_LICENSE:=GPL-2.0
22 PKG_LICENSE_FILES:=COPYING
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/ipset-dns/Default
27 endef
28
29 define Package/ipset-dns
30   SECTION:=net
31   CATEGORY:=Network
32   TITLE:=A lightweight DNS forwarder to populate ipsets
33   URL:=http://git.zx2c4.com/ipset-dns/about/
34   DEPENDS:=+libmnl
35 endef
36
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.
41
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.
45 endef
46
47 define Package/ipset-dns/conffiles
48 /etc/config/ipset-dns
49 endef
50
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
58 endef
59
60 $(eval $(call BuildPackage,ipset-dns))