Jan Engelhardt 2024-03-12 23:59:59 +00:00 committed by Git OBS Bridge
parent 076db17130
commit 90eea15503
6 changed files with 26 additions and 99 deletions

View File

@ -1,5 +1,5 @@
system-user-gromox (0-0) unstable; urgency=low
system-user-gromox (5-0) unstable; urgency=low
* Initial package.
* That's it.
-- Gromox <null@gromox.com> Mon, 25 Jan 2021 10:00:00 +0100
-- Gromox <null@gromox.com> Wed, 28 Feb 2024 10:00:00 +0100

View File

@ -1,46 +0,0 @@
#
# spec file for package system-user-gromox-EL9
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: system-user-gromox
Version: 3
Release: 0
Summary: System user and group gromox
License: MIT
Group: System/Fhs
URL: https://grommunio.com/
BuildArch: noarch
Requires(pre): shadow-utils
Requires(pre): glibc-common
Provides: group(gromox)
Provides: group(gromoxcf)
Provides: user(gromox)
%description
This package provides the gromox account.
%pre
getent group gromox >/dev/null || groupadd -r gromox
getent group gromoxcf >/dev/null || groupadd -r gromoxcf
getent passwd gromox >/dev/null || \
useradd -r -M -g gromox -d /var/lib/gromox -s /sbin/nologin \
-c "Gromox services" gromox
usermod gromox -aG gromoxcf
%files
%changelog

View File

@ -1,46 +0,0 @@
#
# spec file for package system-user-gromox-Fedora_39
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: system-user-gromox
Version: 3
Release: 0
Summary: System user and group gromox
License: MIT
Group: System/Fhs
URL: https://grommunio.com/
BuildArch: noarch
Requires(pre): shadow-utils
Requires(pre): glibc-common
Provides: group(gromox)
Provides: group(gromoxcf)
Provides: user(gromox)
%description
This package provides the gromox account.
%pre
getent group gromox >/dev/null || groupadd -r gromox
getent group gromoxcf >/dev/null || groupadd -r gromoxcf
getent passwd gromox >/dev/null || \
useradd -r -M -g gromox -d /var/lib/gromox -s /sbin/nologin \
-c "Gromox services" gromox
usermod gromox -aG gromoxcf
%files
%changelog

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Mar 12 23:54:28 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 5
* Do away with %sysusers_generate_pre, it is not needed because
system-user-gromox.%post runs before gromox.%pre anyway.
-------------------------------------------------------------------
Wed Feb 21 22:20:25 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

10
system-user-gromox.dsc Normal file
View File

@ -0,0 +1,10 @@
Format: 1.0
Source: system-user-gromox
Architecture: all
Version: 5
Maintainer: Gromox <null@gromox.com>
Homepage: https://grommunio.com
Standards-Version: 3.9.4
# You need to update both .dsc and debian.control (*sigh* - Debian)
Build-Depends:
debhelper

View File

@ -17,7 +17,7 @@
Name: system-user-gromox
Version: 3
Version: 5
Release: 0
Summary: System user and group gromox
License: MIT
@ -26,8 +26,10 @@ Group: System/Fhs
URL: https://grommunio.com/
BuildArch: noarch
BuildRequires: systemd-rpm-macros
%if 0%{?suse_version}
# SUSE doing SUSE things again
BuildRequires: sysuser-tools
%sysusers_requires
%endif
%description
This package provides the gromox account.
@ -45,12 +47,12 @@ cat >u.conf <<-EOF
u gromox - "Gromox services"
m gromox gromoxcf
EOF
%sysusers_generate_pre u.conf user
%install
install -Dpm0644 u.conf "%buildroot/%_sysusersdir/system-user-gromox.conf"
%pre -f user.pre
%post
%sysusers_create system-user-gromox.conf
%files
%_sysusersdir/*.conf