diff options
author | Thilo Bangert <bangert@gentoo.org> | 2008-01-30 22:57:59 +0000 |
---|---|---|
committer | Thilo Bangert <bangert@gentoo.org> | 2008-01-30 22:57:59 +0000 |
commit | 2585ea56634e35f98cee54ae47d099e444253683 (patch) | |
tree | 0a865f75b96d17a55bd0373695c684bc4eb2f74e /app-crypt/nistp224 | |
parent | Marking mpfr-2.3.0_p4 ppc64 for bug 208039 (diff) | |
download | historical-2585ea56634e35f98cee54ae47d099e444253683.tar.gz historical-2585ea56634e35f98cee54ae47d099e444253683.tar.bz2 historical-2585ea56634e35f98cee54ae47d099e444253683.zip |
initial portage proper release - from the bangert overlay - credits for the original ebuild go to dragonheart
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'app-crypt/nistp224')
-rw-r--r-- | app-crypt/nistp224/ChangeLog | 21 | ||||
-rw-r--r-- | app-crypt/nistp224/Manifest | 24 | ||||
-rw-r--r-- | app-crypt/nistp224/files/digest-nistp224-0.75 | 3 | ||||
-rw-r--r-- | app-crypt/nistp224/files/nistp224-0.75-asmfix.patch | 39 | ||||
-rw-r--r-- | app-crypt/nistp224/files/nistp224-0.75-declare-exit.patch | 18 | ||||
-rw-r--r-- | app-crypt/nistp224/metadata.xml | 14 | ||||
-rw-r--r-- | app-crypt/nistp224/nistp224-0.75.ebuild | 50 |
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..782529e5d558 --- /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 1264 RMD160 98a683139562de9496416a8d9872d949b3728ad4 SHA1 961af19f216532b5c8236bd8871338523eb73fef SHA256 1eef279bb4271f169b9aaf891dd54c6f6cade7038422a9eae9d048ff5454df4c +MD5 1386bf3f38339d2244e0c15add3639fc nistp224-0.75.ebuild 1264 +RMD160 98a683139562de9496416a8d9872d949b3728ad4 nistp224-0.75.ebuild 1264 +SHA256 1eef279bb4271f169b9aaf891dd54c6f6cade7038422a9eae9d048ff5454df4c nistp224-0.75.ebuild 1264 +MISC ChangeLog 784 RMD160 f7869911c8f572691292b4c194ae2ce2ea5fcb0c SHA1 c720b049db112b195925ae4ccf2ad8b95aaffa4d SHA256 969fa905a55094d1dc582e911a597abc6c5a80d22ef14b17f145701d25da6f6b +MD5 da49ccf5f505a16c67137a4171a024d6 ChangeLog 784 +RMD160 f7869911c8f572691292b4c194ae2ce2ea5fcb0c ChangeLog 784 +SHA256 969fa905a55094d1dc582e911a597abc6c5a80d22ef14b17f145701d25da6f6b ChangeLog 784 +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 +} |