mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
dnscrypt-proxy: update to 2.1.5, move config file
dnscrypt-proxy pollutes /etc with ambiguous files because it installs everything into the same directory that contains its main config file. This moves all those files into /etc/dnscrypt-proxy. Files previously installed as documentation are now correctly installed as examples.
This commit is contained in:
parent
b7753f2798
commit
fb229a66be
3 changed files with 15 additions and 11 deletions
3
srcpkgs/dnscrypt-proxy/INSTALL.msg
Normal file
3
srcpkgs/dnscrypt-proxy/INSTALL.msg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
The dnscrypt-proxy service now installs and looks for the config file at
|
||||||
|
/etc/dnscrypt-proxy/dnscrypt-proxy.toml. Any previous configuration will
|
||||||
|
need to be moved into this directory manually.
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec dnscrypt-proxy -config /etc/dnscrypt-proxy.toml
|
exec dnscrypt-proxy -config /etc/dnscrypt-proxy/dnscrypt-proxy.toml
|
||||||
|
|
|
@ -1,29 +1,30 @@
|
||||||
# Template file for 'dnscrypt-proxy'
|
# Template file for 'dnscrypt-proxy'
|
||||||
pkgname=dnscrypt-proxy
|
pkgname=dnscrypt-proxy
|
||||||
version=2.1.4
|
version=2.1.5
|
||||||
revision=5
|
revision=1
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path=github.com/dnscrypt/dnscrypt-proxy
|
go_import_path=github.com/dnscrypt/dnscrypt-proxy
|
||||||
go_package="${go_import_path}/dnscrypt-proxy"
|
go_package="${go_import_path}/dnscrypt-proxy"
|
||||||
hostmakedepends="go1.20"
|
depends="python3-urllib3"
|
||||||
short_desc="DNS proxy that encrypts queries"
|
short_desc="DNS proxy that encrypts queries"
|
||||||
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
||||||
license="ISC"
|
license="ISC"
|
||||||
homepage="https://github.com/DNSCrypt/dnscrypt-proxy"
|
homepage="https://github.com/DNSCrypt/dnscrypt-proxy"
|
||||||
changelog="https://raw.githubusercontent.com/DNSCrypt/dnscrypt-proxy/master/ChangeLog"
|
changelog="https://raw.githubusercontent.com/DNSCrypt/dnscrypt-proxy/master/ChangeLog"
|
||||||
distfiles="https://github.com/DNSCrypt/dnscrypt-proxy/archive/refs/tags/${version}.tar.gz"
|
distfiles="https://github.com/DNSCrypt/dnscrypt-proxy/archive/refs/tags/${version}.tar.gz"
|
||||||
checksum=05f0a3e8c8f489caf95919e2a75a1ec4598edd3428d2b9dd357caba6adb2607d
|
checksum=044c4db9a3c7bdcf886ff8f83c4b137d2fd37a65477a92bfe86bf69587ea7355
|
||||||
conf_files="/etc/dnscrypt-proxy.toml"
|
conf_files="/etc/dnscrypt-proxy/dnscrypt-proxy.toml"
|
||||||
system_accounts="dnscrypt_proxy"
|
system_accounts="dnscrypt_proxy"
|
||||||
make_dirs="/var/log/dnscrypt-proxy 0750 dnscrypt_proxy dnscrypt_proxy"
|
|
||||||
|
|
||||||
export GOTOOLCHAIN=go1.20
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vconf dnscrypt-proxy/example-dnscrypt-proxy.toml dnscrypt-proxy.toml
|
vinstall dnscrypt-proxy/example-dnscrypt-proxy.toml 644 /etc/dnscrypt-proxy dnscrypt-proxy.toml
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
vsv dnscrypt-proxy
|
vsv dnscrypt-proxy
|
||||||
for example in dnscrypt-proxy/example*txt; do
|
for example in dnscrypt-proxy/example*txt; do
|
||||||
vdoc $example
|
vsconf "${example}"
|
||||||
|
done
|
||||||
|
vbin utils/generate-domains-blocklist/generate-domains-blocklist.py
|
||||||
|
for f in utils/generate-domains-blocklist/*.{conf,txt}; do
|
||||||
|
vinstall "${f}" 644 /usr/share/dnscrypt-proxy
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue