pkgsrc-WIP-changes archive

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

libcanlock: Update to 3.1.0



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Mon Feb 4 16:05:47 2019 +0100
Changeset:	a430a24e78754d5e89e330076bd0a62e3be34122

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

Log Message:
libcanlock: Update to 3.1.0

Option "--disable-hp" added (header parsers will stay in package canlock-hp).

Changelog
=========

3.1.0      2019-01-26
           Merged canlock-hp into libcanlock package (now tracking the version
            number of the libcanlock package)
           Configure option "--disable-hp" added (Default is set to build
            canlock-hp, use this option to get the behaviour from 3.0.x)
           Manual page of canlock-hfp utility updated
           Library API and ABI are unchanged

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

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                   | 27 +++++++++++++++++++++++++++
 libcanlock/PLIST                      | 10 ++++++++++
 libcanlock/buildlink3.mk              | 12 ++++++++++++
 libcanlock/distinfo                   |  7 +++++++
 libcanlock/patches/patch-src_secret.c | 16 ++++++++++++++++
 7 files changed, 81 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 70eab9897a..e6a99d32f2 100644
--- a/Makefile
+++ b/Makefile
@@ -1773,6 +1773,7 @@ SUBDIR+=	libbsd
 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..3e712bd89e
--- /dev/null
+++ b/libcanlock/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD$
+
+DISTNAME=	libcanlock-3.1.0
+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
+# The header parsers in the separate news/canlock-hp package
+CONFIGURE_ARGS+=	--disable-hp
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/libcanlock/PLIST b/libcanlock/PLIST
new file mode 100644
index 0000000000..d0b67b13f2
--- /dev/null
+++ b/libcanlock/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+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/buildlink3.mk b/libcanlock/buildlink3.mk
new file mode 100644
index 0000000000..0a819a3464
--- /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.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..112ef6a1ed
--- /dev/null
+++ b/libcanlock/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (libcanlock-3.1.0.tar.bz2) = 53d0bf126ae4169f704a4e6bc9154eb57d36008b
+RMD160 (libcanlock-3.1.0.tar.bz2) = 56021643dedb418cc056223ea7d5cbd95e5c27b0
+SHA512 (libcanlock-3.1.0.tar.bz2) = 46f0806ff24ebf9f1cc497c44522dc0d8f56b290f8c8d949404b676724307b2b9a75e93350360e01a6b80fb804f6cd6edb6c4786221c8ec5506fecb3479d89bb
+Size (libcanlock-3.1.0.tar.bz2) = 487745 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..3f2841908f
--- /dev/null
+++ b/libcanlock/patches/patch-src_secret.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+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