dnscrypt-proxy2: update to 2.1.18

Update dnscrypt-proxy2 to version 2.1.18.

Fix the blocked_names_file substitution. The previous expression did not
match the upstream example configuration, leaving the bundled blocklist
disabled. This enables blocked-names.txt on fresh installations.

Declare blocked-names.txt as a configuration file so that
local changes are preserved during package upgrades.

Signed-off-by: Paul Lipps <paul.lipps@tb.pro>
This commit is contained in:
Paul Lipps authored and Josef Schlehofer committed 2026-07-31 13:14:58 +02:00
1 parent c34c055b28
commit e4e2f07d60
1 file changed
+4 -3
+4 -3
View File
@@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dnscrypt-proxy2
PKG_VERSION:=2.1.15
PKG_VERSION:=2.1.18
PKG_RELEASE:=1
PKG_SOURCE:=dnscrypt-proxy-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/DNSCrypt/dnscrypt-proxy/tar.gz/$(PKG_VERSION)?
PKG_HASH:=57da91dd2a3992a1528e764bcfe9b48088c63c933c0c571a2cac3d27ac8c7546
PKG_HASH:=9b810d862ba07c383cc0b8f9f7f1f2ca8f74a02f849d818c4c4d37cc21a7dfa6
PKG_BUILD_DIR:=$(BUILD_DIR)/dnscrypt-proxy-$(PKG_VERSION)
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
@@ -57,7 +57,7 @@ define Package/dnscrypt-proxy2/install
$(INSTALL_BIN) ./files/dnscrypt-proxy.init $(1)/etc/init.d/dnscrypt-proxy
sed -i "s/^listen_addresses = .*/listen_addresses = ['127.0.0.53:53']/" $(1)/etc/dnscrypt-proxy2/dnscrypt-proxy.toml
sed -i "s/^ # blocked_names_file = 'blocked-names.txt'/blocked_names_file = 'blocked-names.txt'/" $(1)/etc/dnscrypt-proxy2/dnscrypt-proxy.toml
sed -i "s/^[[:space:]]*#[[:space:]]*blocked_names_file = 'blocked-names.txt'/blocked_names_file = 'blocked-names.txt'/" $(1)/etc/dnscrypt-proxy2/dnscrypt-proxy.toml
endef
define Package/dnscrypt-proxy2/description
@@ -67,6 +67,7 @@ endef
define Package/dnscrypt-proxy2/conffiles
/etc/dnscrypt-proxy2/dnscrypt-proxy.toml
/etc/dnscrypt-proxy2/blocked-names.txt
endef
define Package/golang-github-jedisct1-dnscrypt-proxy2-dev