mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-10 14:53:19 +02:00
30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
# Template file for 'dnscrypt-proxy'
|
|
pkgname=dnscrypt-proxy
|
|
version=2.1.12
|
|
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=95fe29ed03dad0cdd34d47316ecb15c25f7ef5fab21d9ec52cbfc4743bcf5198
|
|
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
|
|
}
|