From 7a0a4144d8e773c199851fd4b92dd7fb272ba832 Mon Sep 17 00:00:00 2001 From: Adam Gensler Date: Mon, 6 Jul 2015 19:08:25 -0400 Subject: [PATCH] dnscrypt-proxy: add support for -E/--ephemeral-keys option. Signed-off-by: Adam Gensler --- net/dnscrypt-proxy/Makefile | 2 +- net/dnscrypt-proxy/files/dnscrypt-proxy.config | 1 + net/dnscrypt-proxy/files/dnscrypt-proxy.init | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/net/dnscrypt-proxy/Makefile b/net/dnscrypt-proxy/Makefile index 32a872185b..6439e92dc9 100644 --- a/net/dnscrypt-proxy/Makefile +++ b/net/dnscrypt-proxy/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dnscrypt-proxy PKG_VERSION:=1.5.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://download.dnscrypt.org/dnscrypt-proxy diff --git a/net/dnscrypt-proxy/files/dnscrypt-proxy.config b/net/dnscrypt-proxy/files/dnscrypt-proxy.config index d0dbc2d003..63e0e86b72 100644 --- a/net/dnscrypt-proxy/files/dnscrypt-proxy.config +++ b/net/dnscrypt-proxy/files/dnscrypt-proxy.config @@ -3,3 +3,4 @@ config dnscrypt-proxy option port '5353' # option resolver 'opendns' # option resolvers_list '/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv' + # option ephemeral_keys '1' diff --git a/net/dnscrypt-proxy/files/dnscrypt-proxy.init b/net/dnscrypt-proxy/files/dnscrypt-proxy.init index 24f29ae2cd..7c9f58db4b 100644 --- a/net/dnscrypt-proxy/files/dnscrypt-proxy.init +++ b/net/dnscrypt-proxy/files/dnscrypt-proxy.init @@ -8,12 +8,14 @@ start_instance () { config_get port "$section" 'port' config_get resolver "$section" 'resolver' config_get resolvers_list "$section" 'resolvers_list' + config_get_bool ephemeral_keys "$section" 'ephemeral_keys' service_start /usr/sbin/dnscrypt-proxy -d \ -a ${address}:${port} \ -u nobody \ -L ${resolvers_list:-'/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv'} \ - -R ${resolver:-'opendns'} + -R ${resolver:-'opendns'} \ + ${ephemeral_keys:+'-E'} } start() { -- 2.30.2