pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libcanlock: Package to test version 3.2.0rc1
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By: micha
Date: Mon Apr 27 15:31:31 2020 +0200
Changeset: 157a8b2838d5c0d18ce8e142184b8bbcdc1a9116
Modified Files:
Makefile
Added Files:
libcanlock/DESCR
libcanlock/Makefile
libcanlock/PLIST
libcanlock/TODO
libcanlock/buildlink3.mk
libcanlock/distinfo
libcanlock/patches/patch-README
libcanlock/patches/patch-src_secret.c
libcanlock/patches/patch-test_Makefile.am
Log Message:
libcanlock: Package to test version 3.2.0rc1
Changelog
=========
3.2.0 2020-04-27
Support for pkg-config with option "--enable-pc-files" added.
This option installs the pkg-config file "libcanlock-3.pc".
The standard option "--with-pkgconfigdir" can be used to specify
the target directory (Default behaviour is unchanged)
Shared library no longer exports internal symbols, if possible
(using #pragma GCC visibility)
Build system: Distributed autotools files updated
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=157a8b2838d5c0d18ce8e142184b8bbcdc1a9116
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 | 29 +++++++++++++++++++++++++++++
libcanlock/PLIST | 11 +++++++++++
libcanlock/TODO | 1 +
libcanlock/buildlink3.mk | 12 ++++++++++++
libcanlock/distinfo | 9 +++++++++
libcanlock/patches/patch-README | 15 +++++++++++++++
libcanlock/patches/patch-src_secret.c | 16 ++++++++++++++++
libcanlock/patches/patch-test_Makefile.am | 18 ++++++++++++++++++
10 files changed, 120 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 8268ff7945..77e27ba63f 100644
--- a/Makefile
+++ b/Makefile
@@ -1805,6 +1805,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..f669fa781d
--- /dev/null
+++ b/libcanlock/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+DISTNAME= libcanlock-3.2.0rc1
+CATEGORIES= news
+MASTER_SITES= http://micha.freeshell.org/libcanlock/src/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= micha%NetBSD.org@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
+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"
diff --git a/libcanlock/PLIST b/libcanlock/PLIST
new file mode 100644
index 0000000000..9cbabed0f4
--- /dev/null
+++ b/libcanlock/PLIST
@@ -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
diff --git a/libcanlock/TODO b/libcanlock/TODO
new file mode 100644
index 0000000000..7a71ad88a9
--- /dev/null
+++ b/libcanlock/TODO
@@ -0,0 +1 @@
+[ ] Make testsuite work again without exporting all internal symbols.
diff --git a/libcanlock/buildlink3.mk b/libcanlock/buildlink3.mk
new file mode 100644
index 0000000000..64d2e00af1
--- /dev/null
+++ b/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/libcanlock/distinfo b/libcanlock/distinfo
new file mode 100644
index 0000000000..25fdd4b026
--- /dev/null
+++ b/libcanlock/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.4 2020/01/07 12:15:13 micha Exp $
+
+SHA1 (libcanlock-3.2.0rc1.tar.bz2) = bb3c554a158d2e2fcd0f36b462c5e347a581e045
+RMD160 (libcanlock-3.2.0rc1.tar.bz2) = 600aae564a98472727e5ecf947fad533535bfaa4
+SHA512 (libcanlock-3.2.0rc1.tar.bz2) = 1584ba1b7ccb50de5f054a5c3b1885b4c898d8cfdfbf094fbf23fbc21b45199abc9d48e780ec393b43c70c87580ee25cf9324c865c18fa89a12fbc3598cc0b7f
+Size (libcanlock-3.2.0rc1.tar.bz2) = 462872 bytes
+SHA1 (patch-README) = fe230a17ac43a5fa58fcd24519c45cb5116822d1
+SHA1 (patch-src_secret.c) = c5319326b518bd9de4a4763acdbf3d848a3e238c
+SHA1 (patch-test_Makefile.am) = caa26b60e474e6d251ec6d94a4a9803a93d3f9ba
diff --git a/libcanlock/patches/patch-README b/libcanlock/patches/patch-README
new file mode 100644
index 0000000000..778cae37d8
--- /dev/null
+++ b/libcanlock/patches/patch-README
@@ -0,0 +1,15 @@
+$NetBSD$
+
+memset_s() corresponds to C11.
+
+--- README.orig 2020-04-27 07:54:13.000000000 +0000
++++ README
+@@ -26,7 +26,7 @@ the exception that 16 bit platforms are
+ For reliable overwriting of secret data in memory, libcanlock needs explicit
+ memory access. The following functions are currently supported (automatically
+ detected by configure script, if available):
+-- memset_s() [available as option in C99 Annex K]
++- memset_s() [available as option in C11 Annex K]
+ - explicit_memset() [available e.g. since NetBSD 7]
+ - explicit_bzero() [available e.g. since GNU libc 2.25]
+ If none of them can be used, memset() is used as fallback. But a "too smart"
diff --git a/libcanlock/patches/patch-src_secret.c b/libcanlock/patches/patch-src_secret.c
new file mode 100644
index 0000000000..75248f4edf
--- /dev/null
+++ b/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 */
+
diff --git a/libcanlock/patches/patch-test_Makefile.am b/libcanlock/patches/patch-test_Makefile.am
new file mode 100644
index 0000000000..1e70abddb4
--- /dev/null
+++ b/libcanlock/patches/patch-test_Makefile.am
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Link against static library for test of internal functions.
+
+--- test/Makefile.am.orig 2019-12-29 16:43:19.000000000 +0000
++++ test/Makefile.am
+@@ -45,8 +45,10 @@ CLEANFILES = shatest_check.sh
+ # This is required because shatest always return 0 status (even if tests failed)
+ check_SCRIPTS = shatest_check.sh
+
++# Attention: Linking against the static library is intended here!
++# (The shared library does not export the internal symbols)
+ shatest_SOURCES = hkdf.c shatest.c
+-shatest_LDADD = ../src/libcanlock.la
++shatest_LDADD = ../src/.libs/libcanlock.a
+
+ canlocktest_SOURCES = canlocktest.c
+ canlocktest_LDADD = ../src/libcanlock.la
Home |
Main Index |
Thread Index |
Old Index