summaryrefslogtreecommitdiff
path: root/acct-user/stdiscosrv
diff options
context:
space:
mode:
Diffstat (limited to 'acct-user/stdiscosrv')
-rw-r--r--acct-user/stdiscosrv/Manifest2
-rw-r--r--acct-user/stdiscosrv/stdiscosrv-1-r1.ebuild16
2 files changed, 6 insertions, 12 deletions
diff --git a/acct-user/stdiscosrv/Manifest b/acct-user/stdiscosrv/Manifest
index cf4a99d790f7..bd607c9d5e04 100644
--- a/acct-user/stdiscosrv/Manifest
+++ b/acct-user/stdiscosrv/Manifest
@@ -1,2 +1,2 @@
-EBUILD stdiscosrv-1-r1.ebuild 682 BLAKE2B 7b42a0c73e254b87b67d41778a9b08c8e7937d2854e354377207a195f4ffc6be5fe5a0efd4d7030424bc97dcfc2e1b7ceea607794d1c4015962ce7ffb9c6eee1 SHA512 bb97fc7d614842397f01cda35a48797ceccb9a88111995d35ddea040b124141f2650653c18d14a2f53102124ec682b1b7aac7056fdbf249fb1aae29415c35974
+EBUILD stdiscosrv-1-r1.ebuild 561 BLAKE2B b57e4ee824c47e3f219c5f0bbcf3ad53e5c7d9576112708d507da98f236e7a1f1299f379c0ee1920ce8f3dcd299cc9444406bdc5f54ae4542feab50c7838f5af SHA512 3b133e62bee48caf8bf9479e0cf766b937c58c9ca8b0c9cf0fd804bae92922233fd3f8de9153e4e28f3e9e216140ad63dcc8da5eb57b7153a3eea08aba8a5d52
MISC metadata.xml 257 BLAKE2B 65c73e9c8dcc3e61188ef911f456b2ae23c9f2a0a207c7e3075566177dd9ea14b0b2da755fe8b864552179ebc17ff35a12a824c1eae0d52d3ecacf2a5aacf438 SHA512 89f76751a66c20c3d723ab5eb4a547baae7aa155ed5cc0e82c9c78ce6a26a8b51a2025c25b3a2df8e0b67b41e5c7479b8d162111fbd2f0949adecdeb44b5a750
diff --git a/acct-user/stdiscosrv/stdiscosrv-1-r1.ebuild b/acct-user/stdiscosrv/stdiscosrv-1-r1.ebuild
index 7ec9267bc6f2..201998ede29e 100644
--- a/acct-user/stdiscosrv/stdiscosrv-1-r1.ebuild
+++ b/acct-user/stdiscosrv/stdiscosrv-1-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2019-2023 Gentoo Authors
+# Copyright 2019-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit acct-user
+inherit acct-user eapi9-ver
DESCRIPTION="User for the Syncthing discovery server"
ACCT_USER_ID=497
@@ -14,14 +14,8 @@ 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-discosrv"
- ewarn "If you have any files in /var/lib/${PN}, move them to the new location by hand"
- break
- fi
- done
+ if ver_replacing -lt 1; then
+ ewarn "The home directory of this user has changed to /var/lib/syncthing-discosrv"
+ ewarn "If you have any files in /var/lib/${PN}, move them to the new location by hand"
fi
}