New package: knot-2.8.2

This commit is contained in:
Duncaen 2019-07-08 12:53:19 +02:00
parent d1cc8f5bed
commit 2fb4130597
6 changed files with 73 additions and 0 deletions

View File

@ -3476,3 +3476,7 @@ libgtk-4.so.0.9400.0 gtk4-3.94.0_1
libmodule.so.4 libmodule-4.1.0_1 libmodule.so.4 libmodule-4.1.0_1
libgnustep-gui.so.0.27 gnustep-gui-0.27.0_1 libgnustep-gui.so.0.27 gnustep-gui-0.27.0_1
libmhash.so.2 mhash-0.9.9.9_1 libmhash.so.2 mhash-0.9.9.9_1
libfstrm.so.0 fstrm-0.5.0_1
libknot.so.9 libknot-2.8.2_1
libdnssec.so.7 libknot-2.8.2_1
libzscanner.so.3 libknot-2.8.2_1

1
srcpkgs/knot-utils Symbolic link
View File

@ -0,0 +1 @@
knot

View File

@ -0,0 +1,4 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
install -d -m0755 -o _knot -g _knot /run/knot
exec knotd ${OPTS}

62
srcpkgs/knot/template Normal file
View File

@ -0,0 +1,62 @@
# Template file for 'knot'
pkgname=knot
version=2.8.2
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"
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/"
distfiles="https://secure.nic.cz/files/knot-dns/knot-${version}.tar.xz"
checksum=00d24361a2406392c508904fad943536bae6369981686b4951378fc1c9a5a137
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
}
}

1
srcpkgs/libknot Symbolic link
View File

@ -0,0 +1 @@
knot

1
srcpkgs/libknot-devel Symbolic link
View File

@ -0,0 +1 @@
knot