forked from pool/sysuser-tools
Accepting request 1100548 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1100548 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysuser-tools?expand=0&rev=24
This commit is contained in:
commit
fdfe70f3e4
24
disable-systemd-sysusers.patch
Normal file
24
disable-systemd-sysusers.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# Disable usage of systemd-sysusers for SLE15 to stay compatible
|
||||||
|
|
||||||
|
--- sysusers2shadow.sh.old 2021-09-08 15:06:18.000000000 +0200
|
||||||
|
+++ sysusers2shadow.sh 2021-11-26 10:37:20.911541368 +0100
|
||||||
|
@@ -7,14 +7,6 @@
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
-if [ -x /usr/bin/systemd-sysusers ] && [ -e /proc/version ]; then
|
||||||
|
-
|
||||||
|
- if [ -n "$1" ] && [ "$1" != "%3" ]; then
|
||||||
|
- REPLACE_ARG="--replace=/usr/lib/sysusers.d/$1" ||:
|
||||||
|
- fi
|
||||||
|
- # Use systemd-sysusers and let it read the input directly from stdin
|
||||||
|
- run /usr/bin/systemd-sysusers $REPLACE_ARG -
|
||||||
|
-else
|
||||||
|
|
||||||
|
# Absolute path to busybox, if found
|
||||||
|
busybox=
|
||||||
|
@@ -115,4 +115,3 @@
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
-fi
|
@ -18,7 +18,7 @@
|
|||||||
#
|
#
|
||||||
###
|
###
|
||||||
|
|
||||||
%sysusers_requires Requires(pre): sysuser-shadow >= 3.1
|
%sysusers_requires Requires(pre): sysuser-shadow >= 3.2
|
||||||
|
|
||||||
%sysusers_generate_pre() \
|
%sysusers_generate_pre() \
|
||||||
%{_prefix}/lib/rpm/sysusers-generate-pre "%1" "%3" >> "%2".pre
|
%{_prefix}/lib/rpm/sysusers-generate-pre "%1" "%3" >> "%2".pre
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 18 18:18:18 UTC 2023 - olaf@aepfle.de
|
||||||
|
|
||||||
|
- Version 3.2
|
||||||
|
- update sysusers_requires to request sysuser-shadow 3.2
|
||||||
|
- Use TAB consistently for indention in sysusers2shadow.sh
|
||||||
|
- This pkg needs to follow behavior which is described in sysusers.d(5).
|
||||||
|
Always create a system group of the same name as the system user,
|
||||||
|
even if the user already exists. (bsc#1205161, bsc#1207778, bsc#1213240)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 17 17:17:17 UTC 2023 - olaf@aepfle.de
|
Mon Jul 17 17:17:17 UTC 2023 - olaf@aepfle.de
|
||||||
|
|
||||||
@ -15,6 +25,12 @@ Tue Feb 1 12:58:30 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
|||||||
|
|
||||||
- invoke bash for bash scripts (bsc#1195391)
|
- invoke bash for bash scripts (bsc#1195391)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 26 09:43:02 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
- Disable systemd-sysuser on SLE15 to stay compatible
|
||||||
|
(disable-systemd-sysusers.patch)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 8 09:12:05 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>
|
Wed Sep 8 09:12:05 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: sysuser-tools
|
Name: sysuser-tools
|
||||||
Version: 3.1
|
Version: 3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Auto provides for system users
|
Summary: Auto provides for system users
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -27,6 +27,7 @@ Source1: sysusers.attr
|
|||||||
Source2: sysusers-generate-pre
|
Source2: sysusers-generate-pre
|
||||||
Source3: macros.sysusers
|
Source3: macros.sysusers
|
||||||
Source4: sysusers2shadow.sh
|
Source4: sysusers2shadow.sh
|
||||||
|
Patch: disable-systemd-sysusers.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: sysuser-shadow
|
Requires: sysuser-shadow
|
||||||
#!BuildIgnore: sysuser-shadow
|
#!BuildIgnore: sysuser-shadow
|
||||||
@ -56,6 +57,9 @@ and groups from it like systemd-sysusers would do.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qcT
|
%setup -qcT
|
||||||
|
%if 0%{?suse_version} <= 1500
|
||||||
|
patch < %_sourcedir/disable-systemd-sysusers.patch %_sourcedir/sysusers2shadow.sh
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
@ -74,6 +74,14 @@ else
|
|||||||
|
|
||||||
run /usr/sbin/useradd -r -c "$3" -d "${homedir}" $ARGUMENTS
|
run /usr/sbin/useradd -r -c "$3" -d "${homedir}" $ARGUMENTS
|
||||||
fi
|
fi
|
||||||
|
if ! /usr/bin/getent group "$1" >> /dev/null; then
|
||||||
|
if [ -x /usr/sbin/groupadd ]; then
|
||||||
|
run /usr/sbin/groupadd -r "$1"
|
||||||
|
else
|
||||||
|
echo "ERROR: groupadd not found!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
elif [ -x "$busybox" ]; then
|
elif [ -x "$busybox" ]; then
|
||||||
/usr/bin/getent group "$1" >> /dev/null || $busybox addgroup -S "$1"
|
/usr/bin/getent group "$1" >> /dev/null || $busybox addgroup -S "$1"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user