libcanlock: Import development snapshot of version 3.2.2

Remove pkgsrc patches.

Changelog:

3.2.2      2021-01-03
           Namespace clash of internal functions with libc on NetBSD
            Changed internal API function names hmac* to RFC2104Hmac*
            Changed internal API function names hkdf* to RFC5869Hkdf*
            Library API and ABI are fully compatible if no undocumented
            functions are used.
           libcanlock-3.pc: Changed protocol in URL from http to https
This commit is contained in:
Michael Baeuerle 2021-01-04 18:02:30 +01:00
parent 6dbd89070f
commit 90454b08cb
6 changed files with 64 additions and 0 deletions

View File

@ -1846,6 +1846,7 @@ SUBDIR+= libbs2b
SUBDIR+= libbtctl
SUBDIR+= libc++
SUBDIR+= libc++-abi
SUBDIR+= libcanlock
SUBDIR+= libcdata
SUBDIR+= libcerror
SUBDIR+= libcfile

8
libcanlock/DESCR Normal file
View File

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

26
libcanlock/Makefile Normal file
View File

@ -0,0 +1,26 @@
# $NetBSD$
DISTNAME= libcanlock-3.2.2pre1
CATEGORIES= news
MASTER_SITES= http://micha.freeshell.org/libcanlock/src/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= micha@NetBSD.org
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
CONFIGURE_ARGS+= --disable-legacy-api
CONFIGURE_ARGS+= --enable-pc-files
CONFIGURE_ARGS+= --with-pkgconfigdir=${PREFIX}/lib/pkgconfig
# The header parsers are available as a separate package news/canlock-hp
CONFIGURE_ARGS+= --disable-hp
.include "../../mk/bsd.pkg.mk"

11
libcanlock/PLIST Normal file
View File

@ -0,0 +1,11 @@
@comment $NetBSD$
bin/canlock
include/libcanlock-3/canlock.h
lib/libcanlock.la
lib/pkgconfig/libcanlock-3.pc
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

12
libcanlock/buildlink3.mk Normal file
View File

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

6
libcanlock/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (libcanlock-3.2.2pre1.tar.bz2) = d990c695a40e2a0633cfcadf59e1ecf728d0ce89
RMD160 (libcanlock-3.2.2pre1.tar.bz2) = fe9837d748a6a9e3d79f24a2f94a58c89f23f5c3
SHA512 (libcanlock-3.2.2pre1.tar.bz2) = 11ab54bb38fb207d25af051f1ddd93337470e65494b8395d7e18295ef1f91ac9e2146c67075af22255024c6e9cf238b6d2b4f15267ba4a93f157e96dfca28862
Size (libcanlock-3.2.2pre1.tar.bz2) = 463407 bytes