Compare commits

..

No commits in common. "factory" and "factory" have entirely different histories.

10 changed files with 35 additions and 93 deletions

View File

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

View File

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

View File

@ -6,24 +6,11 @@ Standards-Version: 4.5.0
Package: system-user-grommunio Package: system-user-grommunio
Architecture: all Architecture: all
Pre-Depends: adduser, passwd, ${misc:Pre-Depends} Pre-Depends: ${misc:Pre-Depends}
Depends: ${misc:Depends} Depends: adduser, ${misc:Depends}
Provides: system-group-groindex, system-group-grommunio, Provides: 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 Replaces: system-user-groweb
Breaks: system-user-groweb Conflicts: system-user-groweb
Description: General grommunio system user identities Description: System user and group grommunio
. .
This package provides identities related to the Grommunio groupware suite: This package provides the grommunio account.
* the "grommunio" user identity for running the Administration API
(usually an uwsgi process instance); AAPI needs to read
mysql_adaptor.cfg and ldap_adaptor.cfg, so is added to group
gromoxcf
* the "groweb" user identity for running PHP-FPM workers
* the "groweb" group identity for marking data to be consumed by the
groweb identity but also created by grommunio-index, e.g. groweb
search indexes
* the "groindex" user identity for running the indexer service; this
needs to read mysql_adaptor.cfg so is added to group gromoxcf

View File

@ -1,13 +1,3 @@
#!/usr/bin/make -f #!/usr/bin/make -f
sudir = usr/lib/sysusers.d
sufile = ${sudir}/system-user-grommunio.conf
%: %:
dh $@ --parallel dh $@ --parallel
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}

View File

@ -1 +0,0 @@
usr/

View File

@ -1,16 +1,7 @@
#!/bin/sh #!/bin/sh
case "$1" in getent group grommunio >/dev/null || addgroup --system grommunio
configure|reconfigure) getent passwd grommunio >/dev/null || \
if [ -x /usr/bin/systemd-sysusers ]; then adduser --system grommunio --home / --no-create-home --disabled-password --ingroup grommunio
/usr/bin/systemd-sysusers system-user-grommunio.conf getent group groweb >/dev/null || addgroup --system groweb
else getent passwd groweb >/dev/null || \
for i in grommunio groweb groindex; do adduser --system groweb --home / --no-create-home --disabled-password --ingroup groweb
getent group "$i" >/dev/null || addgroup --system "$i"
getent passwd "$i" >/dev/null || \
adduser --system "$i" --home / --no-create-home --disabled-password --ingroup "$i"
done
usermod grommunio -aG gromoxcf
usermod groindex -aG gromoxcf
fi
;;
esac

View File

@ -1,15 +1,3 @@
-------------------------------------------------------------------
Wed Sep 4 19:24:10 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 10
* Switch to sysusers mechanism
-------------------------------------------------------------------
Tue Jun 4 08:03:16 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 7
* New "groindex" user. Updated package descriptions.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 17 15:45:41 UTC 2023 - Jan Engelhardt <jengelh@inai.de> Tue Jan 17 15:45:41 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

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

View File

@ -1,7 +1,7 @@
# #
# spec file for package system-user-grommunio # spec file for package system-user-grommunio
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,14 +17,13 @@
Name: system-user-grommunio Name: system-user-grommunio
Version: 10 Version: 3
Release: 0 Release: 0
Summary: General grommunio system user identities Summary: System users and groups for grommunio
License: MIT License: MIT
Group: System/Fhs Group: System/Fhs
URL: https://grommunio.com/ URL: https://grommunio.com/
Source: system-user-grommunio.conf Source: dummy_for_debtransform.tgz
Source2: dummy_for_debtransform.tgz
BuildArch: noarch BuildArch: noarch
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
Obsoletes: system-user-groweb < %version-%release Obsoletes: system-user-groweb < %version-%release
@ -33,37 +32,39 @@ Provides: system-user-groweb = %version-%release
BuildRequires: sysuser-tools BuildRequires: sysuser-tools
%sysusers_requires %sysusers_requires
%else %else
Provides: group(grommunio)
Provides: group(groweb)
Provides: user(grommunio)
Provides: user(groweb)
Requires(pre): /usr/sbin/useradd Requires(pre): /usr/sbin/useradd
Requires(pre): /usr/sbin/groupadd Requires(pre): /usr/sbin/groupadd
%endif %endif
%description %description
This package provides identities related to the Grommunio groupware suite: This package provides the system accounts for grommunio.
* the "grommunio" user identity for running the Administration API
(usually an uwsgi process instance); AAPI needs to read
mysql_adaptor.cfg and ldap_adaptor.cfg, so is added to group
gromoxcf
* the "groweb" user identity for running PHP-FPM workers
* the "groweb" group identity for marking data to be consumed by the
groweb identity but also created by grommunio-index, e.g. groweb
search indexes
* the "groindex" user identity for running the indexer service; this
needs to read mysql_adaptor.cfg so is added to group gromoxcf
%prep %prep
%build %build
>user.pre echo 'u grommunio - "user for grommunio administration"' >u.conf
echo 'u groweb - "user for grommunio-web"' >>u.conf
%if 0%{?suse_version} %if 0%{?suse_version}
%sysusers_generate_pre %_sourcedir/system-user-grommunio.conf user system-user-grommunio.conf %sysusers_generate_pre u.conf user system-user-grommunio.conf
%else
>user.pre
%endif %endif
%install %install
install -Dpm0644 %_sourcedir/system-user-grommunio.conf "%buildroot/%_sysusersdir/system-user-grommunio.conf" install -Dpm0644 u.conf "%buildroot/%_sysusersdir/system-user-grommunio.conf"
%pre -f user.pre %pre -f user.pre
%if 0%{?rhel} || 0%{?fedora_version} %if !0%{?suse_version}
%sysusers_create_compat %_sourcedir/system-user-grommunio.conf 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
%endif %endif
%files %files