1 |
commit: f2b712ce31a89f4873ae76c1f5a4148eebfc7533 |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 29 10:41:04 2020 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 10:41:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2b712ce |
7 |
|
8 |
net-mail/mailbase: do not hardcode application paths |
9 |
|
10 |
as it obviously wont work for gentoo prefix project. |
11 |
and review and revize the mailcap file while at it. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/761772 |
14 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
15 |
Signed-off-by: Eray Aslan <eras <AT> gentoo.org> |
16 |
|
17 |
net-mail/mailbase/files/mailcap-r1 | 19 +++++++++++++++ |
18 |
net-mail/mailbase/mailbase-1.6.ebuild | 46 +++++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 65 insertions(+) |
20 |
|
21 |
diff --git a/net-mail/mailbase/files/mailcap-r1 b/net-mail/mailbase/files/mailcap-r1 |
22 |
new file mode 100644 |
23 |
index 00000000000..0ffdcca3783 |
24 |
--- /dev/null |
25 |
+++ b/net-mail/mailbase/files/mailcap-r1 |
26 |
@@ -0,0 +1,19 @@ |
27 |
+application/pdf; xdg-open '%s'; needsterminal |
28 |
+application/postscript; xdg-open '%s'; needsterminal |
29 |
+application/x-info; info --subnodes -o /dev/stdout -f '%s' 2>/dev/null; copiousoutput; description=GNU Info document |
30 |
+application/x-gtar; tar tvzf -; print=tar tvzf - | print text/plain:-; copiousoutput |
31 |
+application/x-tar; tar tvf -; print=tar tvf - | print text/plain:-; copiousoutput |
32 |
+application/x-troff-man; nroff -mandoc -Tutf8; copiousoutput; print=nroff -mandoc -Tutf8 | print text/plain:- |
33 |
+ |
34 |
+audio/*; xdg-open '%s'; needsterminal |
35 |
+image/*; xdg-open '%s'; needsterminal |
36 |
+ |
37 |
+text/html; lynx -dump '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html |
38 |
+text/troff; man -l '%s'; needsterminal; description=Man page |
39 |
+text/*; less '%s'; needsterminal |
40 |
+text/*; gview '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; test=test "$DISPLAY" != "" |
41 |
+text/*; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal |
42 |
+text/*; more '%s'; needsterminal |
43 |
+ |
44 |
+*/*; less '%s'; needsterminal |
45 |
+*/*; false; print=lpr '%s' |
46 |
|
47 |
diff --git a/net-mail/mailbase/mailbase-1.6.ebuild b/net-mail/mailbase/mailbase-1.6.ebuild |
48 |
new file mode 100644 |
49 |
index 00000000000..7687676d7b1 |
50 |
--- /dev/null |
51 |
+++ b/net-mail/mailbase/mailbase-1.6.ebuild |
52 |
@@ -0,0 +1,46 @@ |
53 |
+# Copyright 1999-2020 Gentoo Authors |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+ |
56 |
+EAPI=7 |
57 |
+inherit pam |
58 |
+ |
59 |
+DESCRIPTION="MTA layout package" |
60 |
+SRC_URI="" |
61 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" |
62 |
+ |
63 |
+LICENSE="GPL-2" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
66 |
+IUSE="pam" |
67 |
+ |
68 |
+RDEPEND=" |
69 |
+ acct-group/mail |
70 |
+ acct-user/mail |
71 |
+ acct-user/postmaster |
72 |
+ pam? ( sys-libs/pam ) |
73 |
+ !<net-mail/metamail-2.7.53.3-r2" |
74 |
+ |
75 |
+S=${WORKDIR} |
76 |
+ |
77 |
+src_install() { |
78 |
+ dodir /etc/mail |
79 |
+ insinto /etc/mail |
80 |
+ doins "${FILESDIR}"/aliases |
81 |
+ insinto /etc |
82 |
+ newins "${FILESDIR}"/mailcap-r1 mailcap |
83 |
+ doman "${FILESDIR}"/mailcap.5 |
84 |
+ |
85 |
+ dosym spool/mail /var/mail |
86 |
+ |
87 |
+ newpamd "${FILESDIR}"/common-pamd-include pop |
88 |
+ newpamd "${FILESDIR}"/common-pamd-include imap |
89 |
+ if use pam ; then |
90 |
+ local p |
91 |
+ for p in pop3 pop3s pops ; do |
92 |
+ dosym pop /etc/pam.d/${p} |
93 |
+ done |
94 |
+ for p in imap4 imap4s imaps ; do |
95 |
+ dosym imap /etc/pam.d/${p} |
96 |
+ done |
97 |
+ fi |
98 |
+} |