pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
knat: Working with new version and planing with buildlink
Module Name: pkgsrc-wip
Committed By: Marcin Gondek <drixter%e-utp.net@localhost>
Pushed By: drixter
Date: Fri Jun 12 16:38:40 2026 +0200
Changeset: 9249221527c9025035893ae9547724c80c06174a
Added Files:
knot/DESCR
knot/Makefile
knot/PLIST
knot/TODO
knot/buildlink3.mk
knot/distinfo
knot/files/knot.sh
knot/patches/patch-samples_Makefile.in
Log Message:
knat: Working with new version and planing with buildlink
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9249221527c9025035893ae9547724c80c06174a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
knot/DESCR | 3 +
knot/Makefile | 74 +++++++++++++++++++++++
knot/PLIST | 105 +++++++++++++++++++++++++++++++++
knot/TODO | 3 +
knot/buildlink3.mk | 38 ++++++++++++
knot/distinfo | 6 ++
knot/files/knot.sh | 41 +++++++++++++
knot/patches/patch-samples_Makefile.in | 27 +++++++++
8 files changed, 297 insertions(+)
diffs:
diff --git a/knot/DESCR b/knot/DESCR
new file mode 100644
index 0000000000..df2a406fdc
--- /dev/null
+++ b/knot/DESCR
@@ -0,0 +1,3 @@
+Knot DNS is a high-performance authoritative-only DNS server
+which supports all key features of the domain name system including
+zone transfers, dynamic updates and DNSSEC.
diff --git a/knot/Makefile b/knot/Makefile
new file mode 100644
index 0000000000..6ef7dd49d5
--- /dev/null
+++ b/knot/Makefile
@@ -0,0 +1,74 @@
+# $NetBSD: Makefile,v 1.98 2026/05/14 16:41:45 ryoon Exp $
+
+DISTNAME= knot-3.5.4
+CATEGORIES= net
+MASTER_SITES= https://knot-dns.nic.cz/release/
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.knot-dns.cz/
+COMMENT= CZ.NIC Knot (auth) DNS server
+LICENSE= gnu-gpl-v2
+
+FORCE_C_STD= c11
+
+BUILD_DEFS+= VARBASE
+
+GNU_CONFIGURE= yes
+#CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
+#CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}/knot
+CONFIGURE_ARGS+= --with-rundir=${VARBASE}/run/knot
+CONFIGURE_ARGS+= --with-storage=${VARBASE}/knot/lib
+CONFIGURE_ARGS+= --with-urcu=${BUILDLINK_PREFIX.userspace-rcu}
+CONFIGURE_ARGS+= --with-libidn=${BUILDLINK_PREFIX.libidn}
+CONFIGURE_ARGS+= --with-libnghttp2=${BUILDLINK_PREFIX.nghttp2}
+
+CONFIGURE_ARGS.NetBSD+= --enable-recvmmsg=no
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "i386"
+CFLAGS+= -march=i586
+.endif
+
+USE_LIBTOOL= yes
+USE_TOOLS+= bison flex gmake pkg-config
+
+.include "../../lang/python/extension.mk"
+.include "../../lang/python/application.mk"
+
+PKGCONFIG_OVERRIDE= src/dnssec/libdnssec.pc.in
+PKGCONFIG_OVERRIDE+= src/knotd.pc.in
+PKGCONFIG_OVERRIDE+= src/libknot.pc.in
+PKGCONFIG_OVERRIDE+= src/zscanner/libzscanner.pc.in
+
+RCD_SCRIPTS= knot
+
+EGDIR= ${PREFIX}/share/examples/knot
+PKG_SYSCONFSUBDIR= knot
+
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= samples/Makefile.in
+SUBST_STAGE.paths= pre-configure
+SUBST_VARS.paths= EGDIR
+
+CONF_FILES= ${EGDIR}/knot.sample.conf \
+ ${PKG_SYSCONFDIR}/knot.conf
+CONF_FILES+= ${EGDIR}/example.com.zone \
+ ${PKG_SYSCONFDIR}/example.com.zone
+
+CHECK_WRKREF_SKIP+= bin/* lib/* sbin/*
+
+INSTALLATION_DIRS= ${EGDIR}
+OWN_DIRS+= ${VARBASE}/knot
+
+.include "../../databases/lmdb/buildlink3.mk"
+.include "../../devel/editline/buildlink3.mk"
+.include "../../devel/libidn/buildlink3.mk"
+.include "../../www/nghttp2/buildlink3.mk"
+.include "../../devel/userspace-rcu/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/knot/PLIST b/knot/PLIST
new file mode 100644
index 0000000000..323934e72e
--- /dev/null
+++ b/knot/PLIST
@@ -0,0 +1,105 @@
+@comment $NetBSD: PLIST,v 1.20 2024/10/24 13:43:09 ryoon Exp $
+bin/kdig
+bin/khost
+bin/knsec3hash
+bin/knsupdate
+bin/kzonecheck
+bin/kzonesign
+include/knot/module.h
+include/libdnssec/binary.h
+include/libdnssec/crypto.h
+include/libdnssec/digest.h
+include/libdnssec/dnssec.h
+include/libdnssec/error.h
+include/libdnssec/key.h
+include/libdnssec/keyid.h
+include/libdnssec/keystore.h
+include/libdnssec/keytag.h
+include/libdnssec/nsec.h
+include/libdnssec/pem.h
+include/libdnssec/random.h
+include/libdnssec/sign.h
+include/libdnssec/tsig.h
+include/libdnssec/version.h
+include/libknot/attribute.h
+include/libknot/codes.h
+include/libknot/consts.h
+include/libknot/control/control.h
+include/libknot/cookies.h
+include/libknot/db/db.h
+include/libknot/db/db_lmdb.h
+include/libknot/db/db_trie.h
+include/libknot/descriptor.h
+include/libknot/dname.h
+include/libknot/dynarray.h
+include/libknot/endian.h
+include/libknot/errcode.h
+include/libknot/error.h
+include/libknot/libknot.h
+include/libknot/lookup.h
+include/libknot/mm_ctx.h
+include/libknot/packet/compr.h
+include/libknot/packet/pkt.h
+include/libknot/packet/rrset-wire.h
+include/libknot/packet/wire.h
+include/libknot/probe/data.h
+include/libknot/probe/probe.h
+include/libknot/quic/tls.h
+include/libknot/quic/tls_common.h
+include/libknot/rdata.h
+include/libknot/rdataset.h
+include/libknot/rrset-dump.h
+include/libknot/rrset.h
+include/libknot/rrtype/dnskey.h
+include/libknot/rrtype/ds.h
+include/libknot/rrtype/naptr.h
+include/libknot/rrtype/nsec.h
+include/libknot/rrtype/nsec3.h
+include/libknot/rrtype/nsec3param.h
+include/libknot/rrtype/opt.h
+include/libknot/rrtype/rdname.h
+include/libknot/rrtype/rrsig.h
+include/libknot/rrtype/soa.h
+include/libknot/rrtype/svcb.h
+include/libknot/rrtype/tsig.h
+include/libknot/rrtype/zonemd.h
+include/libknot/tsig-op.h
+include/libknot/tsig.h
+include/libknot/version.h
+include/libknot/wire.h
+include/libknot/xdp.h
+include/libknot/xdp/tcp_iobuf.h
+include/libknot/yparser/yparser.h
+include/libknot/yparser/ypformat.h
+include/libknot/yparser/ypschema.h
+include/libknot/yparser/yptrafo.h
+include/libzscanner/error.h
+include/libzscanner/scanner.h
+include/libzscanner/version.h
+lib/libdnssec.la
+lib/libknot.la
+lib/libzscanner.la
+lib/pkgconfig/knotd.pc
+lib/pkgconfig/libdnssec.pc
+lib/pkgconfig/libknot.pc
+lib/pkgconfig/libzscanner.pc
+man/man1/kdig.1
+man/man1/khost.1
+man/man1/knsec3hash.1
+man/man1/knsupdate.1
+man/man1/kzonecheck.1
+man/man1/kzonesign.1
+man/man5/knot.conf.5
+man/man8/kcatalogprint.8
+man/man8/keymgr.8
+man/man8/kjournalprint.8
+man/man8/knotc.8
+man/man8/knotd.8
+sbin/kcatalogprint
+sbin/keymgr
+sbin/kjournalprint
+sbin/knotc
+sbin/knotd
+share/examples/knot/example.com.zone
+share/examples/knot/knot.sample.conf
+@pkgdir etc/knot
diff --git a/knot/TODO b/knot/TODO
new file mode 100644
index 0000000000..fd82208750
--- /dev/null
+++ b/knot/TODO
@@ -0,0 +1,3 @@
+Check that this works
+Polish buildlink
+
diff --git a/knot/buildlink3.mk b/knot/buildlink3.mk
new file mode 100644
index 0000000000..af52addb74
--- /dev/null
+++ b/knot/buildlink3.mk
@@ -0,0 +1,38 @@
+# $NetBSD$
+# XXX
+# XXX This file was created automatically using createbuildlink-3.19.
+# XXX After this file has been verified as correct, the comment lines
+# XXX beginning with "XXX" should be removed. Please do not commit
+# XXX unverified buildlink3.mk files.
+
+BUILDLINK_TREE+= knot
+
+.if !defined(KNOT_BUILDLINK3_MK)
+KNOT_BUILDLINK3_MK:=
+
+# XXX
+# XXX Packages that only install static libraries or headers should
+# XXX include the following line:
+# XXX
+# XXX BUILDLINK_DEPMETHOD.knot?= build
+
+BUILDLINK_API_DEPENDS.knot+= knot>=3.5.4
+BUILDLINK_PKGSRCDIR.knot?= ../../net/knot
+
+# XXX
+# XXX Uncomment and keep only the buildlink3 lines below which are directly
+# XXX needed for dependencies to compile, link, and run. If this package
+# XXX provides a wrappered API or otherwise does not expose the APIs of the
+# XXX buildlink3 lines below to dependencies, remove them.
+# XXX
+.include "../../databases/lmdb/buildlink3.mk"
+.include "../../devel/editline/buildlink3.mk"
+.include "../../devel/libidn/buildlink3.mk"
+.include "../../www/nghttp2/buildlink3.mk"
+.include "../../devel/userspace-rcu/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
+.endif # KNOT_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -knot
diff --git a/knot/distinfo b/knot/distinfo
new file mode 100644
index 0000000000..664f58e397
--- /dev/null
+++ b/knot/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.52 2026/02/02 12:56:21 ryoon Exp $
+
+BLAKE2s (knot-3.5.4.tar.xz) = c015b8a28d91c7db4bdeb7b79b039be7fbec6509fcf0a6e70b27ce6a88518bbc
+SHA512 (knot-3.5.4.tar.xz) = 2dd51cc2d5c80a9570a8cd89cf094e7445ba60cc44df8152a932da5be2e8734a4c3916d6c36e6dea74031afab5d2af52e64bc7ce9efb93efe752c54ad5a3a818
+Size (knot-3.5.4.tar.xz) = 1767940 bytes
+SHA1 (patch-samples_Makefile.in) = 499b8742dbd948e489b01d512bc7a8d8e4fe2e7b
diff --git a/knot/files/knot.sh b/knot/files/knot.sh
new file mode 100755
index 0000000000..e946d553f9
--- /dev/null
+++ b/knot/files/knot.sh
@@ -0,0 +1,41 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: knot.sh,v 1.3 2015/10/26 19:23:08 pettai Exp $
+#
+# PROVIDE: knot
+# REQUIRE: NETWORKING syslogd
+# BEFORE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="knot"
+rcvar=${name}
+command="@PREFIX@/sbin/knotc"
+knotd="@PREFIX@/sbin/knotd"
+command_args=""
+pidfile="@VARBASE@/knot/${name}.pid"
+start_precmd="knot_precmd"
+extra_commands="reload"
+start_cmd="$knotd -d"
+stop_cmd="$command stop"
+reload_cmd="$command reload"
+status_cmd="$command status"
+
+knot_precmd()
+{
+ if [ ! -d @VARBASE@/run/knot ]; then
+ @MKDIR@ @VARBASE@/run/knot
+ @CHMOD@ 0750 @VARBASE@/run/knot
+ @CHOWN@ root:wheel @VARBASE@/run/knot
+ fi
+}
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${knot_flags} ${command_args}
+fi
diff --git a/knot/patches/patch-samples_Makefile.in b/knot/patches/patch-samples_Makefile.in
new file mode 100644
index 0000000000..7fec05437c
--- /dev/null
+++ b/knot/patches/patch-samples_Makefile.in
@@ -0,0 +1,27 @@
+$NetBSD: patch-samples_Makefile.in,v 1.6 2018/03/08 14:30:37 pettai Exp $
+
+Install sample config where pkgsrc typically install examples
+
+--- samples/Makefile.in.orig 2018-01-02 11:09:04.000000000 +0100
++++ samples/Makefile.in
+@@ -287,6 +287,7 @@
+ srcdir = @srcdir@
+ storage_dir = @storage_dir@
+ sysconfdir = @sysconfdir@
++EGDIR = @EGDIR@
+ systemd_CFLAGS = @systemd_CFLAGS@
+ systemd_LIBS = @systemd_LIBS@
+ target_alias = @target_alias@
+@@ -507,9 +508,9 @@
+ mv $@.tmp $@
+
+ @HAVE_DAEMON_TRUE@install-data-local: knot.sample.conf
+-@HAVE_DAEMON_TRUE@ if [ \! -f $(DESTDIR)/$(config_dir)/knot.sample.conf ]; then \
+-@HAVE_DAEMON_TRUE@ $(INSTALL) -d $(DESTDIR)/$(config_dir); \
+-@HAVE_DAEMON_TRUE@ $(INSTALL_DATA) knot.sample.conf $(srcdir)/example.com.zone $(DESTDIR)/$(config_dir); \
++@HAVE_DAEMON_TRUE@ if [ \! -f $(DESTDIR)/$(EGDIR)/knot.sample.conf ]; then \
++@HAVE_DAEMON_TRUE@ $(INSTALL) -d $(DESTDIR)/$(EGDIR); \
++@HAVE_DAEMON_TRUE@ $(INSTALL_DATA) knot.sample.conf $(srcdir)/example.com.zone $(DESTDIR)/$(EGDIR); \
+ @HAVE_DAEMON_TRUE@ fi
+ @HAVE_DAEMON_TRUE@uninstall-local:
+ @HAVE_DAEMON_TRUE@ -rm -rf $(DESTDIR)/$(config_dir)/knot.sample.conf \
Home |
Main Index |
Thread Index |
Old Index