forked from pool/system-user-grommunio
- Add groweb user for grommunio-web, grommunio-index
OBS-URL: https://build.opensuse.org/package/show/server:mail/system-user-grommunio?expand=0&rev=3
This commit is contained in:
parent
80e41c7880
commit
40f1f4f6a3
5
debian.changelog
Normal file
5
debian.changelog
Normal file
@ -0,0 +1,5 @@
|
||||
system-user-grommunio (0-0) unstable; urgency=low
|
||||
|
||||
* Initial package.
|
||||
|
||||
-- Grommunio <null@grommunio.com> Mon, 25 Jan 2021 10:00:00 +0100
|
1
debian.compat
Normal file
1
debian.compat
Normal file
@ -0,0 +1 @@
|
||||
12
|
16
debian.control
Normal file
16
debian.control
Normal file
@ -0,0 +1,16 @@
|
||||
Source: system-user-grommunio
|
||||
Priority: optional
|
||||
Section: mail
|
||||
Maintainer: Grommunio <null@grommunio.com>
|
||||
Standards-Version: 4.5.0
|
||||
|
||||
Package: system-user-grommunio
|
||||
Architecture: all
|
||||
Pre-Depends: ${misc:Pre-Depends}
|
||||
Depends: adduser, ${misc:Depends}
|
||||
Provides: system-user-groweb
|
||||
Replaces: system-user-groweb
|
||||
Conflicts: system-user-groweb
|
||||
Description: System user and group grommunio
|
||||
.
|
||||
This package provides the grommunio account.
|
3
debian.rules
Normal file
3
debian.rules
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@ --parallel
|
0
debian.system-user-grommunio.install
Normal file
0
debian.system-user-grommunio.install
Normal file
7
debian.system-user-grommunio.postinst
Normal file
7
debian.system-user-grommunio.postinst
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
getent group grommunio >/dev/null || addgroup --system grommunio
|
||||
getent passwd grommunio >/dev/null || \
|
||||
adduser --system grommunio --home / --no-create-home --disabled-password --ingroup grommunio
|
||||
getent group groweb >/dev/null || addgroup --system groweb
|
||||
getent passwd groweb >/dev/null || \
|
||||
adduser --system groweb --home / --no-create-home --disabled-password --ingroup groweb
|
3
dummy.tgz
Normal file
3
dummy.tgz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fd211e6cbb3d0d7d6fe7c8c8389bb5d269df09692848663626636930e4246892
|
||||
size 231
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 17 15:45:41 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Add groweb user for grommunio-web, grommunio-index
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 25 16:47:37 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
10
system-user-grommunio.dsc
Normal file
10
system-user-grommunio.dsc
Normal file
@ -0,0 +1,10 @@
|
||||
Format: 1.0
|
||||
Source: system-user-grommunio
|
||||
Architecture: all
|
||||
Version: 3
|
||||
Maintainer: Grommunio <null@grommunio.com>
|
||||
Homepage: https://grommunio.com
|
||||
Standards-Version: 3.9.4
|
||||
# You need to update both .dsc and debian.control (*sigh* - Debian)
|
||||
Build-Depends:
|
||||
debhelper
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package system-user-grommunio
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,30 +17,54 @@
|
||||
|
||||
|
||||
Name: system-user-grommunio
|
||||
Version: 2
|
||||
Version: 3
|
||||
Release: 0
|
||||
Summary: System user and group grommunio
|
||||
Summary: System users and groups for grommunio
|
||||
License: MIT
|
||||
Group: System/Fhs
|
||||
URL: https://grommunio.com/
|
||||
BuildArch: noarch
|
||||
BuildRequires: systemd-rpm-macros
|
||||
Obsoletes: system-user-groweb < %version-%release
|
||||
Provides: system-user-groweb = %version-%release
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: sysuser-tools
|
||||
%sysusers_requires
|
||||
%else
|
||||
Provides: group(grommunio)
|
||||
Provides: group(groweb)
|
||||
Provides: user(grommunio)
|
||||
Provides: user(groweb)
|
||||
Requires(pre): /usr/sbin/useradd
|
||||
Requires(pre): /usr/sbin/groupadd
|
||||
%endif
|
||||
|
||||
%description
|
||||
This package provides the grommunio account.
|
||||
This package provides the system accounts for grommunio.
|
||||
|
||||
%prep
|
||||
|
||||
%build
|
||||
echo 'u grommunio - "Grommunio administration"' >u.conf
|
||||
%sysusers_generate_pre u.conf user
|
||||
echo 'u grommunio - "user for grommunio administration"' >u.conf
|
||||
echo 'u groweb - "user for grommunio-web"' >>u.conf
|
||||
%if 0%{?suse_version}
|
||||
%sysusers_generate_pre u.conf user system-user-grommunio.conf
|
||||
%else
|
||||
>user.pre
|
||||
%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
|
||||
%endif
|
||||
|
||||
%files
|
||||
%_sysusersdir/*.conf
|
||||
|
Loading…
Reference in New Issue
Block a user