treewide: clean up and unify PKG_VERSION for git based downloads
[openwrt/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_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL:=http://git.zx2c4.com/ipset-dns
15 PKG_SOURCE_DATE:=2013-05-03
16 PKG_SOURCE_VERSION:=6be3afd819a86136b51c5ae722ab48266187155b
17 PKG_MIRROR_HASH:=4e34943b547babe705c2fad295ee24a5ee0c93ca03e2a9cdeaf323150f97e60b
18 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
19
20 PKG_LICENSE:=GPL-2.0
21 PKG_LICENSE_FILES:=COPYING
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ipset-dns/Default
26 endef
27
28 define Package/ipset-dns
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=A lightweight DNS forwarder to populate ipsets
32 URL:=http://git.zx2c4.com/ipset-dns/about/
33 DEPENDS:=+libmnl
34 endef
35
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.
40
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.
44 endef
45
46 define Package/ipset-dns/conffiles
47 /etc/config/ipset-dns
48 endef
49
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
57 endef
58
59 $(eval $(call BuildPackage,ipset-dns))