void-packages/srcpkgs/stubby/template

28 lines
865 B
Bash

# Template file for 'stubby'
pkgname=stubby
version=0.3.0
revision=1
build_style=cmake
conf_files="/etc/stubby/stubby.yml"
makedepends="getdns-devel libyaml-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=b37a0e0ec2b7cfcdcb596066a6fd6109e91a2766b17a42c47d3703d9be41d000
# Create stubby system user/group
system_accounts="_${pkgname}"
_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
}