Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/vpopmail/
Date: Sat, 28 Sep 2019 06:46:36
Message-Id: 1569653175.4a1b9aba414abe2f31da43724ba71f38e076dde0.juippis@gentoo
1 commit: 4a1b9aba414abe2f31da43724ba71f38e076dde0
2 Author: Rolf Eike Beer <eike <AT> sf-mail <DOT> de>
3 AuthorDate: Thu Sep 26 20:26:32 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 28 06:46:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a1b9aba
7
8 net-mail/vpopmail: use acct-user/vpopmail
9
10 Since this introduces a change if the user actually changed the home directory
11 of that user in an older version it is only used in the most recent ebuild.
12
13 Signed-off-by: Rolf Eike Beer <eike <AT> sf-mail.de>
14 Closes: https://github.com/gentoo/gentoo/pull/13049
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 net-mail/vpopmail/vpopmail-5.4.33-r4.ebuild | 25 +++----------------------
18 1 file changed, 3 insertions(+), 22 deletions(-)
19
20 diff --git a/net-mail/vpopmail/vpopmail-5.4.33-r4.ebuild b/net-mail/vpopmail/vpopmail-5.4.33-r4.ebuild
21 index 4b291b71351..3cbfe467136 100644
22 --- a/net-mail/vpopmail/vpopmail-5.4.33-r4.ebuild
23 +++ b/net-mail/vpopmail/vpopmail-5.4.33-r4.ebuild
24 @@ -3,7 +3,7 @@
25
26 EAPI=7
27
28 -inherit autotools eutils fixheadtails qmail user
29 +inherit autotools eutils fixheadtails qmail
30
31 HOMEPAGE="http://www.inter7.com/index.php?page=vpopmail"
32 DESCRIPTION="Collection of programs to manage virtual email on Qmail servers"
33 @@ -38,6 +38,7 @@ PATCHES=(
34 "${FILESDIR}"/${PN}-5.4.33-unistd.patch
35 )
36 DOCS=(
37 + ChangeLog
38 doc/.
39 )
40 HTML_DOCS=(
41 @@ -45,23 +46,9 @@ HTML_DOCS=(
42 man_html/.
43 )
44
45 -# This makes sure the variable is set, and that it isn't null.
46 -VPOP_DEFAULT_HOME="/var/vpopmail"
47 -
48 -vpopmail_set_homedir() {
49 - VPOP_HOME=$(egethome vpopmail)
50 - if [[ -z "${VPOP_HOME}" ]]; then
51 - eerror "vpopmail's home directory is null in passwd data!"
52 - eerror "You probably want to check that out."
53 - eerror "Continuing with default."
54 - VPOP_HOME="${VPOP_DEFAULT_HOME}"
55 - else
56 - einfo "Setting VPOP_HOME to: $VPOP_HOME"
57 - fi
58 -}
59 +VPOP_HOME="/var/vpopmail"
60
61 pkg_setup() {
62 - enewuser vpopmail 89 -1 ${VPOP_DEFAULT_HOME} vpopmail
63 upgradewarning
64 }
65
66 @@ -96,8 +83,6 @@ src_prepare() {
67 }
68
69 src_configure() {
70 - vpopmail_set_homedir
71 -
72 local authopts
73 if use mysql; then
74 incdir=$(mysql_config --variable=pkgincludedir || die)
75 @@ -148,8 +133,6 @@ src_configure() {
76 }
77
78 src_install() {
79 - vpopmail_set_homedir
80 -
81 emake DESTDIR="${D}" install
82 keepdir "${VPOP_HOME}"/domains
83
84 @@ -229,8 +212,6 @@ pkg_postinst() {
85 }
86
87 pkg_postrm() {
88 - vpopmail_set_homedir
89 -
90 elog "The vpopmail DATA will NOT be removed automatically."
91 elog "You can delete them manually by removing the ${VPOP_HOME} directory."
92 }