public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Eray Aslan" <eras@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mailbase/files/, net-mail/mailbase/
Date: Tue, 29 Dec 2020 10:41:35 +0000 (UTC)	[thread overview]
Message-ID: <1609238490.f2b712ce31a89f4873ae76c1f5a4148eebfc7533.eras@gentoo> (raw)

commit:     f2b712ce31a89f4873ae76c1f5a4148eebfc7533
Author:     Eray Aslan <eras <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 29 10:41:04 2020 +0000
Commit:     Eray Aslan <eras <AT> gentoo <DOT> org>
CommitDate: Tue Dec 29 10:41:30 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2b712ce

net-mail/mailbase: do not hardcode application paths

as it obviously wont work for gentoo prefix project.
and review and revize the mailcap file while at it.

Bug: https://bugs.gentoo.org/761772
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Eray Aslan <eras <AT> gentoo.org>

 net-mail/mailbase/files/mailcap-r1    | 19 +++++++++++++++
 net-mail/mailbase/mailbase-1.6.ebuild | 46 +++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/net-mail/mailbase/files/mailcap-r1 b/net-mail/mailbase/files/mailcap-r1
new file mode 100644
index 00000000000..0ffdcca3783
--- /dev/null
+++ b/net-mail/mailbase/files/mailcap-r1
@@ -0,0 +1,19 @@
+application/pdf; xdg-open '%s'; needsterminal
+application/postscript; xdg-open '%s'; needsterminal
+application/x-info; info --subnodes -o /dev/stdout -f '%s' 2>/dev/null; copiousoutput; description=GNU Info document
+application/x-gtar; tar tvzf -; print=tar tvzf - | print text/plain:-; copiousoutput
+application/x-tar; tar tvf -; print=tar tvf - | print text/plain:-; copiousoutput
+application/x-troff-man; nroff -mandoc -Tutf8; copiousoutput; print=nroff -mandoc -Tutf8 | print text/plain:-
+
+audio/*; xdg-open '%s'; needsterminal
+image/*; xdg-open '%s'; needsterminal
+
+text/html; lynx -dump '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html
+text/troff; man -l '%s'; needsterminal; description=Man page
+text/*; less '%s'; needsterminal
+text/*; gview '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; test=test "$DISPLAY" != ""
+text/*; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal
+text/*; more '%s'; needsterminal
+
+*/*; less '%s'; needsterminal
+*/*; false; print=lpr '%s'

diff --git a/net-mail/mailbase/mailbase-1.6.ebuild b/net-mail/mailbase/mailbase-1.6.ebuild
new file mode 100644
index 00000000000..7687676d7b1
--- /dev/null
+++ b/net-mail/mailbase/mailbase-1.6.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit pam
+
+DESCRIPTION="MTA layout package"
+SRC_URI=""
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="pam"
+
+RDEPEND="
+	acct-group/mail
+	acct-user/mail
+	acct-user/postmaster
+	pam? ( sys-libs/pam )
+	!<net-mail/metamail-2.7.53.3-r2"
+
+S=${WORKDIR}
+
+src_install() {
+	dodir /etc/mail
+	insinto /etc/mail
+	doins "${FILESDIR}"/aliases
+	insinto /etc
+	newins "${FILESDIR}"/mailcap-r1 mailcap
+	doman "${FILESDIR}"/mailcap.5
+
+	dosym spool/mail /var/mail
+
+	newpamd "${FILESDIR}"/common-pamd-include pop
+	newpamd "${FILESDIR}"/common-pamd-include imap
+	if use pam ; then
+		local p
+		for p in pop3 pop3s pops ; do
+			dosym pop /etc/pam.d/${p}
+		done
+		for p in imap4 imap4s imaps ; do
+			dosym imap /etc/pam.d/${p}
+		done
+	fi
+}


             reply	other threads:[~2020-12-29 10:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-29 10:41 Eray Aslan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-12-27  5:35 [gentoo-commits] repo/gentoo:master commit in: net-mail/mailbase/files/, net-mail/mailbase/ Eray Aslan
2022-04-19 12:05 Eray Aslan
2022-05-28  8:24 Eray Aslan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1609238490.f2b712ce31a89f4873ae76c1f5a4148eebfc7533.eras@gentoo \
    --to=eras@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox