From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: acct-user/strelaysrv/
Date: Thu, 9 Dec 2021 12:03:24 +0000 (UTC) [thread overview]
Message-ID: <1639051395.4714d7ba8615baaa039fe1e6524e43452be89ac3.marecki@gentoo> (raw)
commit: 4714d7ba8615baaa039fe1e6524e43452be89ac3
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 6 16:42:37 2021 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Dec 9 12:03:15 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4714d7ba
acct-user/strelaysrv: new home directory and main group
To reflect upstream changes to their init scripts and systemd units,
apart from the user name itself - that would be more annoying to fix.
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
acct-user/strelaysrv/strelaysrv-1.ebuild | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/acct-user/strelaysrv/strelaysrv-1.ebuild b/acct-user/strelaysrv/strelaysrv-1.ebuild
new file mode 100644
index 000000000000..c4b804d8160c
--- /dev/null
+++ b/acct-user/strelaysrv/strelaysrv-1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit acct-user
+
+DESCRIPTION="User for the Syncthing relay server"
+ACCT_USER_ID=496
+ACCT_USER_HOME=/var/lib/syncthing-relaysrv
+ACCT_USER_HOME_PERMS=0770
+ACCT_USER_GROUPS=( syncthing )
+
+acct-user_add_deps
+
+pkg_postinst() {
+ if [[ -n "${REPLACING_VERSIONS}" ]]; then
+ local rver
+ for rver in ${REPLACING_VERSIONS} ; do
+ if ver_test "${rver}" -lt 1; then
+ ewarn "The home directory of this user has changed to /var/lib/syncthing-relaysrv"
+ ewarn "If you have any files in /var/lib/${PN}, move them to the new location by hand"
+ break
+ fi
+ done
+ fi
+}
next reply other threads:[~2021-12-09 12:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-09 12:03 Marek Szuba [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-28 22:33 [gentoo-commits] repo/gentoo:master commit in: acct-user/strelaysrv/ Marc Schiffbauer
2022-01-18 16:40 Marek Szuba
2019-07-03 10:00 Marek Szuba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1639051395.4714d7ba8615baaa039fe1e6524e43452be89ac3.marecki@gentoo \
--to=marecki@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox