From 1a32b4e882c485be6682725066c0779dc92db710 Mon Sep 17 00:00:00 2001 From: Kamel Ibn Aziz Derouiche Date: Fri, 28 Oct 2011 17:37:04 +0000 Subject: [PATCH] Import libecc-0.14.0 as wip/libecc. Libecc is an elliptic curve crypto library for C++ developers --- libecc/DESCR | 1 + libecc/Makefile | 23 +++++++++++++++++++++++ libecc/PLIST | 10 ++++++++++ libecc/buildlink3.mk | 14 ++++++++++++++ libecc/distinfo | 6 ++++++ libecc/patches/patch-bitset.h | 13 +++++++++++++ 6 files changed, 67 insertions(+) create mode 100644 libecc/DESCR create mode 100644 libecc/Makefile create mode 100644 libecc/PLIST create mode 100644 libecc/buildlink3.mk create mode 100644 libecc/distinfo create mode 100644 libecc/patches/patch-bitset.h diff --git a/libecc/DESCR b/libecc/DESCR new file mode 100644 index 0000000000..522492e092 --- /dev/null +++ b/libecc/DESCR @@ -0,0 +1 @@ +Libecc is an elliptic curve crypto library for C++ developers diff --git a/libecc/Makefile b/libecc/Makefile new file mode 100644 index 0000000000..6ad56797aa --- /dev/null +++ b/libecc/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/10/28 17:37:04 jihbed Exp $ +# + +DISTNAME= libecc-0.14.0 +CATEGORIES= math +MASTER_SITES= http://garr.dl.sourceforge.net/project/libecc/libecc/0.14.0/ + +MAINTAINER= jihbed.research@gmail.com +HOMEPAGE= http://garr.dl.sourceforge.net/project/libecc/libecc/0.14.0/ +COMMENT= C++ elliptic curve library +#LICENSE= # TODO: (see mk/license.mk) + +PKG_DESTDIR_SUPPORT= user-destdir + +MAKE_JOBS_SAFE=NO + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_LANGUAGES= c c++ + +.include "../../devel/gmp/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/libecc/PLIST b/libecc/PLIST new file mode 100644 index 0000000000..7b42473b57 --- /dev/null +++ b/libecc/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/10/28 17:37:04 jihbed Exp $ +include/libecc/bitset.h +include/libecc/debug.h +include/libecc/fieldmath.h +include/libecc/polynomial.h +include/libecc/rds.h +include/libecc/rng.h +include/libecc/sha.h +include/libecc/square.hcc +lib/libecc.la diff --git a/libecc/buildlink3.mk b/libecc/buildlink3.mk new file mode 100644 index 0000000000..b5bc2401b9 --- /dev/null +++ b/libecc/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/10/28 17:37:04 jihbed Exp $ + +BUILDLINK_TREE+= libecc + +.if !defined(LIBECC_BUILDLINK3_MK) +LIBECC_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libecc+= libecc>=0.14.0 +BUILDLINK_PKGSRCDIR.libecc?= ../../wip/libecc + +.include "../../devel/gmp/buildlink3.mk" +.endif # LIBECC_BUILDLINK3_MK + +BUILDLINK_TREE+= -libecc diff --git a/libecc/distinfo b/libecc/distinfo new file mode 100644 index 0000000000..ae3fdef2b9 --- /dev/null +++ b/libecc/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/10/28 17:37:04 jihbed Exp $ + +SHA1 (libecc-0.14.0.tar.gz) = 806940844ef78479790c08c36f3473c580c66e8d +RMD160 (libecc-0.14.0.tar.gz) = fa8a094739212de2127968018928bcc876c9836c +Size (libecc-0.14.0.tar.gz) = 2477120 bytes +SHA1 (patch-bitset.h) = 2ca4628bfc608f252bce6e2a79695d726f06371a diff --git a/libecc/patches/patch-bitset.h b/libecc/patches/patch-bitset.h new file mode 100644 index 0000000000..8c0e1aa809 --- /dev/null +++ b/libecc/patches/patch-bitset.h @@ -0,0 +1,13 @@ +$NetBSD: patch-bitset.h,v 1.1.1.1 2011/10/28 17:37:04 jihbed Exp $ + +--- include/libecc/bitset.h.orig 2011-08-08 00:32:31.000000000 +0100 ++++ include/libecc/bitset.h 2011-08-08 00:32:54.000000000 +0100 +@@ -39,7 +39,7 @@ + #include + #include + #include +-#include ++#include + #ifdef CWDEBUG + #include "debug.h" + #include