pkgsrc-WIP-changes archive

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

libcanlock: Import snapshot 3.3.0pre18



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Fri Oct 1 19:47:40 2021 +0200
Changeset:	e96a2188c9591b746bdc3ec0f21bc357ac26aba3

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

Log Message:
libcanlock: Import snapshot 3.3.0pre18

New API function cl_verify_multi() can check multiple keys against
multiple locks.

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

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

diffstat:
 Makefile                 |  1 +
 libcanlock/DESCR         |  8 ++++++++
 libcanlock/Makefile      | 25 +++++++++++++++++++++++++
 libcanlock/PLIST         | 12 ++++++++++++
 libcanlock/buildlink3.mk | 12 ++++++++++++
 libcanlock/distinfo      |  6 ++++++
 6 files changed, 64 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 833cd80280..b9d07cdcf8 100644
--- a/Makefile
+++ b/Makefile
@@ -2009,6 +2009,7 @@ SUBDIR+=	libbs2b
 SUBDIR+=	libbtctl
 SUBDIR+=	libc++
 SUBDIR+=	libc++-abi
+SUBDIR+=	libcanlock
 SUBDIR+=	libcdata
 SUBDIR+=	libcerror
 SUBDIR+=	libcfile
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..d32b5ef52c
--- /dev/null
+++ b/libcanlock/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME=	libcanlock-3.3.0pre18
+CATEGORIES=	news
+MASTER_SITES=	http://micha.freeshell.org/libcanlock/src/
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	micha%NetBSD.org@localhost
+HOMEPAGE=	http://micha.freeshell.org/libcanlock/
+COMMENT=	Standalone RFC 8315 Netnews Cancel-Lock implementation
+LICENSE=	mit AND modified-bsd
+
+USE_LANGUAGES+=		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
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/libcanlock/PLIST b/libcanlock/PLIST
new file mode 100644
index 0000000000..bb8795dcd5
--- /dev/null
+++ b/libcanlock/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD$
+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/buildlink3.mk b/libcanlock/buildlink3.mk
new file mode 100644
index 0000000000..b23ab33646
--- /dev/null
+++ b/libcanlock/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libcanlock
+
+.if !defined(LIBCANLOCK_BUILDLINK3_MK)
+LIBCANLOCK_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libcanlock+=	libcanlock>=3.3.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..bc1a72f78a
--- /dev/null
+++ b/libcanlock/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.7 2021/01/11 12:16:36 micha Exp $
+
+SHA1 (libcanlock-3.3.0pre18.tar.bz2) = 76b18ef438531b71513916745158561d8420f04f
+RMD160 (libcanlock-3.3.0pre18.tar.bz2) = a65c2c120812912f85f37d7f331351762bcc5e6f
+SHA512 (libcanlock-3.3.0pre18.tar.bz2) = f9cbf204990957239309163ac868d6df62f1f421d4a0080c06d4372df0f6ed45f7f292fa8ca8789e6fbb422f94f5ab29f374b4a924d2e1132d97ee60aaa5a4a3
+Size (libcanlock-3.3.0pre18.tar.bz2) = 620792 bytes


Home | Main Index | Thread Index | Old Index