public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-mail/mailgraph/
@ 2020-04-19 14:53 Sergei Trofimovich
  0 siblings, 0 replies; 3+ messages in thread
From: Sergei Trofimovich @ 2020-04-19 14:53 UTC (permalink / raw
  To: gentoo-commits

commit:     29341308ed16c5648cbd29179a68dd72e212e5cf
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 19 14:53:09 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Apr 19 14:53:27 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29341308

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 <AT> gentoo.org>

 net-mail/mailgraph/mailgraph-1.14-r2.ebuild | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/net-mail/mailgraph/mailgraph-1.14-r2.ebuild b/net-mail/mailgraph/mailgraph-1.14-r2.ebuild
index 732d4934e48..9d60fa3552b 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"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-mail/mailgraph/
@ 2021-10-04  0:47 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2021-10-04  0:47 UTC (permalink / raw
  To: gentoo-commits

commit:     ed2e40de9c98ca5260a75a3daa9a1c33ed0200ba
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  4 00:31:24 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct  4 00:31:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed2e40de

net-mail/mailgraph: fix MissingInherits (egetent)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../mailgraph/{mailgraph-1.14-r2.ebuild => mailgraph-1.14-r3.ebuild}  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/net-mail/mailgraph/mailgraph-1.14-r2.ebuild b/net-mail/mailgraph/mailgraph-1.14-r3.ebuild
similarity index 98%
rename from net-mail/mailgraph/mailgraph-1.14-r2.ebuild
rename to net-mail/mailgraph/mailgraph-1.14-r3.ebuild
index 76c14702b18..3622c4e6396 100644
--- a/net-mail/mailgraph/mailgraph-1.14-r2.ebuild
+++ b/net-mail/mailgraph/mailgraph-1.14-r3.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
+inherit user-info
+
 DESCRIPTION="A mail statistics RRDtool frontend for Postfix"
 HOMEPAGE="http://mailgraph.schweikert.ch/"
 SRC_URI="http://mailgraph.schweikert.ch//pub/${P}.tar.gz"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-mail/mailgraph/
@ 2024-12-01 11:54 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-12-01 11:54 UTC (permalink / raw
  To: gentoo-commits

commit:     5d8c4baefd5b01df441088b75b33b2848fe60772
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Jul 12 19:43:22 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec  1 11:52:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d8c4bae

net-mail/mailgraph: BannedEapiCommand

Misses migration after acct-user got introduced.

Add apache2 and nginx to IUSE.
Use the new `mgraph` USE-flag for acct-user/apache and acct-user/nginx in
RDEPEND.
Adjust pkg_postinst() to match.

BannedEapiCommand
'gpasswd' banned in EAPI 7, used on line 81 'gpasswd -a apache mgraph'

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/36445
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...aph-1.14-r3.ebuild => mailgraph-1.14-r4.ebuild} | 35 +++++++---------------
 net-mail/mailgraph/metadata.xml                    |  3 ++
 2 files changed, 14 insertions(+), 24 deletions(-)

diff --git a/net-mail/mailgraph/mailgraph-1.14-r3.ebuild b/net-mail/mailgraph/mailgraph-1.14-r4.ebuild
similarity index 70%
rename from net-mail/mailgraph/mailgraph-1.14-r3.ebuild
rename to net-mail/mailgraph/mailgraph-1.14-r4.ebuild
index 3622c4e6396c..868fe0fd041a 100644
--- a/net-mail/mailgraph/mailgraph-1.14-r3.ebuild
+++ b/net-mail/mailgraph/mailgraph-1.14-r4.ebuild
@@ -1,18 +1,17 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
-
-inherit user-info
+EAPI=8
 
 DESCRIPTION="A mail statistics RRDtool frontend for Postfix"
-HOMEPAGE="http://mailgraph.schweikert.ch/"
-SRC_URI="http://mailgraph.schweikert.ch//pub/${P}.tar.gz"
+HOMEPAGE="https://mailgraph.schweikert.ch/"
+SRC_URI="https://mailgraph.schweikert.ch/pub/${P}.tar.gz"
 
 LICENSE="GPL-2"
 # Change SLOT to 0 when appropriate
 SLOT="1.14"
 KEYWORDS="amd64 x86"
+IUSE="apache2 nginx"
 
 # for the RRDs
 DEPEND="
@@ -20,6 +19,8 @@ DEPEND="
 	acct-user/mgraph"
 RDEPEND="
 	${DEPEND}
+	apache2? ( acct-user/apache[mgraph] )
+	nginx? ( acct-user/nginx[mgraph] )
 	dev-lang/perl
 	dev-perl/File-Tail
 	>=net-analyzer/rrdtool-1.2.2[graph,perl]"
@@ -73,25 +74,11 @@ pkg_postinst() {
 	ewarn "/etc/conf.d/mailgraph accordingly! Otherwise mailgraph won't get to know"
 	ewarn "the corresponding events (virus/spam mail found etc.)."
 
+	elog "If you are using neither apache nor nginx and the included CGI script"
+	elog "is unable to read the mailgraph RRD files, please add the user for"
+	elog "that webserver to the group mgraph manually:"
 	elog
-	elog "Checking for user apache:"
-	if egetent passwd apache >&/dev/null; then
-		elog "Adding user apache to group mgraph so the included"
-		elog "CGI script is able to read the mailgraph RRD files"
-		if ! gpasswd -a apache mgraph >&/dev/null; then
-			eerror "Failed to add user apache to group mgraph!"
-			eerror "Please check manually."
-		fi
-	else
-		elog
-		elog "User apache not found, maybe we will be running a"
-		elog "webserver with a different UID?"
-		elog "If that's the case, please add that user to the"
-		elog "group mgraph manually to enable the included"
-		elog "CGI script to read the mailgraph RRD files:"
-		elog
-		elog "\tgpasswd -a <user> mgraph"
-	fi
+	elog "\tgpasswd -a <user> mgraph"
 
 	ewarn
 	ewarn "mailgraph.cgi is installed in /usr/share/${PN}/"

diff --git a/net-mail/mailgraph/metadata.xml b/net-mail/mailgraph/metadata.xml
index bef24d2c2337..e8707cb9b9a7 100644
--- a/net-mail/mailgraph/metadata.xml
+++ b/net-mail/mailgraph/metadata.xml
@@ -2,4 +2,7 @@
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
   <!-- maintainer-needed -->
+  <use>
+    <flag name="nginx">Add nginx support</flag>
+  </use>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-01 11:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-01 11:54 [gentoo-commits] repo/gentoo:master commit in: net-mail/mailgraph/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2021-10-04  0:47 Sam James
2020-04-19 14:53 Sergei Trofimovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox