1
0

[info=5d8260f256301ae7ba2eb9b68e3f6a9fd955ea90fe0974826ed614d4ebb5f94a]

OBS-URL: https://build.opensuse.org/package/show/server:mail/system-user-grommunio?expand=0&rev=8
This commit is contained in:
Jan Engelhardt 2024-08-14 11:34:47 +00:00 committed by Git OBS Bridge
parent 95bf0d1561
commit 5277b9088e
8 changed files with 35 additions and 40 deletions

4
_scmsync.obsinfo Normal file
View File

@ -0,0 +1,4 @@
mtime: 1723635213
commit: 5d8260f256301ae7ba2eb9b68e3f6a9fd955ea90fe0974826ed614d4ebb5f94a
url: https://src.opensuse.org/jengelh/system-user-grommunio
revision: master

3
build.specials.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:85049835eb34ea1130470d5fe8328ef72ff84520237f0cb661c6ec9d3d3f60f0
size 256

View File

@ -6,11 +6,12 @@ Standards-Version: 4.5.0
Package: system-user-grommunio
Architecture: all
Pre-Depends: adduser, passwd, system-group-gromoxcf, ${misc:Pre-Depends}
Pre-Depends: adduser, passwd, ${misc:Pre-Depends}
Depends: ${misc:Depends}
Provides: system-group-groindex, system-group-grommunio,
system-group-groweb, system-user-grommunio, system-user-groindex,
system-user-groweb
system-group-groweb, system-group-gromoxcf,
system-user-grommunio, system-user-groindex, system-user-groweb
# gromoxcf provided by more than one package -- intentional
Replaces: system-user-groweb
Breaks: system-user-groweb
Description: General grommunio system user identities

View File

@ -6,8 +6,8 @@ sufile = ${sudir}/system-user-grommunio.conf
override_dh_auto_install:
mkdir -p ${sudir}
echo 'u grommunio - "user for grommunio administration"' >${sufile}
echo 'u groweb - "user for grommunio-web"' >${sufile}
echo 'u groindex - "user for grommunio-index"' >${sufile}
echo 'm grommunio gromoxcf' >${sufile}
echo 'm groindex groweb' >${sufile}
echo 'm groindex gromoxcf' >${sufile}
echo 'u groweb - "user for grommunio-web"' >>${sufile}
echo 'u groindex - "user for grommunio-index"' >>${sufile}
echo 'm grommunio gromoxcf' >>${sufile}
echo 'm groindex groweb' >>${sufile}
echo 'm groindex gromoxcf' >>${sufile}

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 14 11:26:06 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 9
* Switch to sysusers mechanism
-------------------------------------------------------------------
Tue Jun 4 08:03:16 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@ -0,0 +1,7 @@
u grommunio - "user for grommunio administration"
u groweb - "user for grommunio-web"
u groindex - "user for grommunio-index"
g gromoxcf
m grommunio gromoxcf
m groindex groweb
m groindex gromoxcf

View File

@ -1,7 +1,7 @@
Format: 1.0
Source: system-user-grommunio
Architecture: all
Version: 7
Version: 9
Maintainer: Grommunio <null@grommunio.com>
Homepage: https://grommunio.com
Standards-Version: 3.9.4

View File

@ -17,7 +17,7 @@
Name: system-user-grommunio
Version: 7
Version: 9
Release: 0
Summary: General grommunio system user identities
License: MIT
@ -31,16 +31,9 @@ Provides: system-user-groweb = %version-%release
BuildRequires: sysuser-tools
%sysusers_requires
%else
Provides: group(groindex)
Provides: group(grommunio)
Provides: group(groweb)
Provides: user(groindex)
Provides: user(grommunio)
Provides: user(groweb)
Requires(pre): /usr/sbin/useradd
Requires(pre): /usr/sbin/groupadd
%endif
Requires(pre): group(gromoxcf)
%description
This package provides identities related to the Grommunio groupware suite:
@ -58,36 +51,17 @@ This package provides identities related to the Grommunio groupware suite:
%prep
%build
cat <<-EOF >u.conf
u grommunio - "user for grommunio administration"
u groweb - "user for grommunio-web"
u groindex - "user for grommunio-index"
m grommunio gromoxcf
m groindex groweb
m groindex gromoxcf
EOF
%if 0%{?suse_version}
%sysusers_generate_pre u.conf user system-user-grommunio.conf
%else
>user.pre
%if 0%{?suse_version}
%sysusers_generate_pre %_sourcedir/system-user-grommunio.conf user system-user-grommunio.conf
%endif
%install
install -Dpm0644 u.conf "%buildroot/%_sysusersdir/system-user-grommunio.conf"
%pre -f user.pre
%if !0%{?suse_version}
getent group grommunio >/dev/null || %_sbindir/groupadd -r grommunio
getent passwd grommunio >/dev/null || %_sbindir/useradd -g grommunio -s /sbin/nologin \
-r -c "user for grommunio administration" -d / grommunio
getent group groweb >/dev/null || %_sbindir/groupadd -r groweb
getent passwd groweb >/dev/null || %_sbindir/useradd -g groweb -s /sbin/nologin \
-r -c "user for grommunio-web" -d / groweb
getent group groindex >/dev/null || %_sbindir/groupadd -r groindex
getent passwd groindex >/dev/null || %_sbindir/useradd -g groindex -s /sbin/nologin \
-r -c "user for grommunio-index" -d / groindex
usermod grommunio -aG gromoxcf
usermod groindex -aG gromoxcf
%if 0%{?rhel} || 0%{?fedora_version}
%sysusers_create_compat %_sourcedir/system-user-grommunio.conf
%endif
%files