2013-05-06 08:44:54 +00:00
|
|
|
#
|
|
|
|
# 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
|
2016-12-21 21:25:41 +00:00
|
|
|
PKG_RELEASE:=1
|
2013-05-06 08:44:54 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
build: prefer HTTPS if available (for packages)
Changes PKG_SOURCE_URL's for arptables, bsdiff, dnsmasq,
fortify-headers, ipset, ipset-dns, libaudit, libpcap, libressl,
lua, lua5.3, tcpdump and valgrind, to HTTPS
Signed-off-by: Daniel Cousens <github@dcousens.com>
2022-09-30 00:13:46 +00:00
|
|
|
PKG_SOURCE_URL:=https://git.zx2c4.com/ipset-dns
|
2017-10-08 15:03:29 +00:00
|
|
|
PKG_SOURCE_DATE:=2017-10-08
|
|
|
|
PKG_SOURCE_VERSION:=ade2cf88e933f4f90451e0a6171f0aa4a523f989
|
2024-03-25 09:03:26 +00:00
|
|
|
PKG_MIRROR_HASH:=94478078566bb8ddd76063607780f899646eacd2414e60d799231ff9391ce540
|
2016-06-07 09:42:32 +00:00
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
2013-05-06 08:44:54 +00:00
|
|
|
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2013-05-06 08:44:54 +00:00
|
|
|
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))
|