OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 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:=2017-10-08 |
||
16 | PKG_SOURCE_VERSION:=ade2cf88e933f4f90451e0a6171f0aa4a523f989 |
||
17 | PKG_MIRROR_HASH:=34ad1f5c7d2eab90b795f2a512102891428216e3d439d918a8992846550e9697 |
||
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)) |