2
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:=http://git.zx2c4.com/ipset-dns
  12. PKG_SOURCE_DATE:=2013-05-03
  13. PKG_SOURCE_VERSION:=6be3afd819a86136b51c5ae722ab48266187155b
  14. PKG_MIRROR_HASH:=4e34943b547babe705c2fad295ee24a5ee0c93ca03e2a9cdeaf323150f97e60b
  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))