void-packages/srcpkgs/dq/template

67 lines
1.5 KiB
Bash

# Template file for 'dq'
pkgname=dq
version=0.0.20241027
revision=1
build_style=gnu-makefile
make_dirs="
/etc/dqcache/env 0755 root root
/etc/dqcache/root/servers 0755 root root
/var/log/dqcache 0755 _dqcache _dqcache"
conf_files="
/etc/dqcache/env/*
/etc/dqcache/root/servers/*"
short_desc="Recursive DNS/DNSCurve server and cli tool to debug DNS/DNSCurve"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="CC0-1.0"
homepage="https://github.com/janmojzis/dq"
changelog="https://github.com/janmojzis/dq/releases"
distfiles="https://github.com/janmojzis/dq/archive/${version##*.}.tar.gz"
checksum=413a7aa97a31bc81886aea943dce39b674da2ec5a205f6d7c5cda7c365b9e1fb
system_accounts="_dqcache"
post_extract() {
vsed -e 's;usr/sbin;usr/bin;g' -i Makefile
}
post_install() {
vsv dqcache
for f in CACHESIZE IP ROOT; do
vinstall "${FILESDIR}/$f" 644 etc/dqcache/env
done
vmkdir etc/dqcache/root/servers
# https://www.iana.org/domains/root/servers
# curl https://www.internic.net/domain/named.root | awk '$0 !~ /^;/ && $3 ~ /^A$|^AAAA$/ {print $4}'
cat <<-! >"@"
198.41.0.4
2001:503:ba3e::2:30
170.247.170.2
2801:1b8:10::b
192.33.4.12
2001:500:2::c
199.7.91.13
2001:500:2d::d
192.203.230.10
2001:500:a8::e
192.5.5.241
2001:500:2f::f
192.112.36.4
2001:500:12::d0d
198.97.190.53
2001:500:1::53
192.36.148.17
2001:7fe::53
192.58.128.30
2001:503:c27::2:30
193.0.14.129
2001:7fd::1
199.7.83.42
2001:500:9f::42
202.12.27.33
2001:dc3::35
!
vinstall "@" 644 etc/dqcache/root/servers
}