From 2fb4130597354f62db4ef9a5d8bbdb386fc2c72a Mon Sep 17 00:00:00 2001 From: Duncaen Date: Mon, 8 Jul 2019 12:53:19 +0200 Subject: [PATCH] New package: knot-2.8.2 --- common/shlibs | 4 +++ srcpkgs/knot-utils | 1 + srcpkgs/knot/files/knotd/run | 4 +++ srcpkgs/knot/template | 62 ++++++++++++++++++++++++++++++++++++ srcpkgs/libknot | 1 + srcpkgs/libknot-devel | 1 + 6 files changed, 73 insertions(+) create mode 120000 srcpkgs/knot-utils create mode 100644 srcpkgs/knot/files/knotd/run create mode 100644 srcpkgs/knot/template create mode 120000 srcpkgs/libknot create mode 120000 srcpkgs/libknot-devel diff --git a/common/shlibs b/common/shlibs index 5b1d9bf5a73..78d35ddf27a 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3476,3 +3476,7 @@ libgtk-4.so.0.9400.0 gtk4-3.94.0_1 libmodule.so.4 libmodule-4.1.0_1 libgnustep-gui.so.0.27 gnustep-gui-0.27.0_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 diff --git a/srcpkgs/knot-utils b/srcpkgs/knot-utils new file mode 120000 index 00000000000..1fef675b99d --- /dev/null +++ b/srcpkgs/knot-utils @@ -0,0 +1 @@ +knot \ No newline at end of file diff --git a/srcpkgs/knot/files/knotd/run b/srcpkgs/knot/files/knotd/run new file mode 100644 index 00000000000..85301ab0461 --- /dev/null +++ b/srcpkgs/knot/files/knotd/run @@ -0,0 +1,4 @@ +#!/bin/sh +[ -r ./conf ] && . ./conf +install -d -m0755 -o _knot -g _knot /run/knot +exec knotd ${OPTS} diff --git a/srcpkgs/knot/template b/srcpkgs/knot/template new file mode 100644 index 00000000000..43d0c403a7f --- /dev/null +++ b/srcpkgs/knot/template @@ -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 " +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 + } +} + diff --git a/srcpkgs/libknot b/srcpkgs/libknot new file mode 120000 index 00000000000..1fef675b99d --- /dev/null +++ b/srcpkgs/libknot @@ -0,0 +1 @@ +knot \ No newline at end of file diff --git a/srcpkgs/libknot-devel b/srcpkgs/libknot-devel new file mode 120000 index 00000000000..1fef675b99d --- /dev/null +++ b/srcpkgs/libknot-devel @@ -0,0 +1 @@ +knot \ No newline at end of file