Gentoo Archives: gentoo-commits

From: Eray Aslan <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mailbase/files/, net-mail/mailbase/
Date: Mon, 27 Dec 2021 05:35:10
Message-Id: 1640583288.1a1eb2dfdfd41ba2eb9a5416e1b6f445fe00028d.eras@gentoo
1 commit: 1a1eb2dfdfd41ba2eb9a5416e1b6f445fe00028d
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 27 05:34:48 2021 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 27 05:34:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a1eb2df
7
8 net-mail/mailbase: remove wildcards from mailcap
9
10 as noted in mailcap(5):
11 Note that wildcards may only be specified in the subtype (e.g.
12 "*" or "*/*" do not work), and as the entire subtype (e.g.
13 "application/x-*" does not work)
14
15 wildcards were introduced in the hope that they might be useful for some
16 programs. however, some mailers reportedly error out with:
17
18 s-nail: $MAILCAPS: /etc/mailcap: skip due to error: invalid MIME type: */*
19
20 so, just remove */* wildcards from mailcap
21
22 Package-Manager: Portage-3.0.30, Repoman-3.0.3
23 Signed-off-by: Eray Aslan <eras <AT> gentoo.org>
24
25 net-mail/mailbase/files/mailcap-r3 | 30 +++++++++++++++++++++++
26 net-mail/mailbase/mailbase-1.8.ebuild | 45 +++++++++++++++++++++++++++++++++++
27 2 files changed, 75 insertions(+)
28
29 diff --git a/net-mail/mailbase/files/mailcap-r3 b/net-mail/mailbase/files/mailcap-r3
30 new file mode 100644
31 index 000000000000..fe717f34e0b0
32 --- /dev/null
33 +++ b/net-mail/mailbase/files/mailcap-r3
34 @@ -0,0 +1,30 @@
35 +# Database binding MIME types to programs that can process them.
36 +# This file is generally used by mail clients to view attachments.
37 +#
38 +# Users should add their own rules to their ~/.mailcap file. That file will be
39 +# processed first before falling back to this one.
40 +#
41 +# For more information, see the mailcap(5) man page.
42 +
43 +# NB: Do not quote %s. Clients will handle expanding it with proper quoting,
44 +# so adding quotes ourselves just confuses things.
45 +
46 +application/pdf; xdg-open %s; needsterminal
47 +application/postscript; xdg-open %s; needsterminal
48 +application/x-info; info --subnodes -o /dev/stdout -f %s 2>/dev/null; copiousoutput; description=GNU Info document
49 +application/x-gtar; tar tvzf -; print=tar tvzf - | print text/plain:-; copiousoutput
50 +application/x-tar; tar tvf -; print=tar tvf - | print text/plain:-; copiousoutput
51 +application/x-troff-man; nroff -mandoc -Tutf8; copiousoutput; print=nroff -mandoc -Tutf8 | print text/plain:-
52 +# It'd be nice to limit this to compressed formats (e.g. x-*), but the file
53 +# format doesn't support that, and less has good fallbacks already.
54 +application/*; less %s; copiousoutput; needsterminal
55 +
56 +audio/*; xdg-open %s; needsterminal
57 +image/*; xdg-open %s; needsterminal
58 +
59 +text/html; lynx -dump -assume_charset=%{charset} %s; copiousoutput; description=HTML Text; nametemplate=%s.html
60 +text/troff; man -l %s; needsterminal; description=Man page
61 +text/*; less %s; needsterminal
62 +text/*; gview %s; edit=gvim -f %s; compose=gvim -f %s; test=test "$DISPLAY" != ""
63 +text/*; view %s; edit=vim %s; compose=vim %s; needsterminal
64 +text/*; more %s; needsterminal
65
66 diff --git a/net-mail/mailbase/mailbase-1.8.ebuild b/net-mail/mailbase/mailbase-1.8.ebuild
67 new file mode 100644
68 index 000000000000..699bdc713711
69 --- /dev/null
70 +++ b/net-mail/mailbase/mailbase-1.8.ebuild
71 @@ -0,0 +1,45 @@
72 +# Copyright 1999-2021 Gentoo Authors
73 +# Distributed under the terms of the GNU General Public License v2
74 +
75 +EAPI="7"
76 +
77 +inherit pam
78 +
79 +DESCRIPTION="MTA layout package"
80 +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
81 +
82 +LICENSE="GPL-2"
83 +SLOT="0"
84 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
85 +IUSE="pam"
86 +
87 +RDEPEND="
88 + acct-group/mail
89 + acct-user/mail
90 + acct-user/postmaster
91 + pam? ( sys-libs/pam )
92 +"
93 +
94 +S=${WORKDIR}
95 +
96 +src_install() {
97 + insinto /etc/mail
98 + doins "${FILESDIR}"/aliases
99 + insinto /etc
100 + newins "${FILESDIR}"/mailcap-r3 mailcap
101 + doman "${FILESDIR}"/mailcap.5
102 +
103 + dosym spool/mail /var/mail
104 +
105 + if use pam ; then
106 + newpamd "${FILESDIR}"/common-pamd-include pop
107 + newpamd "${FILESDIR}"/common-pamd-include imap
108 + local p
109 + for p in pop3 pop3s pops ; do
110 + dosym pop /etc/pam.d/${p}
111 + done
112 + for p in imap4 imap4s imaps ; do
113 + dosym imap /etc/pam.d/${p}
114 + done
115 + fi
116 +}