commit:     b5e432606ab2c34671869898043217e77a56d0f4
Author:     Giuseppe Foti <foti.giuseppe <AT> gmail <DOT> com>
AuthorDate: Sun Jul 23 14:25:47 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jul 27 05:57:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5e43260

acct-user/logcheck: adding systemd use flag; add myself as maintainer

Signed-off-by: Giuseppe Foti <foti.giuseppe <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../logcheck/{logcheck-0-r1.ebuild => logcheck-0-r2.ebuild}      | 8 ++++++++
 acct-user/logcheck/metadata.xml                                  | 9 ++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/acct-user/logcheck/logcheck-0-r1.ebuild 
b/acct-user/logcheck/logcheck-0-r2.ebuild
similarity index 61%
rename from acct-user/logcheck/logcheck-0-r1.ebuild
rename to acct-user/logcheck/logcheck-0-r2.ebuild
index f2635a5ebd27..400eef262709 100644
--- a/acct-user/logcheck/logcheck-0-r1.ebuild
+++ b/acct-user/logcheck/logcheck-0-r2.ebuild
@@ -6,8 +6,16 @@ EAPI=7
 inherit acct-user
 
 DESCRIPTION="User for app-admin/logcheck"
+IUSE="systemd"
 
 ACCT_USER_GROUPS=( "logcheck" )
 ACCT_USER_ID="284"
 
 acct-user_add_deps
+
+pkg_setup() {
+       # Allow the 'logcheck' user to view the systemd journal.
+       if use systemd; then
+               ACCT_USER_GROUPS+=( systemd-journal )
+       fi
+}

diff --git a/acct-user/logcheck/metadata.xml b/acct-user/logcheck/metadata.xml
index 115e9d64a669..7530d08266f4 100644
--- a/acct-user/logcheck/metadata.xml
+++ b/acct-user/logcheck/metadata.xml
@@ -1,5 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-       <!-- maintainer-needed -->
+       <maintainer type="person" proxied="yes">
+               <email>foti.giuse...@gmail.com</email>
+               <name>Giuseppe Foti</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>proxy-ma...@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
 </pkgmetadata>

Reply via email to