pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libcanlock: Import release candidate 3.3.2rc1



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Mon Jun 15 14:44:32 2026 +0200
Changeset:	6f854bc2547136506e0ba4a16414877c36c5cc8c

Modified Files:
	Makefile
Added Files:
	libcanlock/COMMIT_MSG
	libcanlock/DESCR
	libcanlock/Makefile
	libcanlock/PLIST
	libcanlock/TODO
	libcanlock/buildlink3.mk
	libcanlock/distinfo

Log Message:
libcanlock: Import release candidate 3.3.2rc1

3.3.2rc1   2026-06-14
           Bugfix: Modified declaration of RFC5869HkdfResult() in header
            to match the function definition
           Bugfix: Modified definition of RFC2104HmacResult() to match
            the function declaration in header
           Add support for C23 memset_explicit() to cl_clear_secret()
           Document that canlock-hp subpackage requires an US-ASCII
            based POSIX locale (EBCDIC is not supported)
           Add SPDX copyright and license identifiers for all files of
            the source tree. Note that the license terms are unchanged
            for all files that already contained such identifiers
           Some documentation files (like "README" and "ChangeLog")
            formerly had neither copyrights nor licenses assigned.
            No copyright and CC0-1.0 license are declared now
           Package is REUSE 3.3 conformant (according to "reuse lint"):
            <https://reuse.software/spec-3.3/>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6f854bc2547136506e0ba4a16414877c36c5cc8c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                 |  1 +
 libcanlock/COMMIT_MSG    | 18 ++++++++++++++++++
 libcanlock/DESCR         |  8 ++++++++
 libcanlock/Makefile      | 27 +++++++++++++++++++++++++++
 libcanlock/PLIST         | 12 ++++++++++++
 libcanlock/TODO          |  2 ++
 libcanlock/buildlink3.mk | 14 ++++++++++++++
 libcanlock/distinfo      |  5 +++++
 8 files changed, 87 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 7a570e8482..9f34325e58 100644
--- a/Makefile
+++ b/Makefile
@@ -2026,6 +2026,7 @@ SUBDIR+=	libbsd-solaris10
 SUBDIR+=	libbtctl
 SUBDIR+=	libc++
 SUBDIR+=	libc++-abi
+SUBDIR+=	libcanlock
 SUBDIR+=	libcdata
 SUBDIR+=	libcerror
 SUBDIR+=	libcfile
