diff options
author | wiz <wiz@pkgsrc.org> | 2018-08-27 15:14:03 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2018-08-27 15:14:03 +0000 |
commit | 7e9274d22e992da2ca3f623bbc37c36566751fe6 (patch) | |
tree | 27ec38603bd6aecb20ec2014ba802a068a5fbd7b /news | |
parent | 2e1afc6fd248bfb4b813bf613b6e45d9702f8ee0 (diff) | |
download | pkgsrc-7e9274d22e992da2ca3f623bbc37c36566751fe6.tar.gz |
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 (limited to 'news')
-rw-r--r-- | news/libcanlock/DESCR | 8 | ||||
-rw-r--r-- | news/libcanlock/Makefile | 25 | ||||
-rw-r--r-- | news/libcanlock/PLIST | 10 | ||||
-rw-r--r-- | news/libcanlock/buildlink3.mk | 12 | ||||
-rw-r--r-- | news/libcanlock/distinfo | 7 | ||||
-rw-r--r-- | news/libcanlock/patches/patch-src_secret.c | 16 |
6 files changed, 78 insertions, 0 deletions
diff --git a/news/libcanlock/DESCR b/news/libcanlock/DESCR new file mode 100644 index 00000000000..c6561956726 --- /dev/null +++ b/news/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/news/libcanlock/Makefile b/news/libcanlock/Makefile new file mode 100644 index 00000000000..c00abe86cec --- /dev/null +++ b/news/libcanlock/Makefile @@ -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" diff --git a/news/libcanlock/PLIST b/news/libcanlock/PLIST new file mode 100644 index 00000000000..fdfca9c1f46 --- /dev/null +++ b/news/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/news/libcanlock/buildlink3.mk b/news/libcanlock/buildlink3.mk new file mode 100644 index 00000000000..64d2e00af11 --- /dev/null +++ b/news/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/news/libcanlock/distinfo b/news/libcanlock/distinfo new file mode 100644 index 00000000000..94d83731ffa --- /dev/null +++ b/news/libcanlock/distinfo @@ -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 --git a/news/libcanlock/patches/patch-src_secret.c b/news/libcanlock/patches/patch-src_secret.c new file mode 100644 index 00000000000..75248f4edf0 --- /dev/null +++ b/news/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 */ + |