cinerea0 fb229a66be 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.
2023-08-24 20:29:55 +02:00

31 lines
1.1 KiB
Bash

# Template file for 'dnscrypt-proxy'
pkgname=dnscrypt-proxy
version=2.1.5
revision=1
build_style=go
go_import_path=github.com/dnscrypt/dnscrypt-proxy
go_package="${go_import_path}/dnscrypt-proxy"
depends="python3-urllib3"
short_desc="DNS proxy that encrypts queries"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="ISC"
homepage="https://github.com/DNSCrypt/dnscrypt-proxy"
changelog="https://raw.githubusercontent.com/DNSCrypt/dnscrypt-proxy/master/ChangeLog"
distfiles="https://github.com/DNSCrypt/dnscrypt-proxy/archive/refs/tags/${version}.tar.gz"
checksum=044c4db9a3c7bdcf886ff8f83c4b137d2fd37a65477a92bfe86bf69587ea7355
conf_files="/etc/dnscrypt-proxy/dnscrypt-proxy.toml"
system_accounts="dnscrypt_proxy"
post_install() {
vinstall dnscrypt-proxy/example-dnscrypt-proxy.toml 644 /etc/dnscrypt-proxy dnscrypt-proxy.toml
vlicense LICENSE
vsv dnscrypt-proxy
for example in dnscrypt-proxy/example*txt; do
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
}