Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 7/7] net-mail/mailbase: Migrate to use acct-*/{mail,postmaster}
Date: Thu, 20 Jun 2019 10:13:46
Message-Id: 20190620101114.5361-8-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/7] User/group assignment: ftp, mail, postmaster by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 net-mail/mailbase/mailbase-1.5-r1.ebuild | 45 ++++++++++++++++++++++++
4 1 file changed, 45 insertions(+)
5 create mode 100644 net-mail/mailbase/mailbase-1.5-r1.ebuild
6
7 diff --git a/net-mail/mailbase/mailbase-1.5-r1.ebuild b/net-mail/mailbase/mailbase-1.5-r1.ebuild
8 new file mode 100644
9 index 000000000000..8a212cf0d798
10 --- /dev/null
11 +++ b/net-mail/mailbase/mailbase-1.5-r1.ebuild
12 @@ -0,0 +1,45 @@
13 +# Copyright 1999-2019 Gentoo Authors
14 +# Distributed under the terms of the GNU General Public License v2
15 +
16 +EAPI=7
17 +inherit pam
18 +
19 +DESCRIPTION="MTA layout package"
20 +SRC_URI=""
21 +HOMEPAGE="https://www.gentoo.org/"
22 +
23 +LICENSE="GPL-2"
24 +SLOT="0"
25 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
26 +IUSE="pam"
27 +
28 +RDEPEND="
29 + acct-group/mail
30 + acct-user/mail
31 + acct-user/postmaster
32 + pam? ( virtual/pam )"
33 +
34 +S=${WORKDIR}
35 +
36 +src_install() {
37 + dodir /etc/mail
38 + insinto /etc/mail
39 + doins "${FILESDIR}"/aliases
40 + insinto /etc
41 + doins "${FILESDIR}"/mailcap
42 + doman "${FILESDIR}"/mailcap.5
43 +
44 + dosym spool/mail /var/mail
45 +
46 + newpamd "${FILESDIR}"/common-pamd-include pop
47 + newpamd "${FILESDIR}"/common-pamd-include imap
48 + if use pam ; then
49 + local p
50 + for p in pop3 pop3s pops ; do
51 + dosym pop /etc/pam.d/${p}
52 + done
53 + for p in imap4 imap4s imaps ; do
54 + dosym imap /etc/pam.d/${p}
55 + done
56 + fi
57 +}
58 --
59 2.22.0