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