Received: by mail.netbsd.org (Postfix, from userid 605) id 9D2C78515F; Mon, 27 Aug 2018 15:14:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 8C75684FA3 for ; Mon, 27 Aug 2018 15:14:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id ct5znJt_SFtD for ; Mon, 27 Aug 2018 15:14:03 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 788D684F96 for ; Mon, 27 Aug 2018 15:14:03 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 7309AFBF8; Mon, 27 Aug 2018 15:14:03 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_15353828432580" MIME-Version: 1.0 Date: Mon, 27 Aug 2018 15:14:03 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/news/libcanlock To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20180827151403.7309AFBF8@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_15353828432580 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Module Name: pkgsrc Committed By: wiz Date: Mon Aug 27 15:14:03 UTC 2018 Added Files: pkgsrc/news/libcanlock: DESCR Makefile PLIST buildlink3.mk distinfo pkgsrc/news/libcanlock/patches: patch-src_secret.c Log Message: 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 . 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. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/news/libcanlock/DESCR \ pkgsrc/news/libcanlock/Makefile pkgsrc/news/libcanlock/PLIST \ pkgsrc/news/libcanlock/buildlink3.mk pkgsrc/news/libcanlock/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/news/libcanlock/patches/patch-src_secret.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_15353828432580 Content-Disposition: inline Content-Length: 3904 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/news/libcanlock/DESCR diff -u /dev/null pkgsrc/news/libcanlock/DESCR:1.1 --- /dev/null Mon Aug 27 15:14:03 2018 +++ pkgsrc/news/libcanlock/DESCR Mon Aug 27 15:14:03 2018 @@ -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 . + +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. Index: pkgsrc/news/libcanlock/Makefile diff -u /dev/null pkgsrc/news/libcanlock/Makefile:1.1 --- /dev/null Mon Aug 27 15:14:03 2018 +++ pkgsrc/news/libcanlock/Makefile Mon Aug 27 15:14:03 2018 @@ -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 +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" Index: pkgsrc/news/libcanlock/PLIST diff -u /dev/null pkgsrc/news/libcanlock/PLIST:1.1 --- /dev/null Mon Aug 27 15:14:03 2018 +++ pkgsrc/news/libcanlock/PLIST Mon Aug 27 15:14:03 2018 @@ -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 Index: pkgsrc/news/libcanlock/buildlink3.mk diff -u /dev/null pkgsrc/news/libcanlock/buildlink3.mk:1.1 --- /dev/null Mon Aug 27 15:14:03 2018 +++ pkgsrc/news/libcanlock/buildlink3.mk Mon Aug 27 15:14:03 2018 @@ -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 Index: pkgsrc/news/libcanlock/distinfo diff -u /dev/null pkgsrc/news/libcanlock/distinfo:1.1 --- /dev/null Mon Aug 27 15:14:03 2018 +++ pkgsrc/news/libcanlock/distinfo Mon Aug 27 15:14:03 2018 @@ -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 Index: pkgsrc/news/libcanlock/patches/patch-src_secret.c diff -u /dev/null pkgsrc/news/libcanlock/patches/patch-src_secret.c:1.1 --- /dev/null Mon Aug 27 15:14:03 2018 +++ pkgsrc/news/libcanlock/patches/patch-src_secret.c Mon Aug 27 15:14:03 2018 @@ -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 */ + --_----------=_15353828432580--