openwrt/package/network/services/ipset-dns/Makefile
Daniel Engberg 9edfe7dd13 source: Switch to xz for packages and tools where possible
* Change git packages to xz
* Update mirror checksums in packages where they are used
* Change a few source tarballs to xz if available upstream
* Remove unused lines in packages we're touching, requested by jow- and blogic
* We're relying more on xz-utils so add official mirror as primary source, master site as secondary.
* Add SHA256 checksums to multiple git tarball packages

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2016-10-06 12:16:56 +02:00

62 lines
1.8 KiB
Makefile

#
# Copyright (C) 2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ipset-dns
PKG_VERSION:=2013-05-03
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=http://git.zx2c4.com/ipset-dns
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=6be3afd819a86136b51c5ae722ab48266187155b
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
PKG_MIRROR_MD5SUM:=9deca25a4602936938611d21d891f06685e109626b9eda7f84aa2f0af7aba092
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
include $(INCLUDE_DIR)/package.mk
define Package/ipset-dns/Default
endef
define Package/ipset-dns
SECTION:=net
CATEGORY:=Network
TITLE:=A lightweight DNS forwarder to populate ipsets
URL:=http://git.zx2c4.com/ipset-dns/about/
DEPENDS:=+libmnl
endef
define Package/ipset-dns/description
The ipset-dns daemon is a lightweight DNS forwarding server that adds all
resolved IPs to a given netfilter ipset. It is designed to be used in
conjunction with dnsmasq's upstream server directive.
Practical use cases include routing over a given gateway traffic for
particular web services or webpages that do not have a priori predictable
IP addresses and instead rely on dizzying arrays of DNS resolutions.
endef
define Package/ipset-dns/conffiles
/etc/config/ipset-dns
endef
define Package/ipset-dns/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ipset-dns $(1)/usr/sbin/ipset-dns
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/ipset-dns.init $(1)/etc/init.d/ipset-dns
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/ipset-dns.config $(1)/etc/config/ipset-dns
endef
$(eval $(call BuildPackage,ipset-dns))