diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
commit | 93a93e9a3b53c1a73142a305ea1f8136846942ee (patch) | |
tree | b9791a06ab3284e27b568412c59316c66240c682 /acct-user/strelaysrv | |
parent | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff) |
gentoo resync : 22.12.2021
Diffstat (limited to 'acct-user/strelaysrv')
-rw-r--r-- | acct-user/strelaysrv/Manifest | 1 | ||||
-rw-r--r-- | acct-user/strelaysrv/strelaysrv-1.ebuild | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/acct-user/strelaysrv/Manifest b/acct-user/strelaysrv/Manifest index 25a4c3c102b1..2266b84d1f5d 100644 --- a/acct-user/strelaysrv/Manifest +++ b/acct-user/strelaysrv/Manifest @@ -1,2 +1,3 @@ EBUILD strelaysrv-0-r1.ebuild 312 BLAKE2B 48b68b0086508e583867beb8368260106fff5b03dbae01f218d3c11da103938b17cc5e8de56a0dc90a244f06881ae306d122c063554cc2039ad68d7567ffe9d2 SHA512 0ff9a4715812d8b4afa9d4da64a83c4d399f45d4cad34f345c97cf3de7edb4d977d7e699775eaeaff348890f403278ca255c8978fd9c9d14871de44bbb73a56a +EBUILD strelaysrv-1.ebuild 678 BLAKE2B a9d8047f40daf1c9b8b67edcdb577d4686a15c73813734f9ac26e84b76c2d9b5d0b00b5a67b0c4180550a25c78bc35f42e94c060699656d2e725f0f6cfdfaace SHA512 51322e2cd3b58282278e7a94489c74c7847587d08000131fb42368e2e30ccfcc27b701b08bae99b49ac7131cb333dead23042dadd63a770508414c5b993aeae6 MISC metadata.xml 246 BLAKE2B f808bbbcb9c53d005d1a1667cd6217a601a3bd3bd2267121c0043a870ae44bb91bb27bc9825d5d6eafe01b73fe58a553655aa252737c0b066f2286ff9415d65e SHA512 b620abb7732628010a8a3792d40bde878492be97ce14c99c4d2466240df2f25edf7734ad4d210bc954f27323f0e26698e660766c65be5868646a3866020373fd 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 +} |