pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libdecaf: Import of libdecaf-1.0.0 as wip/libdecaf.
Module Name: pkgsrc-wip
Committed By: Santhosh Raju <fox%NetBSD.org@localhost>
Pushed By: fox
Date: Mon May 6 05:16:26 2019 -0500
Changeset: 3813ab6fd6eee63241f3f87e642c031564d790d6
Added Files:
libdecaf/DESCR
libdecaf/Makefile
libdecaf/PLIST
libdecaf/buildlink3.mk
libdecaf/distinfo
libdecaf/patches/patch-src_CMakeLists.txt
Log Message:
libdecaf: Import of libdecaf-1.0.0 as wip/libdecaf.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3813ab6fd6eee63241f3f87e642c031564d790d6
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libdecaf/DESCR | 3 +++
libdecaf/Makefile | 33 +++++++++++++++++++++++++++++++
libdecaf/PLIST | 26 ++++++++++++++++++++++++
libdecaf/buildlink3.mk | 15 ++++++++++++++
libdecaf/distinfo | 7 +++++++
libdecaf/patches/patch-src_CMakeLists.txt | 18 +++++++++++++++++
6 files changed, 102 insertions(+)
diffs:
diff --git a/libdecaf/DESCR b/libdecaf/DESCR
new file mode 100644
index 0000000000..31fc39675d
--- /dev/null
+++ b/libdecaf/DESCR
@@ -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 --git a/libdecaf/Makefile b/libdecaf/Makefile
new file mode 100644
index 0000000000..57f46f6d9c
--- /dev/null
+++ b/libdecaf/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD$
+
+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 elliptic curve cryptography
+LICENSE= mit
+
+USE_CMAKE= yes
+USE_LANGUAGES= c99 c++11
+CMAKE_ARGS+= -DENABLE_TESTS=NO
+CMAKE_ARGS+= -DCMAKE_CXX_FLAGS:STRING=${CXXFLAGS:Q}
+CMAKE_ARGS+= -DCMAKE_CPP_FLAGS:STRING=${CPPFLAGS:Q}
+CMAKE_ARGS+= -DCMAKE_C_FLAGS:STRING=${CFLAGS:Q}
+
+# These are required to prevent build breakage when tests are enabled
+# This is probably due to the auto-generated headers clobbering with
+# the #defines
+CXXFLAGS+= -D_NETBSD_SOURCE
+CPPFLAGS+= -D_NETBSD_SOURCE
+CFLAGS+= -D_NETBSD_SOURCE
+
+PYTHON_FOR_BUILD_ONLY= tool
+
+post-install:
+ ${CHMOD} -x ${DESTDIR}${PREFIX}/lib/libdecaf.a
+
+.include "../../lang/python/pyversion.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libdecaf/PLIST b/libdecaf/PLIST
new file mode 100644
index 0000000000..5ea68afa3a
--- /dev/null
+++ b/libdecaf/PLIST
@@ -0,0 +1,26 @@
+@comment $NetBSD$
+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 --git a/libdecaf/buildlink3.mk b/libdecaf/buildlink3.mk
new file mode 100644
index 0000000000..c90a2661ea
--- /dev/null
+++ b/libdecaf/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+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
+BUILDLINK_PKGSRCDIR.libdecaf?= ../../wip/libdecaf
+
+.endif # LIBDECAF_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libdecaf
diff --git a/libdecaf/distinfo b/libdecaf/distinfo
new file mode 100644
index 0000000000..42c9cb5c07
--- /dev/null
+++ b/libdecaf/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+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 --git a/libdecaf/patches/patch-src_CMakeLists.txt b/libdecaf/patches/patch-src_CMakeLists.txt
new file mode 100644
index 0000000000..8a01ff481d
--- /dev/null
+++ b/libdecaf/patches/patch-src_CMakeLists.txt
@@ -0,0 +1,18 @@
+$NetBSD$
+
+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