mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
This commit brings UCI support to the stubby package.
o All options are documented in the README.md file.
o The README.md file has been re-written to include a short usage
manual.
o The default configuration now includes more Cloudflare addresses.
o The stubby service is (re)started using procd triggers from a
specified interface with a configurable time delay.
o Round robin use of upstream resolvers is now activated by
default.
o Client privacy is now activated by default.
o Options are added for specifying the log level of the daemon and
command line options passed to the stubby command.
Signed-off-by: Jonathan G. Underwood <jonathan.underwood@gmail.com>
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=stubby
|
|
PKG_VERSION:=0.2.3
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=COPYING
|
|
PKG_MAINTAINER:=David Mora <iamperson347+public@gmail.com>
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=https://github.com/getdnsapi/$(PKG_NAME)
|
|
PKG_SOURCE_VERSION:=8fb853ac8d6148fd9b53fdcbc107ecd375071ec5
|
|
PKG_MIRROR_HASH:=db736f4a728970d2441009ac19716d6129700eab3f441a5db3a0c26d41bf162c
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/stubby/Default
|
|
TITLE:=stubby
|
|
URL:=https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby
|
|
endef
|
|
|
|
define Package/stubby
|
|
$(call Package/stubby/Default)
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=IP Addresses and Names
|
|
TITLE+= - (daemon that uses getdns)
|
|
USERID:=stubby=410:stubby=410
|
|
DEPENDS:= +libyaml +getdns +ca-certificates
|
|
endef
|
|
|
|
define Package/stubby/description
|
|
This package contains the Stubby daemon (which utilizes the getdns library).
|
|
|
|
See https://github.com/openwrt/packages/blob/master/net/stubby/files/README.md for more details.
|
|
endef
|
|
|
|
define Package/stubby/conffiles
|
|
/etc/stubby/stubby.yml
|
|
endef
|
|
|
|
define Package/stubby/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stubby $(1)/usr/sbin/stubby
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/stubby.init $(1)/etc/init.d/stubby
|
|
$(INSTALL_DIR) $(1)/etc/stubby
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/stubby/stubby.yml $(1)/etc/stubby/stubby.yml.default
|
|
$(INSTALL_DATA) ./files/stubby.yml $(1)/etc/stubby/stubby.yml
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_DATA) ./files/stubby.conf $(1)/etc/config/stubby
|
|
endef
|
|
|
|
|
|
define Package/stubby/conffiles
|
|
/etc/stubby/stubby.yml
|
|
/etc/config/stubby
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,stubby))
|