diff options
author | Matthew Schultz (mschultz) <mattsch@gmail.com> | 2011-10-13 15:08:01 +0000 |
---|---|---|
committer | Matthew Schultz (mschultz) <mattsch@gmail.com> | 2011-10-13 15:08:01 +0000 |
commit | d16ab7440c71b31d27b253a85ff2fe1232cd970b (patch) | |
tree | 542e00b6a4ac10aeb31e21428b9813c50d6bd058 /app-crypt/yyyRSA | |
parent | x11-plugins/pidgin-blinklight: New ebuild for bug 268778 and version bump. Th... (diff) | |
download | sunrise-d16ab7440c71b31d27b253a85ff2fe1232cd970b.tar.gz sunrise-d16ab7440c71b31d27b253a85ff2fe1232cd970b.tar.bz2 sunrise-d16ab7440c71b31d27b253a85ff2fe1232cd970b.zip |
app-crypt/yyyRSA: New Ebuild for bug 386971 thanks to binki and jlec for the review
svn path=/sunrise/; revision=12460
Diffstat (limited to 'app-crypt/yyyRSA')
-rw-r--r-- | app-crypt/yyyRSA/ChangeLog | 9 | ||||
-rw-r--r-- | app-crypt/yyyRSA/Manifest | 6 | ||||
-rw-r--r-- | app-crypt/yyyRSA/files/yyyRSA-1.0.2-build-fix.patch | 71 | ||||
-rw-r--r-- | app-crypt/yyyRSA/files/yyyRSA-1.0.2-compile-fix.patch | 77 | ||||
-rw-r--r-- | app-crypt/yyyRSA/metadata.xml | 5 | ||||
-rw-r--r-- | app-crypt/yyyRSA/yyyRSA-1.0.2.ebuild | 26 |
6 files changed, 194 insertions, 0 deletions
diff --git a/app-crypt/yyyRSA/ChangeLog b/app-crypt/yyyRSA/ChangeLog new file mode 100644 index 000000000..8c840c137 --- /dev/null +++ b/app-crypt/yyyRSA/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for app-crypt/yyyRSA +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 13 Oct 2011; Matthew Schultz (mschultz) <mattsch@gmail.com> + +yyyRSA-1.0.2.ebuild, +files/yyyRSA-1.0.2-build-fix.patch, + +files/yyyRSA-1.0.2-compile-fix.patch, +metadata.xml: + New Ebuild for bug 386971 thanks to binki and jlec for the review + diff --git a/app-crypt/yyyRSA/Manifest b/app-crypt/yyyRSA/Manifest new file mode 100644 index 000000000..39d946f39 --- /dev/null +++ b/app-crypt/yyyRSA/Manifest @@ -0,0 +1,6 @@ +AUX yyyRSA-1.0.2-build-fix.patch 1820 RMD160 d6c178a13f5fdcf30a95bbd7ff081881c0b7c76f SHA1 ce55881346679e5674f7a2f35c8c76d0dfca72be SHA256 7e6a527b5b4fd03500ab1c7304b198a4d63c387babfcfce08e66bdc2bb2d920c +AUX yyyRSA-1.0.2-compile-fix.patch 2020 RMD160 5f5630820890c1264f0096b6e72a8f5d725f2140 SHA1 f6e30fa7aef4aa0d87b64383a431944ccac6c91a SHA256 81644aa42693a46bf04b663c25aaaa2e6a498caede346a13f7b3554fb5f52731 +DIST yyyRSA-1.0.2.tar.gz 45309 RMD160 dbf9bb4fe8af67728e642ea0d3a873725cdc470e SHA1 3db5a9f8199b7d8f37e8c4927fea0e2db5198b5a SHA256 a76a62d80cd33c144bb83e3832664d6d2c0c798a194627bba793ed1e3c48a365 +EBUILD yyyRSA-1.0.2.ebuild 608 RMD160 2a1f38f2401ccb8434c62d714bead33a483542c9 SHA1 0275955d82b0ad1cd46e89fab8fa86a914b02f3c SHA256 472d18256ee9952bf9f00263642ac8e4e8e83013a831ee7ba1f72ea579aa6d2a +MISC ChangeLog 365 RMD160 70d5f38c834270e82db0e1a2089ca88ee834a88c SHA1 0c6b9d8c562331e850d5967c9e891b9b33cf6965 SHA256 55edff9a4ecc7bbb5865fd0b6aaea5639e30b705baa26a81a8527f422009195e +MISC metadata.xml 210 RMD160 e9db8e6d04c1afa771ce9649b2f52c49ce4a5a8b SHA1 5e3069d055d6784f92e477a11bbb4f937bb101a7 SHA256 cdf0ecda9587c6491ba741e7684999763a7db81c85fe05120cca9cac810612f4 diff --git a/app-crypt/yyyRSA/files/yyyRSA-1.0.2-build-fix.patch b/app-crypt/yyyRSA/files/yyyRSA-1.0.2-build-fix.patch new file mode 100644 index 000000000..45debb1f1 --- /dev/null +++ b/app-crypt/yyyRSA/files/yyyRSA-1.0.2-build-fix.patch @@ -0,0 +1,71 @@ +--- acinclude.m4 2001-02-17 10:47:11.000000000 -0600 ++++ acinclude.m4 2011-10-13 09:53:23.496357037 -0500 +@@ -1,4 +1,4 @@ +-AC_DEFUN(AC_YYY_CC_CXX_BEGIN, [ ++AC_DEFUN([AC_YYY_CC_CXX_BEGIN], [ + + AC_ARG_ENABLE(debug, + [ --enable-debug do not strip binaries but add debug info], +@@ -42,7 +42,7 @@ + ]) + + +-AC_DEFUN(AC_YYY_CC_INIT, [ ++AC_DEFUN([AC_YYY_CC_INIT], [ + + AC_ARG_WITH(ccpre, + [ --with-ccpre=x add at beginning of C options], +@@ -52,7 +52,7 @@ + [ --with-ccpost=x add at end of C options], + yyyccpost="$withval",yyyccpost="") + +-# if not set then set it as empty, so that AC_PROG_CC doesn't set it ++dnl if not set then set it as empty, so that AC_PROG_CC doesn't set it + if test "$CFLAGS" = ""; then + CFLAGS="" + fi +@@ -74,8 +74,6 @@ + + if test "$yyydebug" = "yes"; then + YYY_CFLAGS="$YYY_CFLAGS -g" +-else +- YYY_LDFLAGS="$YYY_LDFLAGS -s" + fi + + if test "$yyynowarnerror" = "yes"; then +@@ -87,7 +85,7 @@ + ]) + + +-AC_DEFUN(AC_YYY_CXX_INIT, [ ++AC_DEFUN([AC_YYY_CXX_INIT], [ + + AC_ARG_WITH(cxxpre, + [ --with-cxxpre=x add at beginning of C++ options], +@@ -97,7 +95,7 @@ + [ --with-cxxpost=x add at end of C++ options], + yyycxxpost="$withval",yyycxxpost="") + +-# if not set then set it as empty, so that AC_PROG_CXX doesn't set it ++dnl if not set then set it as empty, so that AC_PROG_CXX doesn't set it + if test "$CXXFLAGS" = ""; then + CXXFLAGS="" + fi +@@ -119,8 +117,6 @@ + + if test "$yyydebug" = "yes"; then + YYY_CXXFLAGS="$YYY_CXXFLAGS -g" +-else +- YYY_LDFLAGS="$YYY_LDFLAGS -s" + fi + + if test "$yyynowarnerror" = "yes"; then +@@ -132,7 +128,7 @@ + ]) + + +-AC_DEFUN(AC_YYY_CC_CXX_END, [ ++AC_DEFUN([AC_YYY_CC_CXX_END], [ + + CFLAGS="$yyyccpre $yyycccxxpre $YYY_CFLAGS $yyycccxxpost $yyyccpost" + CXXFLAGS="$yyycxxpre $yyycccxxpre $YYY_CXXFLAGS $yyycccxxpost $yyycxxpost" diff --git a/app-crypt/yyyRSA/files/yyyRSA-1.0.2-compile-fix.patch b/app-crypt/yyyRSA/files/yyyRSA-1.0.2-compile-fix.patch new file mode 100644 index 000000000..e1bd761f5 --- /dev/null +++ b/app-crypt/yyyRSA/files/yyyRSA-1.0.2-compile-fix.patch @@ -0,0 +1,77 @@ +diff -u common.cpp common.cpp +--- common.cpp 2011-10-12 15:27:06.797684095 -0500 ++++ common.cpp 2011-10-12 16:42:06.967086746 -0500 +@@ -1,6 +1,7 @@ + #include <stdio.h> + + #include "common.hpp" ++#include <cstdlib> + + void show (char *msg, mpz_t num) + { +diff -u decipher.cpp decipher.cpp +--- decipher.cpp 2011-10-12 15:27:06.796684104 -0500 ++++ decipher.cpp 2011-10-12 16:42:06.968086738 -0500 +@@ -7,6 +7,7 @@ + #include "numberio.hpp" + + #include <stdlib.h> ++#include <cstring> + + int decipher (int argc, char *argv[]) + { +@@ -34,7 +35,9 @@ + + assert ((inputfile = fopen (argv[2], "r"))!=0); + long inputlength; +- fscanf (inputfile, "%ld", &inputlength); ++ if (0 == fscanf(inputfile, "%ld", &inputlength)) { ++ printf("fscanf failed!"); ++ } + // printf ("length of input file %ld bytes\n", inputlength); + + assert ((outputfile = fopen (argv[3], "w"))!=0); +diff -u encrypt.cpp encrypt.cpp +--- encrypt.cpp 2011-10-12 15:27:06.795684112 -0500 ++++ encrypt.cpp 2011-10-12 16:42:06.968086738 -0500 +@@ -8,6 +8,7 @@ + #include "numberio.hpp" + + #include <stdlib.h> ++#include <cstring> + + int encrypt (int argc, char *argv[]) + { +diff -u gen_random.cpp gen_random.cpp +--- gen_random.cpp 2011-10-12 15:27:06.797684095 -0500 ++++ gen_random.cpp 2011-10-12 16:42:06.969086730 -0500 +@@ -3,6 +3,7 @@ + #include "common.hpp" + + #include <stdio.h> ++#include <cstdlib> + + void gen_random (int numbits, mpz_t x) + { +diff -u main.cpp main.cpp +--- main.cpp 2011-10-12 15:27:06.796684104 -0500 ++++ main.cpp 2011-10-12 16:42:06.969086730 -0500 +@@ -2,6 +2,7 @@ + #include "make_keys.hpp" + #include "encrypt.hpp" + #include "decipher.hpp" ++#include <cstring> + + int main (int argc, char *argv[]) + { +diff -u numberio.cpp numberio.cpp +--- numberio.cpp 2011-10-12 15:27:06.795684112 -0500 ++++ numberio.cpp 2011-10-12 16:42:06.969086730 -0500 +@@ -1,6 +1,7 @@ + #include "numberio.hpp" + + #include "common.hpp" ++#include <cstdlib> + + static char codec[] = { // codec has 64 elements. + 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', diff --git a/app-crypt/yyyRSA/metadata.xml b/app-crypt/yyyRSA/metadata.xml new file mode 100644 index 000000000..e95ecf8be --- /dev/null +++ b/app-crypt/yyyRSA/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer> +</pkgmetadata> diff --git a/app-crypt/yyyRSA/yyyRSA-1.0.2.ebuild b/app-crypt/yyyRSA/yyyRSA-1.0.2.ebuild new file mode 100644 index 000000000..c332ee7fa --- /dev/null +++ b/app-crypt/yyyRSA/yyyRSA-1.0.2.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit autotools + +DESCRIPTION="Encrypting and deciphering of messages with the RSA asymmetrical encryption algorithm" +HOMEPAGE="http://www.erikyyy.de/yyyRSA/" +SRC_URI="http://www.erikyyy.de/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-libs/gmp" +RDEPEND="${DEPEND}" + +src_prepare() { + # Fix stripped binaries and missing includes. + epatch "${FILESDIR}"/${P}-compile-fix.patch + epatch "${FILESDIR}"/${P}-build-fix.patch + eautoreconf +} |