1
0
Jan Engelhardt 2024-09-04 19:29:08 +00:00 committed by Git OBS Bridge
parent 0ee5a0f925
commit 6af20e7c2c
6 changed files with 30 additions and 11 deletions

View File

@ -1,3 +1,11 @@
#!/usr/bin/make -f
%:
dh $@ --parallel
sudir = usr/lib/sysusers.d
sufile = ${sudir}/system-user-gromox.conf
override_dh_auto_install:
mkdir -p ${sudir}
echo 'g gromox -' >${sufile}
echo 'g gromoxcf -' >>${sufile}
echo 'u gromox - "Gromox services"' >>${sufile}
echo 'm gromox gromoxcf' >>${sufile}

View File

@ -0,0 +1 @@
usr/

View File

@ -1,6 +1,14 @@
#!/bin/sh
case "$1" in
configure|reconfigure)
if [ -x /usr/bin/systemd-sysusers ]; then
/usr/bin/systemd-sysusers system-user-gromox.conf
else
getent group gromox >/dev/null || addgroup --system gromox
getent group gromoxcf >/dev/null || addgroup --system gromoxcf
getent passwd gromox >/dev/null || \
adduser --system gromox --home /var/lib/gromox --no-create-home --disabled-password --ingroup gromox
usermod gromox -aG gromoxcf
fi
;;
esac

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Sep 4 19:28:11 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 9
* Switch to sysusers mechanism on Debian as well
-------------------------------------------------------------------
Tue Jun 4 08:06:05 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

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

View File

@ -17,7 +17,7 @@
Name: system-user-gromox
Version: 7
Version: 9
Release: 0
Summary: System user and group gromox
License: MIT
@ -46,10 +46,6 @@ This package provides:
%prep
%build
# The conf file is provided by system-user-gromox rather than
# gromox.spec so that e.g. grommunio-admin-api does not grow a
# BuildRequire on gromox (wait times).
#
>user.pre
%if 0%{?suse_version}
%sysusers_generate_pre %_sourcedir/system-user-gromox.conf user system-user-gromox.conf