diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-crypt/tinyca |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-crypt/tinyca')
-rw-r--r-- | app-crypt/tinyca/Manifest | 8 | ||||
-rw-r--r-- | app-crypt/tinyca/files/tinyca-2.0.7.3-compositefix.patch | 12 | ||||
-rw-r--r-- | app-crypt/tinyca/files/tinyca-2.0.7.5-openssl-1.patch | 48 | ||||
-rw-r--r-- | app-crypt/tinyca/files/tinyca-2.0.7.5-perl-5.18.patch | 47 | ||||
-rw-r--r-- | app-crypt/tinyca/metadata.xml | 8 | ||||
-rw-r--r-- | app-crypt/tinyca/tinyca-2.0.7.5-r3.ebuild | 73 |
6 files changed, 196 insertions, 0 deletions
diff --git a/app-crypt/tinyca/Manifest b/app-crypt/tinyca/Manifest new file mode 100644 index 000000000000..8530aece841f --- /dev/null +++ b/app-crypt/tinyca/Manifest @@ -0,0 +1,8 @@ +AUX tinyca-2.0.7.3-compositefix.patch 317 SHA256 24a42b1b19634216486095aa7fc5b4df76c7f61b4846e2fd4cb36a57b2d255f2 SHA512 c254b7fd39ffcc381c0d7b6787322e289a33d4d5c780d9cca6fad22033ffc7b933bafef464b20d8c01025529a2dc06eb8d9a41f6c01d2e60401792b18a4b743f WHIRLPOOL fcfc3b785ac9fd9ea01f3cf64e52bef5f01bde5738fe236558f1c9c4e104154cfa91909f2ad1d429ba18f13522fa8975179364845b4d876ecd3ebd745ec85a8c +AUX tinyca-2.0.7.5-openssl-1.patch 1468 SHA256 2007fedf93708737950c9217460b9fa1df88bb535481e2b92db1d99a1242ab87 SHA512 5c5487eef82d30cf2cffc75d1fbd331a7c490dc30befa91ee753f4dd82bb8492089d162c3f15c20722df00adedf7db0bd30cf2b83363922a9402d66fc1abe8c4 WHIRLPOOL 061dc1805abb2cb89b13a1d83ce1a4bd0c1f637f1d1eebffdc97d089195e5c30abebc42d3b96f55834b68976a548074ab8e82b13316691cc36cf9071978d7c08 +AUX tinyca-2.0.7.5-perl-5.18.patch 1738 SHA256 156358824d5e78b1c7ba66abd58c04cb6f763cfe628e11a40254459fe34cccac SHA512 528a34b9ca9ace403949b6d347f91a4a33d94e92f867ea476adbaef745439706014c478be36ac6dd45d15f56f0ba2e1314c633d68285ca7879fa25dd0d3cee33 WHIRLPOOL 782ef65202e0d21cb1b71421625dc7de69b5b662ef637a7a7610ef6a8c32f1fa77fbe9c4ac2dafbd423bc87def64a289c55a7d6f73bb1a7ab87e3e00f7ef03b9 +DIST tinyca2-0.7.5.tar.bz2 172779 SHA256 dc7d8180bf1db572fa4b08e15ecf8a47fc1c5bfdb55109bf2b3a54f86e5e60b7 SHA512 47df0b995715ad973b12da7d2999ae90f8887549437235b287e1d294331adc8d527bf4435ce1c30df278db8e5f8fc7df29a35d3650d41bfd4d0a0a7c193994aa WHIRLPOOL 5f990529ee503f07d8df0132c1b5834b8353d4908650535adb67ba82f04b1472559dca40ee972e4ce6ac22f31706774c981fc8fc905964df4b837ba6bec1a9be +EBUILD tinyca-2.0.7.5-r3.ebuild 1534 SHA256 6c5e3324b9bf589d4daffd2cc8ebe4dda4b8ef1fc80b75368c08a9849c7d27a7 SHA512 1aedaf75b97cd2931b579babec9ac73cf14ef19efa47fe0f268bb17abe8587599af5b892e4ef7a113128f703380c802561a5319456a45be548ecdc236f4a845b WHIRLPOOL a12205fe21d0d7d7520a862b0a54bfe1ed6a84863bf326656b73e25728a8b6dc9e7edc8d6c6b560285675d063addd7837be362e6855172d8f0e43e0a04542852 +MISC ChangeLog 2738 SHA256 2e6cdab00cfab16a6237ff52c0080e4e67c877ad3582091aba5efa44a47d1895 SHA512 dcdebf840be57ab38f0d657d40476669109c876e4012081aba3ed80b763d5b3d21bb97b92ea45cf57ac321237aa82bbc3433cd3d537431d886a9b5f2e0d73f8f WHIRLPOOL b39053ef334f84f4e3f684b89dfc1a436badce54a2107ef86953dab24140d22ad8524bcca5f5f1d172c8e705d8848b8e06c797f9d7d0b33692ab2a9c5101d78c +MISC ChangeLog-2015 2385 SHA256 ea50920cfb7f09884f6ebd37c92484045bb1867ff17755138aa56197b920a044 SHA512 225cf18e1cf38123873a0ea19bc1dc9bfe1f80d6393c17e03553c5eeac9bb4fec7a6875aabc330082282ce7e835507fdbe9ab21c63dc47d370dd3ff4d253e79f WHIRLPOOL e1ab096e776c2f1ffdad41769eed78c702168ab5039f5156f32a273f608b8e27f9bb8a69eb7b87b6615b65898a9f1ef4b4ea0f6e2c487064f6f3a98e7430a152 +MISC metadata.xml 236 SHA256 dd25b46c95b0c63da84b7ff5778479e31449a385df066e9ee14bf0d7d176f42f SHA512 5f6cd6a85527534d5de7118de5af212ee3044c8c5530a7f7087a28074a2d4ab7be1728325bd985adc063dc795d3cf2b1c4e58a4c4c4ec02d739bd4bbc544ef08 WHIRLPOOL b15a2dfb001c41c8de2895842148b2531b74949e89e93ff8c366519c35792996e344918eaf9144fb081fc240796e47890be356d2339bea60b1e1d41830447d31 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..ebe613387710 --- /dev/null +++ b/app-crypt/tinyca/tinyca-2.0.7.5-r3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 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" + +for X in ${LANGS} ; do + IUSE="${IUSE} linguas_${X}" +done + +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 + use linguas_$l && locale_install $l + fi + done +} |