pkgsrc-Changes archive

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

CVS commit: pkgsrc/news/libcanlock



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 <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.


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.

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 <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.
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@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"
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 */
+ 



Home | Main Index | Thread Index | Old Index