summaryrefslogtreecommitdiff
path: root/app-crypt/tinyca
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-crypt/tinyca
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-crypt/tinyca')
-rw-r--r--app-crypt/tinyca/Manifest6
-rw-r--r--app-crypt/tinyca/files/tinyca-2.0.7.3-compositefix.patch12
-rw-r--r--app-crypt/tinyca/files/tinyca-2.0.7.5-openssl-1.patch48
-rw-r--r--app-crypt/tinyca/files/tinyca-2.0.7.5-perl-5.18.patch47
-rw-r--r--app-crypt/tinyca/metadata.xml8
-rw-r--r--app-crypt/tinyca/tinyca-2.0.7.5-r3.ebuild69
6 files changed, 190 insertions, 0 deletions
diff --git a/app-crypt/tinyca/Manifest b/app-crypt/tinyca/Manifest
new file mode 100644
index 000000000000..899c0bedb4d0
--- /dev/null
+++ b/app-crypt/tinyca/Manifest
@@ -0,0 +1,6 @@
+AUX tinyca-2.0.7.3-compositefix.patch 317 BLAKE2B 821c7758eaf7058b3f5bea17796fe9c4406a2a93725c7992c9c6b5fd7d326ea699e8b324091f905fa4e572a9324ced05d66991fd363dc8afbc43e8af2ec8d390 SHA512 c254b7fd39ffcc381c0d7b6787322e289a33d4d5c780d9cca6fad22033ffc7b933bafef464b20d8c01025529a2dc06eb8d9a41f6c01d2e60401792b18a4b743f
+AUX tinyca-2.0.7.5-openssl-1.patch 1468 BLAKE2B 338c4666f5d3b231b449c3118b1f0eb14b8d469c505cc7818abc3f12b4a76f8f8aa23c0aa1391e2fedc1a26300be46d429ccde334d5043cef6bd7f5536ca88d1 SHA512 5c5487eef82d30cf2cffc75d1fbd331a7c490dc30befa91ee753f4dd82bb8492089d162c3f15c20722df00adedf7db0bd30cf2b83363922a9402d66fc1abe8c4
+AUX tinyca-2.0.7.5-perl-5.18.patch 1738 BLAKE2B 7b5af07210a41573845ab97f5337c46110c5422f2065eea81d41a35eefda467c30cfa3ddd42c944fe1db64f392e7c72a828b853c216e4c9ce93143df37eedb45 SHA512 528a34b9ca9ace403949b6d347f91a4a33d94e92f867ea476adbaef745439706014c478be36ac6dd45d15f56f0ba2e1314c633d68285ca7879fa25dd0d3cee33
+DIST tinyca2-0.7.5.tar.bz2 172779 BLAKE2B f6a4b1d9d2a22416ff8bbec9fa0fa3aa7f6cae4ff0b32dd9ab9063760b47d91c931d13c73268c2f627411e5e02ec99231ea847ecf30a963a027552bb3990b38b SHA512 47df0b995715ad973b12da7d2999ae90f8887549437235b287e1d294331adc8d527bf4435ce1c30df278db8e5f8fc7df29a35d3650d41bfd4d0a0a7c193994aa
+EBUILD tinyca-2.0.7.5-r3.ebuild 1486 BLAKE2B 8412f05f6e35893a5ac881651a0ed738abd52799e36f1fdcf974fee2961df4c56bf342acacc704e62df901c537918f04f0cf328579cc7c63dfaf0c305678d32e SHA512 6736299b1c124d0cf8e0af68a771d19bd0a382a09a12c70718f77b2e8a354d2e179573a79de87a1c670e333533ed49c3c873bd79f04b6394f3c76f12aa56d582
+MISC metadata.xml 236 BLAKE2B a7bb92e6d53f7252ee56a885bf098930e228a76a75bca119358ca860901ceeecccc43efe5279c54250ebda58f77ae9c97d2ae540d8b399283cb3aa348111fcd2 SHA512 5f6cd6a85527534d5de7118de5af212ee3044c8c5530a7f7087a28074a2d4ab7be1728325bd985adc063dc795d3cf2b1c4e58a4c4c4ec02d739bd4bbc544ef08
diff --git a/app-crypt/tinyca/files/tinyca-2.0.7.3-compositefix.patch b/app-crypt/tinyca/files/tinyca-2.0.7.3-compositefix.patch
new file mode 100644
index 000000000000..01a757cc778e
--- /dev/null
+++ b/app-crypt/tinyca/files/tinyca-2.0.7.3-compositefix.patch
@@ -0,0 +1,12 @@
+--- tinyca2-0.7.2/tinyca2 2006-05-28 21:45:03.000000000 +1000
++++ tinyca2-0.7.2/tinyca2 2006-05-28 21:46:38.000000000 +1000
+@@ -87,6 +87,9 @@
+
+ umask(0077);
+
++# https://bugs.gentoo.org/show_bug.cgi?id=78576
++$ENV{XLIB_SKIP_ARGB_VISUALS}= '1';
++
+ # create main object and initialize CA
+ my $gui = GUI->new($init);
+
diff --git a/app-crypt/tinyca/files/tinyca-2.0.7.5-openssl-1.patch b/app-crypt/tinyca/files/tinyca-2.0.7.5-openssl-1.patch
new file mode 100644
index 000000000000..27831c6854f9
--- /dev/null
+++ b/app-crypt/tinyca/files/tinyca-2.0.7.5-openssl-1.patch
@@ -0,0 +1,48 @@
+--- a/lib/OpenSSL.pm 2013-03-05 15:57:46.332286060 +0100
++++ b/lib/OpenSSL.pm 2013-03-05 15:57:53.408466038 +0100
+@@ -605,6 +605,8 @@
+ # dirty fix (incompleted) --curly
+ $i = sprintf( "%x", $1);
+ $tmp->{'SERIAL'} = length($i)%2?"0".uc($i):uc($i);
++ } elsif ($_ =~ /^\s*([da-f]{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2})\s*$/i) {
++ $tmp->{'SERIAL'} = $1;
+ } elsif ($_ =~ /Signature Algorithm.*: (\w+)/i) {
+ $tmp->{'SIG_ALGORITHM'} = $1;
+ } elsif ($_ =~ /Issuer: (.+)/i) {
+@@ -823,10 +825,10 @@
+ $cmd = "$self->{'bin'} $opts->{'cmd'}";
+ $cmd .= " -config $opts->{'config'}" if(defined($opts->{'config'}));
+ $cmd .= " -inform $opts->{'inform'}";
+- $cmd .= " -out \"$file\"";
+ if($opts->{'outform'} eq 'TEXT') {
+ $cmd .= " -text -noout";
+ } else {
++ $cmd .= " -out \"$file\"";
+ $cmd .= " -outform $opts->{'outform'}";
+ }
+
+@@ -859,13 +861,17 @@
+ }
+ }
+
+- open(IN, $file) || do {
+- my $t = sprintf(_("Can't open file %s: %s"), $file, $!);
+- GUI::HELPERS::print_warning($t);
+- return;
+- };
+- $tmp .= $_ while(<IN>);
+- close(IN);
++ if ($opts->{'outform'} eq 'TEXT') {
++ $tmp = $ext;
++ } else {
++ open(IN, $file) || do {
++ my $t = sprintf(_("Can't open file %s: %s"), $file, $!);
++ GUI::HELPERS::print_warning($t);
++ return;
++ };
++ $tmp .= $_ while(<IN>);
++ close(IN);
++ }
+
+ unlink($file);
+
diff --git a/app-crypt/tinyca/files/tinyca-2.0.7.5-perl-5.18.patch b/app-crypt/tinyca/files/tinyca-2.0.7.5-perl-5.18.patch
new file mode 100644
index 000000000000..e8ca5d695daf
--- /dev/null
+++ b/app-crypt/tinyca/files/tinyca-2.0.7.5-perl-5.18.patch
@@ -0,0 +1,47 @@
+--- tinyca2-0.7.5/lib/GUI.pm 2006-07-25 16:12:00.000000000 -0400
+--- tinyca2-0.7.5/lib/GUI.pm 2006-07-25 16:12:00.000000000 -0400
+@@ -978,7 +978,7 @@
+ $piter = $store->append($root);
+ $store->set($piter, 0 => $t);
+
+- for my $l qw(CN EMAIL O OU C ST L) {
++ for my $l (qw(CN EMAIL O OU C ST L)) {
+ if(defined($parsed->{$l})) {
+ if($l eq "OU") {
+ foreach my $ou (@{$parsed->{'OU'}}) {
+@@ -1003,7 +1003,7 @@
+ $piter = $store->append($root);
+ $store->set($piter, 0 => $t);
+
+- for my $l qw(CN EMAIL O OU C ST L) {
++ for my $l (qw(CN EMAIL O OU C ST L)) {
+ if(defined($parsed->{'ISSUERDN'}->{$l})) {
+ if($l eq "OU") {
+ foreach my $ou (@{$parsed->{'ISSUERDN'}->{'OU'}}) {
+@@ -1029,7 +1029,7 @@
+ $piter = $store->append($root);
+ $store->set($piter, 0 => $t);
+
+- for my $l qw(STATUS NOTBEFORE NOTAFTER) {
++ for my $l (qw(STATUS NOTBEFORE NOTAFTER)) {
+ if(defined($parsed->{$l})) {
+ $citer = $store->append($piter);
+ $store->set($citer,
+@@ -1045,7 +1045,7 @@
+ $store->set($piter, 0 => $t);
+
+
+- for my $l qw(STATUS SERIAL KEYSIZE PK_ALGORITHM SIG_ALGORITHM TYPE) {
++ for my $l (qw(STATUS SERIAL KEYSIZE PK_ALGORITHM SIG_ALGORITHM TYPE)) {
+ if(defined($parsed->{$l})) {
+ $citer = $store->append($piter);
+ $store->set($citer,
+@@ -1060,7 +1060,7 @@
+ $piter = $store->append($root);
+ $store->set($piter, 0 => $t);
+
+- for my $l qw(FINGERPRINTMD5 FINGERPRINTSHA1) {
++ for my $l (qw(FINGERPRINTMD5 FINGERPRINTSHA1)) {
+ if(defined($parsed->{$l})) {
+ $citer = $store->append($piter);
+ $store->set($citer,
diff --git a/app-crypt/tinyca/metadata.xml b/app-crypt/tinyca/metadata.xml
new file mode 100644
index 000000000000..f1c3d59fb213
--- /dev/null
+++ b/app-crypt/tinyca/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>crypto@gentoo.org</email>
+ <name>Crypto</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-crypt/tinyca/tinyca-2.0.7.5-r3.ebuild b/app-crypt/tinyca/tinyca-2.0.7.5-r3.ebuild
new file mode 100644
index 000000000000..274da28fc848
--- /dev/null
+++ b/app-crypt/tinyca/tinyca-2.0.7.5-r3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+MY_P="${PN}${PV/./-}"
+DESCRIPTION="Simple Perl/Tk GUI to manage a small certification authority"
+HOMEPAGE="https://opsec.eu/src/tinyca/"
+SRC_URI="http://tinyca.sm-zone.net/${MY_P}.tar.bz2"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+IUSE="libressl"
+LANGS="en de cs es sv"
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ dev-perl/Locale-gettext
+ >=virtual/perl-MIME-Base64-2.12
+ >=dev-perl/Gtk2-1.072"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.0.7.3-compositefix.patch"
+ "${FILESDIR}/${P}-openssl-1.patch"
+ "${FILESDIR}/${P}-perl-5.18.patch"
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+ sed -i -e 's:./lib:/usr/share/tinyca/lib:g' \
+ -e 's:./templates:/usr/share/tinyca/templates:g' \
+ -e 's:./locale:/usr/share/locale:g' "${S}/tinyca2" || die
+}
+
+src_compile() {
+ emake -C po
+}
+
+locale_install() {
+ insinto /usr/share/locale/$@/LC_MESSAGES/
+ doins locale/$@/LC_MESSAGES/tinyca2.mo
+}
+
+src_install() {
+ einstalldocs
+ newbin tinyca2 tinyca
+ insinto /usr/share/tinyca/lib
+ doins lib/*.pm
+ insinto /usr/share/tinyca/lib/GUI
+ doins lib/GUI/*.pm
+ insinto /usr/share/tinyca/templates
+ doins templates/*
+ insinto /usr/share/
+ strip-linguas ${LANGS}
+ local l
+ for l in ${LANGS}; do
+ if [ "$l" != "en" ]; then
+ has ${l} ${LINGUAS-${l}} && locale_install $l
+ fi
+ done
+}