summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2008-01-30 22:57:59 +0000
committerThilo Bangert <bangert@gentoo.org>2008-01-30 22:57:59 +0000
commitde5eaaf8060a94f05589e0484f7b58ad322d6387 (patch)
tree393ea29fcb1ff321f39b40cefef3a43ac725e1cd /app-crypt/nistp224
parentMarking mpfr-2.3.0_p4 ppc64 for bug 208039 (diff)
downloadgentoo-2-de5eaaf8060a94f05589e0484f7b58ad322d6387.tar.gz
gentoo-2-de5eaaf8060a94f05589e0484f7b58ad322d6387.tar.bz2
gentoo-2-de5eaaf8060a94f05589e0484f7b58ad322d6387.zip
initial portage proper release - from the bangert overlay - credits for the original ebuild go to dragonheart
(Portage version: 2.1.3.19)
Diffstat (limited to 'app-crypt/nistp224')
-rw-r--r--app-crypt/nistp224/ChangeLog21
-rw-r--r--app-crypt/nistp224/Manifest24
-rw-r--r--app-crypt/nistp224/files/digest-nistp224-0.753
-rw-r--r--app-crypt/nistp224/files/nistp224-0.75-asmfix.patch39
-rw-r--r--app-crypt/nistp224/files/nistp224-0.75-declare-exit.patch18
-rw-r--r--app-crypt/nistp224/metadata.xml14
-rw-r--r--app-crypt/nistp224/nistp224-0.75.ebuild50
7 files changed, 169 insertions, 0 deletions
diff --git a/app-crypt/nistp224/ChangeLog b/app-crypt/nistp224/ChangeLog
new file mode 100644
index 000000000000..92f9df401e45
--- /dev/null
+++ b/app-crypt/nistp224/ChangeLog
@@ -0,0 +1,21 @@
+# ChangeLog for app-crypt/nistp224
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/nistp224/ChangeLog,v 1.1 2008/01/30 22:57:59 bangert Exp $
+
+*nistp224-0.75 (30 Jan 2008)
+
+ 30 Jan 2008; Thilo Bangert <bangert@gentoo.org>
+ +files/nistp224-0.75-asmfix.patch,
+ +files/nistp224-0.75-declare-exit.patch, +metadata.xml,
+ +nistp224-0.75.ebuild:
+ initial portage proper release
+
+ 26 Jan 2008; Thilo Bangert <bangert@gentoo.org> ChangeLog:
+ fix qa warning about missing declaration for exit()
+
+ 18 Jan 2008; Thilo Bangert <bangert@gentoo.org> ChangeLog:
+ switch to dragonhearts version - bug #164503
+
+ 10 Jun 2007; Thilo Bangert <bangert@gentoo.org> ChangeLog:
+ initial release: a fast elleptic curve cryto tool.
+
diff --git a/app-crypt/nistp224/Manifest b/app-crypt/nistp224/Manifest
new file mode 100644
index 000000000000..00d15e13f327
--- /dev/null
+++ b/app-crypt/nistp224/Manifest
@@ -0,0 +1,24 @@
+AUX nistp224-0.75-asmfix.patch 1360 RMD160 172697e18b9a97983d03ba5a3448298be657a5b0 SHA1 0542576711958009cda77b03f2d630ea4187baa7 SHA256 8fa379e289034ac2b0d33aa1b1c77da8a53f23348a311d3ec67c3e0e742b5504
+MD5 56b780777929f3e2bc90a41d5e652f56 files/nistp224-0.75-asmfix.patch 1360
+RMD160 172697e18b9a97983d03ba5a3448298be657a5b0 files/nistp224-0.75-asmfix.patch 1360
+SHA256 8fa379e289034ac2b0d33aa1b1c77da8a53f23348a311d3ec67c3e0e742b5504 files/nistp224-0.75-asmfix.patch 1360
+AUX nistp224-0.75-declare-exit.patch 658 RMD160 5feb45953246bf9f630122e72e4a95f07cac7028 SHA1 a9fb10cd0d317e8f65551881bfd8835bc4803721 SHA256 dc69eaf6f8c3d5d145910dbc96785ded8d65838ab002582df563f1541e71add7
+MD5 adb09be5597e0b6661bd4ac6e5eb24a5 files/nistp224-0.75-declare-exit.patch 658
+RMD160 5feb45953246bf9f630122e72e4a95f07cac7028 files/nistp224-0.75-declare-exit.patch 658
+SHA256 dc69eaf6f8c3d5d145910dbc96785ded8d65838ab002582df563f1541e71add7 files/nistp224-0.75-declare-exit.patch 658
+DIST nistp224-0.75.tar.gz 204747 RMD160 0394055d583a922702c1be0c4f8c417a3e9f4f3d SHA1 3fa1b8971a7e6b89c00ed7e09f89eaf1736343b2 SHA256 4e033b1bd0bb906229ed8c42cf87aa03cdc54ad40593ca262c7178fe3425351d
+EBUILD nistp224-0.75.ebuild 1162 RMD160 ec44b3f3754fcf71f14d3fa72e9d355ca0759740 SHA1 1d7e5a0931ae8ec432655fc6b32b2994f8a10d1f SHA256 9485a55234563d7fcf60a10a42ac2347ed9e751a8493f909604fd827c2660e6b
+MD5 d964be9127a75f716a05769ebdcbe801 nistp224-0.75.ebuild 1162
+RMD160 ec44b3f3754fcf71f14d3fa72e9d355ca0759740 nistp224-0.75.ebuild 1162
+SHA256 9485a55234563d7fcf60a10a42ac2347ed9e751a8493f909604fd827c2660e6b nistp224-0.75.ebuild 1162
+MISC ChangeLog 693 RMD160 e2a2fba8722d798a3e95ca0e22185b0bc00230da SHA1 065953b233a36e08199b4cf327024cc660e5283f SHA256 eaa39ea74d265d5f2352899db63e102d2b2cf09a1c57c42293c31f1e771c2548
+MD5 efe6c7b114c407798581302d521d6494 ChangeLog 693
+RMD160 e2a2fba8722d798a3e95ca0e22185b0bc00230da ChangeLog 693
+SHA256 eaa39ea74d265d5f2352899db63e102d2b2cf09a1c57c42293c31f1e771c2548 ChangeLog 693
+MISC metadata.xml 585 RMD160 3060fe656027d10dbb9cda6df42d3789e462c328 SHA1 3cc542189e51e3cf03099129705409e77055364f SHA256 a24bc31bc34bc99ebb393b51d4823e1384055edf5d0f5e9cb78fb7d1cb15f543
+MD5 27b6b737b80e6016a399a74cc7835370 metadata.xml 585
+RMD160 3060fe656027d10dbb9cda6df42d3789e462c328 metadata.xml 585
+SHA256 a24bc31bc34bc99ebb393b51d4823e1384055edf5d0f5e9cb78fb7d1cb15f543 metadata.xml 585
+MD5 3f276c61391ebfe2a70376d00452e9c3 files/digest-nistp224-0.75 241
+RMD160 60bb1a414a352abf7bc21556e05a79ef961450ad files/digest-nistp224-0.75 241
+SHA256 52c8136a55cfd112a65a92280382a15ab8b00930de2c9d81523a27ea3962a8bb files/digest-nistp224-0.75 241
diff --git a/app-crypt/nistp224/files/digest-nistp224-0.75 b/app-crypt/nistp224/files/digest-nistp224-0.75
new file mode 100644
index 000000000000..805affa4d42a
--- /dev/null
+++ b/app-crypt/nistp224/files/digest-nistp224-0.75
@@ -0,0 +1,3 @@
+MD5 064ddbdebb6c4fc7d8f0b5a572318ec2 nistp224-0.75.tar.gz 204747
+RMD160 0394055d583a922702c1be0c4f8c417a3e9f4f3d nistp224-0.75.tar.gz 204747
+SHA256 4e033b1bd0bb906229ed8c42cf87aa03cdc54ad40593ca262c7178fe3425351d nistp224-0.75.tar.gz 204747
diff --git a/app-crypt/nistp224/files/nistp224-0.75-asmfix.patch b/app-crypt/nistp224/files/nistp224-0.75-asmfix.patch
new file mode 100644
index 000000000000..fd6bfa17109a
--- /dev/null
+++ b/app-crypt/nistp224/files/nistp224-0.75-asmfix.patch
@@ -0,0 +1,39 @@
+diff -ru math.orig/nistp224-0.75/src/opt-idea64.c math/nistp224-0.75/src/opt-idea64.c
+--- math.orig/nistp224-0.75/src/opt-idea64.c 2001-10-19 06:39:19.000000000 +1000
++++ math/nistp224-0.75/src/opt-idea64.c 2007-01-30 11:30:08.000000000 +1100
+@@ -2,7 +2,8 @@
+
+ static void fpmode(void)
+ {
+- asm volatile("fldcw %0"::"m"(0x137f));
++ static short int x=0x137f;
++ asm volatile("fldcw %0"::"m"(*&x));
+ }
+
+ #define T0 1.0
+diff -ru math.orig/nistp224-0.75/src/opt-pentium.c math/nistp224-0.75/src/opt-pentium.c
+--- math.orig/nistp224-0.75/src/opt-pentium.c 2001-10-19 06:39:19.000000000 +1000
++++ math/nistp224-0.75/src/opt-pentium.c 2007-01-30 11:30:44.000000000 +1100
+@@ -129,7 +129,8 @@
+
+ static inline void fpmode(void)
+ {
+- asm volatile("fldcw %0"::"m"(0x137f));
++ static short int x=0x137f;
++ asm volatile("fldcw %0"::"m"(*&x));
+ }
+
+ static void p_sqrt(double out[8],const double in[8])
+diff -ru math.orig/nistp224-0.75/src/opt-ppro.c math/nistp224-0.75/src/opt-ppro.c
+--- math.orig/nistp224-0.75/src/opt-ppro.c 2001-10-19 06:39:19.000000000 +1000
++++ math/nistp224-0.75/src/opt-ppro.c 2007-01-30 11:30:27.000000000 +1100
+@@ -120,7 +120,8 @@
+
+ static inline void fpmode(void)
+ {
+- asm volatile("fldcw %0"::"m"(0x137f));
++ static short int x=0x137f;
++ asm volatile("fldcw %0"::"m"(*&x));
+ }
+
+ static void p_sqrt(double out[8],const double in[8])
diff --git a/app-crypt/nistp224/files/nistp224-0.75-declare-exit.patch b/app-crypt/nistp224/files/nistp224-0.75-declare-exit.patch
new file mode 100644
index 000000000000..a1ecb432a022
--- /dev/null
+++ b/app-crypt/nistp224/files/nistp224-0.75-declare-exit.patch
@@ -0,0 +1,18 @@
+diff -Naur nistp224-0.75.orig/src/main.c nistp224-0.75/src/main.c
+--- math.orig/nistp224-0.75/src/main.c 2008-01-26 21:56:34.000000000 +0100
++++ math/nistp224-0.75/src/main.c 2008-01-26 22:05:17.000000000 +0100
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "nistp224.h"
+
+ unsigned char e[28];
+diff -Naur nistp224-0.75.orig/src/nistp224-56.c nistp224-0.75/src/nistp224-56.c
+--- math.orig/nistp224-0.75/src/nistp224-56.c 2008-01-26 21:56:34.000000000 +0100
++++ math/nistp224-0.75/src/nistp224-56.c 2008-01-26 21:57:10.000000000 +0100
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "nistp224.h"
+
+ unsigned char e[28];
diff --git a/app-crypt/nistp224/metadata.xml b/app-crypt/nistp224/metadata.xml
new file mode 100644
index 000000000000..c327e6246f2f
--- /dev/null
+++ b/app-crypt/nistp224/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>bangert@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+nistp224 performs compressed Diffie-Hellman key exchange on the NIST P-224
+elliptic curve at record-setting speeds. It includes an easy-to-use C library
+and a command-line tool. nistp224 also supports uncompressed Diffie-Hellman key
+exchange on the same curve, with 56-byte public keys, at slightly higher speeds.
+</longdescription>
+</pkgmetadata>
diff --git a/app-crypt/nistp224/nistp224-0.75.ebuild b/app-crypt/nistp224/nistp224-0.75.ebuild
new file mode 100644
index 000000000000..387c3abcdf70
--- /dev/null
+++ b/app-crypt/nistp224/nistp224-0.75.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/nistp224/nistp224-0.75.ebuild,v 1.1 2008/01/30 22:57:59 bangert Exp $
+
+inherit toolchain-funcs flag-o-matic fixheadtails
+
+DESCRIPTION="nistp224 performs compressed Diffie-Hellman key exchange on the NIST P-224 elliptic curve"
+HOMEPAGE="http://cr.yp.to/nistp224.html"
+SRC_URI="http://cr.yp.to/${PN}/${P}.tar.gz"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND=""
+RDEPEND=${DEPEND}
+S=${WORKDIR}/math/${P}/src
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/${P}-asmfix.patch
+ epatch "${FILESDIR}"/${P}-declare-exit.patch
+ cd "${S}"
+ ht_fix_file Makefile print*.sh
+ append-ldflags $(bindnow-flags)
+ append-flags -fPIC
+ echo -n "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo -n "$(tc-getCC) ${LDFLAGS}" > conf-ld
+ if use ppc; then
+ # untested
+ echo -n "powerpc" > conf-opt
+ elif use sparc; then
+ # untested
+ echo -n "sparc" > conf-opt
+ else
+ # optiminations for ppro and pentium fail
+ echo -n "idea64" > conf-opt
+ fi
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin nistp224 nistp224-56
+ mv nistp224.a libnistp224.a
+ dolib.a libnistp224.a
+ insinto /usr/include
+ doins nistp224.h
+}