From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4544B158090 for ; Sat, 28 May 2022 08:24:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ED39BE0848; Sat, 28 May 2022 08:24:41 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CE121E0848 for ; Sat, 28 May 2022 08:24:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B44D0341522 for ; Sat, 28 May 2022 08:24:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 788C0464 for ; Sat, 28 May 2022 08:24:38 +0000 (UTC) From: "Eray Aslan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eray Aslan" Message-ID: <1653726029.2a7b70d6874dfd700cc9c92f0e51c0594366b201.eras@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mailbase/files/, net-mail/mailbase/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/mailbase/files/mailcap-r4 net-mail/mailbase/mailbase-1.8.1.ebuild X-VCS-Directories: net-mail/mailbase/files/ net-mail/mailbase/ X-VCS-Committer: eras X-VCS-Committer-Name: Eray Aslan X-VCS-Revision: 2a7b70d6874dfd700cc9c92f0e51c0594366b201 X-VCS-Branch: master Date: Sat, 28 May 2022 08:24:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f1536f56-411f-47e7-ad04-d27b03682e01 X-Archives-Hash: 1accfc07181c3c6a4a0dd234aad644ce commit: 2a7b70d6874dfd700cc9c92f0e51c0594366b201 Author: Eray Aslan gentoo org> AuthorDate: Sat May 28 08:20:04 2022 +0000 Commit: Eray Aslan gentoo org> CommitDate: Sat May 28 08:20:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a7b70d6 net-mail/mailbase: add 1.8.1 copiousoutput and needsterminal do not make sense when used together. one is "does no interaction with the user" and the other "needs to interact with the user". Signed-off-by: Eray Aslan gentoo.org> net-mail/mailbase/files/mailcap-r4 | 30 ++++++++++++++++++++++ net-mail/mailbase/mailbase-1.8.1.ebuild | 44 +++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/net-mail/mailbase/files/mailcap-r4 b/net-mail/mailbase/files/mailcap-r4 new file mode 100644 index 000000000000..8c1bd310e3de --- /dev/null +++ b/net-mail/mailbase/files/mailcap-r4 @@ -0,0 +1,30 @@ +# Database binding MIME types to programs that can process them. +# This file is generally used by mail clients to view attachments. +# +# Users should add their own rules to their ~/.mailcap file. That file will be +# processed first before falling back to this one. +# +# For more information, see the mailcap(5) man page. + +# NB: Do not quote %s. Clients will handle expanding it with proper quoting, +# so adding quotes ourselves just confuses things. + +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:- +# It'd be nice to limit this to compressed formats (e.g. x-*), but the file +# format doesn't support that, and less has good fallbacks already. +application/*; less %s; needsterminal + +audio/*; xdg-open %s; needsterminal +image/*; xdg-open %s; needsterminal + +text/html; lynx -dump -assume_charset=%{charset} %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 diff --git a/net-mail/mailbase/mailbase-1.8.1.ebuild b/net-mail/mailbase/mailbase-1.8.1.ebuild new file mode 100644 index 000000000000..31a62191a865 --- /dev/null +++ b/net-mail/mailbase/mailbase-1.8.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit pam + +DESCRIPTION="MTA layout package" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +S=${WORKDIR} + +LICENSE="GPL-2" +SLOT="0" +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" +IUSE="pam" + +RDEPEND=" + acct-group/mail + acct-user/mail + acct-user/postmaster + pam? ( sys-libs/pam ) +" + +src_install() { + insinto /etc/mail + doins "${FILESDIR}"/aliases + insinto /etc + newins "${FILESDIR}"/mailcap-r4 mailcap + doman "${FILESDIR}"/mailcap.5 + + dosym spool/mail /var/mail + + if use pam ; then + newpamd "${FILESDIR}"/common-pamd-include pop + newpamd "${FILESDIR}"/common-pamd-include imap + 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 +}