pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/news/libcanlock news/libcanlock: import libcanlock-3.0.2
details: https://anonhg.NetBSD.org/pkgsrc/rev/97cc3a29938e
branches: trunk
changeset: 312158:97cc3a29938e
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Aug 27 15:14:03 2018 +0000
description:
news/libcanlock: import libcanlock-3.0.2
Packaged for wip by Michael B?uerle.
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.
diffstat:
news/libcanlock/DESCR | 8 ++++++++
news/libcanlock/Makefile | 25 +++++++++++++++++++++++++
news/libcanlock/PLIST | 10 ++++++++++
news/libcanlock/buildlink3.mk | 12 ++++++++++++
news/libcanlock/distinfo | 7 +++++++
news/libcanlock/patches/patch-src_secret.c | 16 ++++++++++++++++
6 files changed, 78 insertions(+), 0 deletions(-)
diffs (102 lines):
diff -r 70a5f0d7590c -r 97cc3a29938e news/libcanlock/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/news/libcanlock/DESCR Mon Aug 27 15:14:03 2018 +0000
@@ -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 -r 70a5f0d7590c -r 97cc3a29938e news/libcanlock/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/news/libcanlock/Makefile Mon Aug 27 15:14:03 2018 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2018/08/27 15:14:03 wiz Exp $
+
+DISTNAME= libcanlock-3.0.2
+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 -r 70a5f0d7590c -r 97cc3a29938e news/libcanlock/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/news/libcanlock/PLIST Mon Aug 27 15:14:03 2018 +0000
@@ -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 -r 70a5f0d7590c -r 97cc3a29938e news/libcanlock/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/news/libcanlock/buildlink3.mk Mon Aug 27 15:14:03 2018 +0000
@@ -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 -r 70a5f0d7590c -r 97cc3a29938e news/libcanlock/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/news/libcanlock/distinfo Mon Aug 27 15:14:03 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/08/27 15:14:03 wiz Exp $
+
+SHA1 (libcanlock-3.0.2.tar.bz2) = b05cbef7f90b7d7de7edb06ebc017c3f29026e9b
+RMD160 (libcanlock-3.0.2.tar.bz2) = b388add68a74bc82a1179ebeb1ccbdf8f9dc61b4
+SHA512 (libcanlock-3.0.2.tar.bz2) = 319feddfa726b767dedcf5709b51d5dd787c32041b200243f8eb09918ab1f85b22102ddc6cc3148ac2af797a294ed6a52819486596b77093e0a92231b72644e9
+Size (libcanlock-3.0.2.tar.bz2) = 317428 bytes
+SHA1 (patch-src_secret.c) = c5319326b518bd9de4a4763acdbf3d848a3e238c
diff -r 70a5f0d7590c -r 97cc3a29938e news/libcanlock/patches/patch-src_secret.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/news/libcanlock/patches/patch-src_secret.c Mon Aug 27 15:14:03 2018 +0000
@@ -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