commit:     8138c6f155179dcd5e850effbedcc08816157a5b
Author:     Philippe Chaintreuil <gentoo_bugs_peep <AT> parallaxshift <DOT> com>
AuthorDate: Tue Jan 21 11:34:21 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon May 11 14:22:47 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8138c6f1

acct-user/spamd: create for spamassassin

Needed for mail-filter/spamassassin GLEP-81 compliance.

See-Also: https://github.com/gentoo/gentoo/pull/14055/
Package-Manager: Portage-2.3.84, Repoman-2.3.16
Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep <AT> parallaxshift.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 acct-user/spamd/metadata.xml   | 13 +++++++++++++
 acct-user/spamd/spamd-0.ebuild | 25 +++++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/acct-user/spamd/metadata.xml b/acct-user/spamd/metadata.xml
new file mode 100644
index 00000000000..265493eecbe
--- /dev/null
+++ b/acct-user/spamd/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>[email protected]</email>
+    <name>Philippe Chaintreuil</name>
+  </maintainer>
+
+  <maintainer type="project">
+    <email>[email protected]</email>
+    <name>Proxy Maintainers</name>
+  </maintainer>
+</pkgmetadata>

diff --git a/acct-user/spamd/spamd-0.ebuild b/acct-user/spamd/spamd-0.ebuild
new file mode 100644
index 00000000000..e4fcb0a0378
--- /dev/null
+++ b/acct-user/spamd/spamd-0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit acct-user
+
+DESCRIPTION="User for the SpamAssassin daemon"
+
+ACCT_USER_ID=337
+ACCT_USER_GROUPS=( "${PN}" )
+# The spamd daemon runs as this user. Use a real home directory so
+# that it can hold SA configuration.
+#
+# Since spamd's home contains user-modifiable config files, it's
+# a violation of the Linux FHS for it to be here, but it's been
+# decided it can't be in /home/.
+#
+# - https://github.com/gentoo/gentoo/pull/14055#issuecomment-582929503
+# - 
https://archives.gentoo.org/gentoo-dev/message/790294f7a46496aecd0056289c4b6d08
+#
+ACCT_USER_HOME="/var/lib/spamd"
+ACCT_USER_HOME_PERMS=0700
+
+acct-user_add_deps

Reply via email to