pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Added libcanlock.
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By: micha
Date: Thu Jul 26 15:11:43 2018 +0200
Changeset: 5fe1e74c82da9c1c1df486a54af0020a4000cc53
Modified Files:
Makefile
Added Files:
libcanlock/DESCR
libcanlock/Makefile
libcanlock/PLIST
libcanlock/README
libcanlock/distinfo
Log Message:
Added libcanlock.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5fe1e74c82da9c1c1df486a54af0020a4000cc53
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
libcanlock/DESCR | 8 ++++++++
libcanlock/Makefile | 19 +++++++++++++++++++
libcanlock/PLIST | 10 ++++++++++
libcanlock/README | 30 ++++++++++++++++++++++++++++++
libcanlock/distinfo | 6 ++++++
6 files changed, 74 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 8e4911435c..1a95334270 100644
--- a/Makefile
+++ b/Makefile
@@ -1633,6 +1633,7 @@ SUBDIR+= libbsd
SUBDIR+= libbtctl
SUBDIR+= libc++
SUBDIR+= libc++-abi
+SUBDIR+= libcanlock
SUBDIR+= libcdata
SUBDIR+= libcerror
SUBDIR+= libcfile
diff --git a/libcanlock/DESCR b/libcanlock/DESCR
new file mode 100644
index 0000000000..c656195672
--- /dev/null
+++ b/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/libcanlock/Makefile b/libcanlock/Makefile
new file mode 100644
index 0000000000..771ab7056b
--- /dev/null
+++ b/libcanlock/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+DISTNAME= libcanlock-3.0.1
+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
+# Part are unter BSD-3-clause license. Can multiple licenses be specified?
+LICENSE= mit
+
+USE_LANGUAGES+= c99
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/libcanlock/PLIST b/libcanlock/PLIST
new file mode 100644
index 0000000000..d0b67b13f2
--- /dev/null
+++ b/libcanlock/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+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/libcanlock/README b/libcanlock/README
new file mode 100644
index 0000000000..a6cd9544d5
--- /dev/null
+++ b/libcanlock/README
@@ -0,0 +1,30 @@
+1) General
+libcanlock is a standalone implementation without external dependencies.
+If your program already uses a library that contains functions for hash and
+base64 algorithms (e.g. OpenSSL), it is recommended that you use them instead
+(to avoid code duplication).
+
+
+2) System requirements
+- POSIX.1-2001 compliant operating system
+- C99 compiler with 'int' data type of at least 32 bit width
+
+
+3) API
+Since version 3 there is a new API available (hash algorithm independent).
+Man pages for this API are installed together with the library.
+
+Anything that is not documented should be considered as internal and not
+part of the API. There is no portable way to hide all the internal stuff
+completely, but expect that a future version may no longer export it without
+notice.
+
+
+4) Backward compatibility
+The old API from version 2 is still emulated, but it is now deprecated and
+undocumented.
+
+Including the header file from the new location, recompile and relink should
+be sufficient to port an existing application to version 3 of the library.
+It is also possible to install both version 2 and version 3 of the library
+in parallel.
diff --git a/libcanlock/distinfo b/libcanlock/distinfo
new file mode 100644
index 0000000000..2ac8876fbd
--- /dev/null
+++ b/libcanlock/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (libcanlock-3.0.1.tar.bz2) = 609f3c5e6e5cefbe9c806c0372e258cb5a57d553
+RMD160 (libcanlock-3.0.1.tar.bz2) = c118b3ee8ac981e08102ebc105daaeba9d82b51b
+SHA512 (libcanlock-3.0.1.tar.bz2) = ccd4d81c49ab054359885eb1f8e65f1e978c4591a01dc280b029a5d8850b2b92895bd2c34c010da697946b27220f67f36346a6e2439b4e91a9da0c54bf08927c
+Size (libcanlock-3.0.1.tar.bz2) = 316579 bytes
Home |
Main Index |
Thread Index |
Old Index