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 /net-mail/mhonarc-gentoo |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-mail/mhonarc-gentoo')
-rw-r--r-- | net-mail/mhonarc-gentoo/Manifest | 6 | ||||
-rw-r--r-- | net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch | 197 | ||||
-rw-r--r-- | net-mail/mhonarc-gentoo/metadata.xml | 5 | ||||
-rw-r--r-- | net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild | 28 |
4 files changed, 236 insertions, 0 deletions
diff --git a/net-mail/mhonarc-gentoo/Manifest b/net-mail/mhonarc-gentoo/Manifest new file mode 100644 index 000000000000..197f9a7800e2 --- /dev/null +++ b/net-mail/mhonarc-gentoo/Manifest @@ -0,0 +1,6 @@ +AUX mhonarc-gentoo-2.6.18-archives-gentoo.patch 6534 SHA256 e8da521cf04bba45a7a8b22ddbf150d8c88b88924d30391a0e4ded43f46efdba SHA512 f4c238e3394df9fccf1cefe697a2f5a53fdda5f02498ed5cd6d9adb301f49b257b8f01bf486a00ebd49b128d8707b8699a6e08cf3e3548709cbd29dca12e3d92 WHIRLPOOL 961a5abd1c91ae4381311d3173add182ea59a72846c612465db4c14acdad89fda18eab56bcf3ec79b2908936277062f62f93bb344a382a2cca184a7160102a8b +DIST MHonArc-2.6.18.tar.bz2 1546854 SHA256 4fd014cf69c40ae7d50a9dca519f279a09563004b200edb86b7c8c6f3e3fb534 SHA512 816acfd5c68db274848859ea60c8fb47a12daadea5d8dc8acd12018b72c8ff22133ef7e366edb005ef309f7a74f2b4dfdb7ad5fe9256eb850bebaeb165be5511 WHIRLPOOL d03bb5dba0064eb5de9a5f1a9f26b9073d46fb16b6cc2027dd8db5865e9cc9e930b891de67bd1bc223ba39d3d51a66ee49e2a1bcc3d0b3164f7770a93aa6d912 +EBUILD mhonarc-gentoo-2.6.18-r2.ebuild 752 SHA256 75cc6de56bf2f28f8d09f9801cb6299ecb5623c41c22b3494f0220688ff8629c SHA512 f5240bed8951ec02cfd0506ec14375c705770f450e7cbf8d8c8dc49460c2f1e87a21c2b29803eb87f9acaf0c23d57b4067ed081657911fb62e478157e0af78d7 WHIRLPOOL 04e9fc202d0eaeb86a4a94e5d51e983fc67ad428c465e665cdf4f70581d5642b6fea6b8d396e02d0f8a63245d66f1487d8603afa2d64244ac2d954fa4c8813e3 +MISC ChangeLog 2997 SHA256 6fd389f46dbd16bbb33b02b3691385e33d8b1c601c02a3d5fbf7c800aba5b097 SHA512 e4d97bd67cae7b95f914e18b91328f9b85bd0148cddb167217b1c1f7eed3897c2fded3e46565283c588617b21109cbfceaca926f673a0f856db287e696e111ed WHIRLPOOL 1bf00abd60ae0d2684c01668c6db1bb9ce22f3f739edf7f8d0e541e890314ea41ac91612b0f13dff9314f2d79ffc037271c76efe446f9b0d21a3aebb2f3a48bb +MISC ChangeLog-2015 901 SHA256 9c710b4e9558e04b8863590f4a92b0c384e7c0dcbd29cd1d0227995d11b2f02f SHA512 966b428391e8f9124789e60286a51bfc5e330d05d5c6b191469511914a27687edad4e108d8117858ecc258de14434e13d08499d80cee7bb616b0666d1d759cb7 WHIRLPOOL 800e7ffc497b9778814d1a41e51e1260895bed24ae09537e32305e352abe7c1a8fdd44c35296e5f4a56d60953eb32b246bc32e7c7651d8abc8154b0d5398b3de +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch b/net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch new file mode 100644 index 000000000000..d67c63e4b95f --- /dev/null +++ b/net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch @@ -0,0 +1,197 @@ +diff -Nuar a/lib/mhamain.pl b/lib/mhamain.pl +--- a/lib/mhamain.pl 2006-06-10 02:42:58.000000000 +0000 ++++ b/lib/mhamain.pl 2008-01-27 14:12:48.000000000 +0000 +@@ -73,6 +73,8 @@ + TERM TRAP USR1 USR2 VTALRM XCPU XFSZ + ); + ++use Carp; ++ + ############################################################################### + ## Public routines + ############################################################################### +@@ -934,6 +936,16 @@ + } else { + $ctype = 'text/plain'; + } ++ ++ ##-----------------------------## ++ ## Get Custom Archives headers ## ++ ##-----------------------------## ++ if (defined($fields->{'x-archives-hash'})) { ++ $msghash = $fields->{'x-archives-hash'}[0]; ++ } ++ if(!defined($msghash)) { ++ confess("No X-Archives-Hash header in $handle"); ++ } + + ## Insure uniqueness of index + $index .= $X . sprintf('%d',(defined($msgnum)?$msgnum:($LastMsgNum+1))); +@@ -955,6 +967,7 @@ + $Subject{$index} = $sub; + $MsgHead{$index} = htmlize_header($fields); + $ContentType{$index} = $ctype; ++ $MsgHash{$index} = $msghash; + if ($msgid) { + $MsgId{$msgid} = $index; + $NewMsgId{$msgid} = $index; # Track new message-ids +@@ -966,6 +979,7 @@ + } else { + $IndexNum{$index} = getNewMsgNum(); + } ++ #$MsgHash{$IndexNum{$index}} = $msghash; + + $Refs{$index} = [ @refs ] if (@refs); + +@@ -1102,7 +1116,7 @@ + + my $adding = ($ADD && !$force && !$SINGLE); + my $i_p0 = fmt_msgnum($msgnum); +- my $filename = msgnum_filename($msgnum); ++ my $filename = msgnum_filename($index); + my $filepathname = join($DIRSEP, $OUTDIR, $filename); + my $tmppathname; + +@@ -1160,7 +1174,9 @@ + "<!--X-Message-Id: ", + commentize($Index2MsgId{$index}), " -->\n", + "<!--X-Content-Type: ", +- commentize($ContentType{$index}), " -->\n"; ++ commentize($ContentType{$index}), " -->\n", ++ "<!--X-Archives-Hash: ", ++ commentize($MsgHash{$index}), " -->\n"; + + if (defined($Refs{$index})) { + foreach (@{$Refs{$index}}) { +@@ -1456,8 +1472,9 @@ + #&defineIndex2MsgId(); + my $msgnum = $IndexNum{$key}; + return (undef, undef) if ($msgnum eq ''); +- my $filename = join($DIRSEP, $OUTDIR, &msgnum_filename($msgnum)); ++ my $filename = join($DIRSEP, $OUTDIR, &msgnum_filename($key)); + ++ delete $MsgHash{$key}; + delete $ContentType{$key}; + delete $Date{$key}; + delete $From{$key}; +diff -Nuar a/lib/mhdb.pl b/lib/mhdb.pl +--- a/lib/mhdb.pl 2005-12-20 21:28:15.000000000 +0000 ++++ b/lib/mhdb.pl 2008-01-27 13:25:52.000000000 +0000 +@@ -61,6 +61,7 @@ + + ## Meta-data + print_var($db,'ContentType', \%ContentType); ++print_var($db,'MsgHash', \%MsgHash); + print_var($db,'Date', \%Date); + print_var($db,'Derived', \%Derived); + print_var($db,'FollowOld', \%Follow); +diff -Nuar a/lib/mhinit.pl b/lib/mhinit.pl +--- a/lib/mhinit.pl 2005-07-08 06:34:03.000000000 +0000 ++++ b/lib/mhinit.pl 2008-01-27 13:25:52.000000000 +0000 +@@ -247,6 +247,7 @@ + %Follow = (); # Index key to follow-ups + %FolCnt = (); # Index key to number of follow-ups + %ContentType = (); # Index key to base content-type of message ++%MsgHash = (); # Custom hash from header in mail + %Icons = (); # Index key to icon URL for content-type + %AddIndex = (); # Flags for messages that must be written + +diff -Nuar a/lib/mhmsgfile.pl b/lib/mhmsgfile.pl +--- a/lib/mhmsgfile.pl 2001-09-17 16:10:28.000000000 +0000 ++++ b/lib/mhmsgfile.pl 2008-01-27 14:12:16.000000000 +0000 +@@ -123,6 +123,10 @@ + if (defined($href->{'derived'})) { + $Derived{$index} = $href->{'derived'}; + } ++ ++ if (defined($href->{'archives-hash'})) { ++ $MsgHash{$index} = $href->{'archives-hash'}; ++ } + + $IndexNum{$index} = int($msgnum); + +diff -Nuar a/lib/mhopt.pl b/lib/mhopt.pl +--- a/lib/mhopt.pl 2005-07-08 06:34:03.000000000 +0000 ++++ b/lib/mhopt.pl 2008-01-27 13:25:52.000000000 +0000 +@@ -764,6 +764,7 @@ + delete($MsgId{''}); + delete($FollowOld{''}); + delete($ContentType{''}); ++ delete($MsgHash{''}); + delete($Refs{''}); + + # update DOCURL if default old value +diff -Nuar a/lib/mhrcvars.pl b/lib/mhrcvars.pl +--- a/lib/mhrcvars.pl 2005-07-08 05:27:52.000000000 +0000 ++++ b/lib/mhrcvars.pl 2008-01-27 14:11:19.000000000 +0000 +@@ -195,7 +195,7 @@ + } + if ($var eq 'MSG') { ## Filename of message page + ($lref, $key, $pos) = compute_msg_pos($index, $var, $arg); +- $tmp = defined($key) ? &msgnum_filename($IndexNum{$key}) : ""; ++ $tmp = defined($key) ? &msgnum_filename($key) : ""; + last REPLACESW; + } + if ($var eq 'MSGHFIELD') { ## Message header field +@@ -417,7 +417,7 @@ + if (!defined($key)) { $tmp = ""; last REPLACESW; } + $tmp = qq/name="/ . &fmt_msgnum($IndexNum{$key}) . + qq/" href="/ . +- &msgnum_filename($IndexNum{$key}) . ++ &msgnum_filename($key) . + qq/"/; + last REPLACESW; + } +@@ -432,7 +432,7 @@ + $isurl = 0; + ($lref, $key, $pos) = compute_msg_pos($index, $var, $arg); + if (!defined($key)) { $tmp = ""; last REPLACESW; } +- $tmp = qq/href="/ . &msgnum_filename($IndexNum{$key}) . qq/"/; ++ $tmp = qq/href="/ . &msgnum_filename($key) . qq/"/; + last REPLACESW; + } + if ($var eq 'IDXFNAME') { ## Filename of index page +@@ -730,7 +730,7 @@ + $ret = qq|<a name="| . + &fmt_msgnum($IndexNum{$index}) . + qq|" href="| . +- &msgnum_filename($IndexNum{$index}) . ++ &msgnum_filename($index) . + qq|">$ret</a>| + if $var eq 'SUBJECT' && $arg eq "" && !$mailto; + +diff -Nuar a/lib/mhutil.pl b/lib/mhutil.pl +--- a/lib/mhutil.pl 2005-07-08 05:27:53.000000000 +0000 ++++ b/lib/mhutil.pl 2008-01-27 14:11:50.000000000 +0000 +@@ -28,6 +28,7 @@ + package mhonarc; + + use MHonArc::RFC822; ++use Carp; + + ## RFC 2369 header fields to check for URLs + %HFieldsList = ( +@@ -304,16 +305,20 @@ + ## Routine to get filename of a message number. + ## + sub msgnum_filename { +- my($fmtstr) = "$MsgPrefix%05d.$HtmlExt"; ++ my $msgnum = $_[0]; ++ my($fmtstr) = "$MsgPrefix%s.$HtmlExt"; + $fmtstr .= ".gz" if $GzipLinks; +- sprintf($fmtstr, $_[0]); ++ if(!defined($MsgHash{$msgnum})) { ++ confess("Could not find X-Archives-Hash for msgnum=$msgnum"); ++ } ++ sprintf($fmtstr, $MsgHash{$msgnum}); + } + + ##--------------------------------------------------------------------------- + ## Routine to get filename of an index + ## + sub get_filename_from_index { +- &msgnum_filename($IndexNum{$_[0]}); ++ &msgnum_filename($_[0]); + } + + ##--------------------------------------------------------------------------- diff --git a/net-mail/mhonarc-gentoo/metadata.xml b/net-mail/mhonarc-gentoo/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-mail/mhonarc-gentoo/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-needed --> +</pkgmetadata> diff --git a/net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild b/net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild new file mode 100644 index 000000000000..333911aff1b2 --- /dev/null +++ b/net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit perl-module + +DESCRIPTION="Perl Mail-to-HTML Converter, Gentoo fork" +HOMEPAGE="https://www.mhonarc.org/" +LICENSE="GPL-2" +SRC_URI="https://www.mhonarc.org/release/MHonArc/tar/MHonArc-${PV}.tar.bz2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="!net-mail/mhonarc" + +MY_P="${P/mhonarc-gentoo/MHonArc}" +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}/${P}-archives-gentoo.patch" ) + +src_install() { + sed -e "s|-prefix |-docpath '${D}/usr/share/doc/${PF}' -prefix '${D}'|g" -i Makefile || die "sed on Makefile failed" + sed -e "s|installsitelib|installvendorlib|g" -i install.me || die "sed on install.me failed" + + perl-module_src_install +} |