pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/libdecaf Import of libdecaf 1.0.0 as security...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6544dd2f9080
branches:  trunk
changeset: 399560:6544dd2f9080
user:      fox <fox%pkgsrc.org@localhost>
date:      Sun Aug 11 16:47:52 2019 +0000

description:
Import of libdecaf 1.0.0 as security/libdecaf

Implementation of elliptic curve cryptography using the Montgomery
and Edwards curves Curve25519, Ed25519, Ed448-Goldilocks and
Curve448, using the Decaf / Ristretto encoding.

diffstat:

 security/libdecaf/DESCR                            |   3 ++
 security/libdecaf/Makefile                         |  33 ++++++++++++++++++++++
 security/libdecaf/PLIST                            |  26 +++++++++++++++++
 security/libdecaf/buildlink3.mk                    |  14 +++++++++
 security/libdecaf/distinfo                         |   7 ++++
 security/libdecaf/patches/patch-src_CMakeLists.txt |  18 ++++++++++++
 6 files changed, 101 insertions(+), 0 deletions(-)

diffs (125 lines):

diff -r 405f92741800 -r 6544dd2f9080 security/libdecaf/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libdecaf/DESCR   Sun Aug 11 16:47:52 2019 +0000
@@ -0,0 +1,3 @@
+Implementation of elliptic curve cryptography using the Montgomery
+and Edwards curves Curve25519, Ed25519, Ed448-Goldilocks and
+Curve448, using the Decaf / Ristretto encoding.
diff -r 405f92741800 -r 6544dd2f9080 security/libdecaf/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libdecaf/Makefile        Sun Aug 11 16:47:52 2019 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2019/08/11 16:47:52 fox Exp $
+
+DISTNAME=      libdecaf-1.0.0
+CATEGORIES=    security
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=ed448goldilocks/}
+EXTRACT_SUFX=  .tgz
+
+MAINTAINER=    fox%NetBSD.org@localhost
+HOMEPAGE=      http://ed448goldilocks.sourceforge.net/
+COMMENT=       Implementation of Ed448-Goldilocks elliptic curve for cryptography
+LICENSE=       mit
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c99 c++11
+CMAKE_ARGS+=   -DENABLE_TESTS=YES
+
+# These are required to prevent build breakage when tests are enabled
+# This is probably due to the auto-generated headers clobbering with
+# the #defines
+CFLAGS.NetBSD+=        -D_NETBSD_SOURCE
+
+PYTHON_FOR_BUILD_ONLY=         tool
+
+# XXX: Avoid to pick up possibe installed libdecaf.so
+TEST_ENV+=     LD_LIBRARY_PATH=${WRKSRC}/src
+
+TEST_TARGET=   test
+
+post-install:
+       ${CHMOD} -x ${DESTDIR}${PREFIX}/lib/libdecaf.a
+
+.include "../../lang/python/pyversion.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 405f92741800 -r 6544dd2f9080 security/libdecaf/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libdecaf/PLIST   Sun Aug 11 16:47:52 2019 +0000
@@ -0,0 +1,26 @@
+@comment $NetBSD: PLIST,v 1.1 2019/08/11 16:47:52 fox Exp $
+include/decaf.h
+include/decaf.hxx
+include/decaf/common.h
+include/decaf/ed255.h
+include/decaf/ed255.hxx
+include/decaf/ed448.h
+include/decaf/ed448.hxx
+include/decaf/eddsa.hxx
+include/decaf/point_255.h
+include/decaf/point_255.hxx
+include/decaf/point_448.h
+include/decaf/point_448.hxx
+include/decaf/secure_buffer.hxx
+include/decaf/sha512.h
+include/decaf/sha512.hxx
+include/decaf/shake.h
+include/decaf/shake.hxx
+include/decaf/spongerng.h
+include/decaf/spongerng.hxx
+lib/libdecaf.a
+lib/libdecaf.so
+lib/libdecaf.so.0
+share/decaf/cmake/DecafConfig.cmake
+share/decaf/cmake/DecafTargets-noconfig.cmake
+share/decaf/cmake/DecafTargets.cmake
diff -r 405f92741800 -r 6544dd2f9080 security/libdecaf/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libdecaf/buildlink3.mk   Sun Aug 11 16:47:52 2019 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/08/11 16:47:52 fox Exp $
+
+BUILDLINK_TREE+=       libdecaf
+
+.if !defined(LIBDECAF_BUILDLINK3_MK)
+LIBDECAF_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libdecaf+=       libdecaf>=1.0.0
+BUILDLINK_ABI_DEPENDS.libdecaf+=       libdecaf>=1.0.0
+BUILDLINK_PKGSRCDIR.libdecaf?=         ../../security/libdecaf
+
+.endif # LIBDECAF_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libdecaf
diff -r 405f92741800 -r 6544dd2f9080 security/libdecaf/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libdecaf/distinfo        Sun Aug 11 16:47:52 2019 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/08/11 16:47:52 fox Exp $
+
+SHA1 (libdecaf-1.0.0.tgz) = c36a3b392763d6ddae4304a7e4c48353d8f1f474
+RMD160 (libdecaf-1.0.0.tgz) = 1ff710c56f2e0682547ed78dc427893b40604c06
+SHA512 (libdecaf-1.0.0.tgz) = 0a962fe01e73655db98c98692938794d6ec4cee5656f9a6172ab24e385882229f9163d09212b2a13bff874623c18befb6aaa2f0ed65aa638e1a3c56dd3e124c0
+Size (libdecaf-1.0.0.tgz) = 614589 bytes
+SHA1 (patch-src_CMakeLists.txt) = f9ddfd9e6d3e334d310bfed9f2542477ba2cf9a6
diff -r 405f92741800 -r 6544dd2f9080 security/libdecaf/patches/patch-src_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libdecaf/patches/patch-src_CMakeLists.txt        Sun Aug 11 16:47:52 2019 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_CMakeLists.txt,v 1.1 2019/08/11 16:47:52 fox Exp $
+
+Do not create a include/decaf/decaf.
+
+Removed the trailing decaf so that the directory containing the
+includes is include/decaf.
+
+--- src/CMakeLists.txt.orig    2019-05-05 22:55:13.720148509 +0000
++++ src/CMakeLists.txt
+@@ -119,7 +119,7 @@ if(ENABLE_SHARED)
+ endif()
+ 
+ install(DIRECTORY ${GSOURCE_PATH}/include/
+-      DESTINATION include/decaf
++      DESTINATION include
+       FILES_MATCHING PATTERN "*.h*"
+       PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+ )



Home | Main Index | Thread Index | Old Index