Makefile 1.7 KB

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