git: 577176a3b87e - main - dns/knot3-lib: revert Remove port

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Thu, 08 Aug 2024 17:35:41 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=577176a3b87e05d29c69ac0605e3f0d1af8a5df8

commit 577176a3b87e05d29c69ac0605e3f0d1af8a5df8
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2024-08-08 17:33:38 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2024-08-08 17:35:17 +0000

    dns/knot3-lib: revert Remove port
    
    This reverts commit 8d0a20fc0979c502ff1e5c0aaeb943051bd56b7d.
    dns/knot-resolver still depends on the port despite the work in PR 277540
---
 MOVED                   |  1 -
 dns/Makefile            |  1 +
 dns/knot3-lib/Makefile  | 12 +++++++
 dns/knot3-lib/pkg-descr |  2 ++
 dns/knot3-lib/pkg-plist | 84 +++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 99 insertions(+), 1 deletion(-)

diff --git a/MOVED b/MOVED
index 3d24ddfad6dd..7984292e82c3 100644
--- a/MOVED
+++ b/MOVED
@@ -3427,4 +3427,3 @@ science/mercantile|science/py-mercantile|2024-08-04|Move science/mercantile to s
 devel/py-jsonschema417|devel/py-jsonschema|2024-08-04|Remove obsoleted port. Use devel/py-jsonschema instead
 net/ns3||2024-08-07|Has expired: Outdated and unmaintained for years
 games/manaplus||2024-08-07|Has expired: Fails to build with libxml2 2.13.2 (PR 279705)
-dns/knot3-lib||2024-08-08|Deprecated: not needed for dns/knot3 anymore
diff --git a/dns/Makefile b/dns/Makefile
index 99bbca2123ce..e2fac6edf3ed 100644
--- a/dns/Makefile
+++ b/dns/Makefile
@@ -84,6 +84,7 @@
     SUBDIR += knock
     SUBDIR += knot-resolver
     SUBDIR += knot3
+    SUBDIR += knot3-lib
     SUBDIR += ldapdns
     SUBDIR += ldns
     SUBDIR += letsdns
diff --git a/dns/knot3-lib/Makefile b/dns/knot3-lib/Makefile
new file mode 100644
index 000000000000..614bb4ffd8d7
--- /dev/null
+++ b/dns/knot3-lib/Makefile
@@ -0,0 +1,12 @@
+# Define PORTREVISION in ${MASTERDIR}
+COMMENT=	Knot3 lib (required by knot-resolver)
+PKGNAMESUFFIX=	3-lib
+
+MASTERDIR=	${.CURDIR}/../knot3
+DESCR=		${.CURDIR}/pkg-descr
+PLIST=		${.CURDIR}/pkg-plist
+
+LIB_ONLY=	yes
+COMPONENT=	-lib
+
+.include "${MASTERDIR}/Makefile"
diff --git a/dns/knot3-lib/pkg-descr b/dns/knot3-lib/pkg-descr
new file mode 100644
index 000000000000..ec37d10a1777
--- /dev/null
+++ b/dns/knot3-lib/pkg-descr
@@ -0,0 +1,2 @@
+This port allows to install only libknot, which comes along with
+Knot DNS (authoritative), but also is a depency of knot-resolver
diff --git a/dns/knot3-lib/pkg-plist b/dns/knot3-lib/pkg-plist
new file mode 100644
index 000000000000..f1c1225088e6
--- /dev/null
+++ b/dns/knot3-lib/pkg-plist
@@ -0,0 +1,84 @@
+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/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.a
+lib/libdnssec.so
+lib/libdnssec.so.9
+lib/libdnssec.so.9.0.0
+lib/libknot.a
+lib/libknot.so
+lib/libknot.so.14
+lib/libknot.so.14.0.0
+lib/libzscanner.a
+lib/libzscanner.so
+lib/libzscanner.so.4
+lib/libzscanner.so.4.0.0
+libdata/pkgconfig/libdnssec.pc
+libdata/pkgconfig/libknot.pc
+libdata/pkgconfig/libzscanner.pc