void-packages/srcpkgs/dnscrypt-proxy/template

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
}