pkgsrc-WIP-changes archive

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

libcanlock: Update to Version 3.0.3



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Thu Dec 6 12:48:15 2018 +0100
Changeset:	04605965161b741744a5bc4ee40a3ec7e5146e24

Added Files:
	libcanlock/DESCR
	libcanlock/Makefile
	libcanlock/PLIST
	libcanlock/README
	libcanlock/buildlink3.mk
	libcanlock/distinfo
	libcanlock/patches/patch-src_secret.c

Log Message:
libcanlock: Update to Version 3.0.3

This release fixes the build system to support cross builds.

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

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

diffstat:
 libcanlock/DESCR                      |  8 ++++++++
 libcanlock/Makefile                   | 25 +++++++++++++++++++++++++
 libcanlock/PLIST                      | 10 ++++++++++
 libcanlock/README                     |  1 +
 libcanlock/buildlink3.mk              | 12 ++++++++++++
 libcanlock/distinfo                   |  7 +++++++
 libcanlock/patches/patch-src_secret.c | 16 ++++++++++++++++
 7 files changed, 79 insertions(+)

diffs:
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..ef4d71eb32
--- /dev/null
+++ b/libcanlock/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2018/08/27 15:14:03 wiz Exp $
+
+DISTNAME=	libcanlock-3.0.3
+CATEGORIES=	news
+MASTER_SITES=	http://micha.freeshell.org/libcanlock/src/
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	michael.baeuerle%gmx.net@localhost
+HOMEPAGE=	http://micha.freeshell.org/libcanlock/
+COMMENT=	Standalone RFC 8315 Netnews Cancel-Lock implementation
+LICENSE=	mit AND modified-bsd
+
+USE_LANGUAGES+=	c99
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+
+TEST_TARGET=	test
+
+# Recent NetBSD has a namespace clash with its implementation defined extensions
+CFLAGS+=	-D_POSIX_C_SOURCE=200112L
+
+CONFIGURE_ARGS+=	--disable-legacy-api
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/libcanlock/PLIST b/libcanlock/PLIST
new file mode 100644
index 0000000000..fdfca9c1f4
--- /dev/null
+++ b/libcanlock/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2018/08/27 15:14:03 wiz Exp $
+bin/canlock
+include/libcanlock-3/canlock.h
+lib/libcanlock.la
+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
diff --git a/libcanlock/README b/libcanlock/README
new file mode 100644
index 0000000000..c66ae20d5a
--- /dev/null
+++ b/libcanlock/README
@@ -0,0 +1 @@
+Update for news/libcanlock.
diff --git a/libcanlock/buildlink3.mk b/libcanlock/buildlink3.mk
new file mode 100644
index 0000000000..64d2e00af1
--- /dev/null
+++ b/libcanlock/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/08/27 15:14:03 wiz Exp $
+
+BUILDLINK_TREE+=	libcanlock
+
+.if !defined(LIBCANLOCK_BUILDLINK3_MK)
+LIBCANLOCK_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libcanlock+=	libcanlock>=3.0.0
+BUILDLINK_PKGSRCDIR.libcanlock?=	../../news/libcanlock
+.endif	# LIBCANLOCK_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libcanlock
diff --git a/libcanlock/distinfo b/libcanlock/distinfo
new file mode 100644
index 0000000000..4b7b1bbeb4
--- /dev/null
+++ b/libcanlock/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/08/27 15:14:03 wiz Exp $
+
+SHA1 (libcanlock-3.0.3.tar.bz2) = 3a0e8fb6ba7a3c84a33ec5e7c0b130ab13d53d34
+RMD160 (libcanlock-3.0.3.tar.bz2) = 145ffc2142cbee86c8cf6801d3e413044eebff8c
+SHA512 (libcanlock-3.0.3.tar.bz2) = 121a451f08363e84bee140cdbe804fe2834aa5b3d30481ac6bfda1679e5ec4976bf1f1f6403ed0a91fe5166ced1b8d8401b488d2c4974388815b79fe97a32d03
+Size (libcanlock-3.0.3.tar.bz2) = 317727 bytes
+SHA1 (patch-src_secret.c) = c5319326b518bd9de4a4763acdbf3d848a3e238c
diff --git a/libcanlock/patches/patch-src_secret.c b/libcanlock/patches/patch-src_secret.c
new file mode 100644
index 0000000000..75248f4edf
--- /dev/null
+++ b/libcanlock/patches/patch-src_secret.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_secret.c,v 1.1 2018/08/27 15:14:03 wiz Exp $
+
+Do not mask implementation defined extensions from the namespace.
+
+--- src/secret.c.orig	2018-01-15 11:37:46.000000000 +0000
++++ src/secret.c
+@@ -29,6 +29,9 @@
+  * of the copyright holder.
+  */
+ 
++/* Make implementation defined extensions visible here */
++#undef _POSIX_C_SOURCE
++
+ /* C11 (if available) */
+ #define __STDC_WANT_LIB_EXT1__ 1  /*!< Request for Annex K */
+ 


Home | Main Index | Thread Index | Old Index