1
0

Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ipset-dns
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://git.zx2c4.com/ipset-dns
  12. PKG_SOURCE_DATE:=2017-10-08
  13. PKG_SOURCE_VERSION:=ade2cf88e933f4f90451e0a6171f0aa4a523f989
  14. PKG_MIRROR_HASH:=34ad1f5c7d2eab90b795f2a512102891428216e3d439d918a8992846550e9697
  15. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/ipset-dns/Default
  20. endef
  21. define Package/ipset-dns
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=A lightweight DNS forwarder to populate ipsets
  25. URL:=http://git.zx2c4.com/ipset-dns/about/
  26. DEPENDS:=+libmnl
  27. endef
  28. define Package/ipset-dns/description
  29. The ipset-dns daemon is a lightweight DNS forwarding server that adds all
  30. resolved IPs to a given netfilter ipset. It is designed to be used in
  31. conjunction with dnsmasq's upstream server directive.
  32. Practical use cases include routing over a given gateway traffic for
  33. particular web services or webpages that do not have a priori predictable
  34. IP addresses and instead rely on dizzying arrays of DNS resolutions.
  35. endef
  36. define Package/ipset-dns/conffiles
  37. /etc/config/ipset-dns
  38. endef
  39. define Package/ipset-dns/install
  40. $(INSTALL_DIR) $(1)/usr/sbin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipset-dns $(1)/usr/sbin/ipset-dns
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/ipset-dns.init $(1)/etc/init.d/ipset-dns
  44. $(INSTALL_DIR) $(1)/etc/config
  45. $(INSTALL_CONF) ./files/ipset-dns.config $(1)/etc/config/ipset-dns
  46. endef
  47. $(eval $(call BuildPackage,ipset-dns))