65 lines
1.6 KiB
Bash
65 lines
1.6 KiB
Bash
# Template file for 'knot'
|
|
pkgname=knot
|
|
version=3.3.7
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
--disable-silent-rules
|
|
--enable-dnstap
|
|
--enable-fastparser
|
|
--with-module-dnstap=yes
|
|
--with-rundir=/run/knot"
|
|
conf_files="/etc/knot/knot.conf"
|
|
hostmakedepends="automake pkg-config protobuf-c"
|
|
makedepends="gnutls-devel lmdb-devel libedit-devel liburcu-devel
|
|
protobuf-c-devel fstrm-devel libmaxminddb-devel libcap-ng-devel
|
|
nghttp2-devel"
|
|
checkdepends="softhsm"
|
|
short_desc="High-performance authoritative-only DNS server"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.knot-dns.cz/"
|
|
changelog="https://gitlab.nic.cz/knot/knot-dns/-/raw/${version%*.*}/NEWS"
|
|
distfiles="https://secure.nic.cz/files/knot-dns/knot-${version}.tar.xz"
|
|
checksum=18ceb398578342e9a3d5b75f2423945a2f8d1d7c730f24f4d2aa4a24b50e831d
|
|
|
|
system_accounts="_knot"
|
|
_knot_homedir="/var/lib/knot"
|
|
|
|
make_dirs="/var/lib/knot 0755 _knot _knot"
|
|
|
|
post_install() {
|
|
vsed -i -e 's/\(user: \)knot:knot/\1 _knot:_knot/' samples/knot.sample.conf
|
|
vinstall samples/knot.sample.conf 644 etc/knot knot.conf
|
|
rm ${DESTDIR}/etc/knot/knot.sample.conf
|
|
vsv knotd
|
|
}
|
|
|
|
knot-utils_package() {
|
|
short_desc+=" - DNS utils"
|
|
pkg_install() {
|
|
for x in kdig knsupdate khost; do
|
|
vmove "usr/bin/$x"
|
|
vmove "usr/share/man/man1/$x.1"
|
|
done
|
|
}
|
|
}
|
|
|
|
libknot_package() {
|
|
short_desc+=" - runtime libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
libknot-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|