summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-04-19 15:53:09 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-04-19 15:53:27 +0100
commit29341308ed16c5648cbd29179a68dd72e212e5cf (patch)
tree8fb6fa781a92e3048970bad11a4e536935b28539 /net-mail/mailgraph
parentsys-kernel/genkernel: drop old (diff)
downloadgentoo-29341308ed16c5648cbd29179a68dd72e212e5cf.tar.gz
gentoo-29341308ed16c5648cbd29179a68dd72e212e5cf.tar.bz2
gentoo-29341308ed16c5648cbd29179a68dd72e212e5cf.zip
net-mail/mailgraph: drop lexicographical version compare
Drop comparison against long removed version and also drop unsafe 'chown' calls in pkg_*() phase. Closes: https://bugs.gentoo.org/705266 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'net-mail/mailgraph')
-rw-r--r--net-mail/mailgraph/mailgraph-1.14-r2.ebuild15
1 files changed, 1 insertions, 14 deletions
diff --git a/net-mail/mailgraph/mailgraph-1.14-r2.ebuild b/net-mail/mailgraph/mailgraph-1.14-r2.ebuild
index 732d4934e48d..9d60fa3552b1 100644
--- a/net-mail/mailgraph/mailgraph-1.14-r2.ebuild
+++ b/net-mail/mailgraph/mailgraph-1.14-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=4
@@ -75,19 +75,6 @@ src_install() {
}
pkg_postinst() {
- # Fix ownerships - previous versions installed these with
- # root as owner
- if [[ ${REPLACING_VERSIONS} < 1.13 ]] ; then
- if [[ -d /var/lib/mailgraph ]] ; then
- chown mgraph:mgraph /var/lib/mailgraph
- fi
- if [[ -d /var/log/mailgraph ]] ; then
- chown mgraph:adm /var/log/mailgraph
- fi
- if [[ -d /var/run/mailgraph ]] ; then
- chown mgraph:adm /var/run/mailgraph
- fi
- fi
elog "Mailgraph will run as user mgraph with group adm by default."
elog "This can be changed in /etc/conf.d/mailgraph if it doesn't fit."
elog "Remember to adjust MG_DAEMON_LOG, MG_DAEMON_PID and MG_DAEMON_RRD"