void-packages/srcpkgs/stubby/template
2021-10-04 22:03:37 +02:00

27 lines
875 B
Bash

# Template file for 'stubby'
pkgname=stubby
version=0.4.0
revision=1
build_style=cmake
conf_files="/etc/stubby/stubby.yml"
makedepends="getdns-devel libyaml-devel openssl-devel"
depends="libcap-progs" # For setcap(8)
short_desc="DNS Privacy stub resolver"
maintainer="Frank Steinborn <steinex@nognu.de>"
license="BSD-3-Clause"
homepage="https://github.com/getdnsapi/stubby"
changelog="https://raw.githubusercontent.com/getdnsapi/stubby/v${version}/ChangeLog"
distfiles="https://github.com/getdnsapi/stubby/archive/v${version}.tar.gz"
checksum=8e6a4ba76f04b23612d58813c4998141b0cc6194432d87f8653f3ba5cf64152a
# Create stubby system user/group
system_accounts="_stubby"
_stubby_homedir="/var/lib/${pkgname}"
make_dirs="/var/lib/${pkgname} 0755 _${pkgname} _${pkgname}"
post_install() {
vinstall stubby.yml.example 0644 etc/stubby stubby.yml
vlicense COPYING
vsv stubby
}