diff --git a/libcanlock/COMMIT_MSG b/libcanlock/COMMIT_MSG
new file mode 100644
index 0000000000..4ec62f75b7
--- /dev/null
+++ b/libcanlock/COMMIT_MSG
@@ -0,0 +1,18 @@
+news/libcanlock: Update to 3.3.2
+
+3.3.2rc1   2026-06-14
+           Bugfix: Modified declaration of RFC5869HkdfResult() in header
+            to match the function definition
+           Bugfix: Modified definition of RFC2104HmacResult() to match
+            the function declaration in header
+           Add support for C23 memset_explicit() to cl_clear_secret()
+           Document that canlock-hp subpackage requires an US-ASCII
+            based POSIX locale (EBCDIC is not supported)
+           Add SPDX copyright and license identifiers for all files of
+            the source tree. Note that the license terms are unchanged
+            for all files that already contained such identifiers
+           Some documentation files (like "README" and "ChangeLog")
+            formerly had neither copyrights nor licenses assigned.
+            No copyright and CC0-1.0 license are declared now
+           Package is REUSE 3.3 conformant (according to "reuse lint"):
+            <https://reuse.software/spec-3.3/>
diff --git a/libcanlock/DESCR b/libcanlock/DESCR
new file mode 100644
index 0000000000..c656195672
--- /dev/null
+++ b/libcanlock/DESCR
@@ -0,0 +1,8 @@
+libcanlock is a library for creating and verifying RFC 8315 Netnews
+Cancel-Locks. This implementation uses the recommended algorithm from
+Section 4 with HMAC based on the same hash function as <scheme>.
+
+A command line utility "canlock" is built together with the library.
+
+Additional header parsers (for the receiving side) are available in the
+package canlock-hp.
diff --git a/libcanlock/Makefile b/libcanlock/Makefile
new file mode 100644
index 0000000000..5eb1e889c6
--- /dev/null
+++ b/libcanlock/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD$
+
+DISTNAME=	libcanlock-3.3.2rc1
+CATEGORIES=	news
+MASTER_SITES=	http://micha.freeshell.org/libcanlock/src/
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	micha%NetBSD.org@localhost
+HOMEPAGE=	https://micha.freeshell.org/libcanlock/
+COMMENT=	Standalone RFC 8315 Netnews Cancel-Lock implementation
+LICENSE=	icu AND modified-bsd
+
+FORCE_C_STD=		c99
+USE_LIBTOOL=		yes
+
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--disable-legacy-api
+CONFIGURE_ARGS+=	--enable-pc-files
+CONFIGURE_ARGS+=	--with-pkgconfigdir=${PREFIX}/lib/pkgconfig
+# The header parsers are available as a separate package news/canlock-hp
+CONFIGURE_ARGS+=	--disable-hp
+
+TEST_TARGET=		test
+
+PKGCONFIG_OVERRIDE+=	libcanlock-3.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/libcanlock/PLIST b/libcanlock/PLIST
new file mode 100644
index 0000000000..388f12c296
--- /dev/null
+++ b/libcanlock/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.3 2021/12/03 10:50:56 micha Exp $
+bin/canlock
+include/libcanlock-3/canlock.h
+lib/libcanlock.la
+lib/pkgconfig/libcanlock-3.pc
+man/man1/canlock.1
+man/man3/cl_clear_secret.3
+man/man3/cl_get_key.3
+man/man3/cl_get_lock.3
+man/man3/cl_split.3
+man/man3/cl_verify.3
+man/man3/cl_verify_multi.3
diff --git a/libcanlock/TODO b/libcanlock/TODO
new file mode 100644
index 0000000000..c64cdc9e07
--- /dev/null
+++ b/libcanlock/TODO
@@ -0,0 +1,2 @@
+[ ] Test with NetBSD 11
+[ ] Wait for final release
diff --git a/libcanlock/buildlink3.mk b/libcanlock/buildlink3.mk
new file mode 100644
index 0000000000..c266971201
--- /dev/null
+++ b/libcanlock/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.2 2023/08/21 13:29:44 micha Exp $
+
+BUILDLINK_TREE+=	libcanlock
+
+.if !defined(LIBCANLOCK_BUILDLINK3_MK)
+LIBCANLOCK_BUILDLINK3_MK:=
+
+USE_CC_FEATURES+=	c99
+
+BUILDLINK_API_DEPENDS.libcanlock+=	libcanlock>=3.0.0
+BUILDLINK_PKGSRCDIR.libcanlock?=	../../wip/libcanlock
+.endif	# LIBCANLOCK_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libcanlock
diff --git a/libcanlock/distinfo b/libcanlock/distinfo
new file mode 100644
index 0000000000..600cdb7fdd
--- /dev/null
+++ b/libcanlock/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.12 2024/05/31 10:47:15 micha Exp $
+
+BLAKE2s (libcanlock-3.3.2rc1.tar.bz2) = 3aebe37e4a0abece38a07d7ad6f550715985faa60caeb5b27609c72a4bcfbd3c
+SHA512 (libcanlock-3.3.2rc1.tar.bz2) = 311f63397742ed45498c403f402aff607c8b131244d71f77fd6ec06691371b8b8ea4e144b60bf8790b9943111c876e8caafe04f337eacd320f0ccbfb783dbeeb
+Size (libcanlock-3.3.2rc1.tar.bz2) = 640580 bytes


Home | Main Index | Thread Index | Old Index