From 0cc6663dda2994a23f587ef8c5d3c8fc7fe57f0a Mon Sep 17 00:00:00 2001
From: STorresi <>
Date: Dec 01 2020 13:22:33 +0000
Subject: Update system-user-loki to version 1.0.0 / rev 1 via SR 849380
https://build.opensuse.org/request/show/849380
by user STorresi + dimstar_suse
Sibling package to configure the user via systemd-sysuser.
This allows to make the main package more container-friendly.
---
diff --git a/.files b/.files
new file mode 100644
index 0000000..72bf4cc
Binary files /dev/null and b/.files differ
diff --git a/.meta b/.meta
new file mode 100644
index 0000000..47faddb
--- /dev/null
+++ b/.meta
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/.rev b/.rev
new file mode 100644
index 0000000..b64cb5a
--- /dev/null
+++ b/.rev
@@ -0,0 +1,11 @@
+
+
+ 9eda56e9ae6c4cb8d1c2c6406db5fa8b
+ 1.0.0
+
+ dimstar_suse
+ Sibling package to configure the user via systemd-sysuser.
+This allows to make the main package more container-friendly.
+ 849380
+
+
diff --git a/system-user-loki.changes b/system-user-loki.changes
new file mode 100644
index 0000000..a865fd4
--- /dev/null
+++ b/system-user-loki.changes
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------
+Fri Nov 13 13:18:06 UTC 2020 - Stefano Torresi
+
+- First release
diff --git a/system-user-loki.conf b/system-user-loki.conf
new file mode 100644
index 0000000..4855f90
--- /dev/null
+++ b/system-user-loki.conf
@@ -0,0 +1,2 @@
+#Type Name ID GECOS Home Shell
+u loki - - - /sbin/nologin
diff --git a/system-user-loki.spec b/system-user-loki.spec
new file mode 100644
index 0000000..d421347
--- /dev/null
+++ b/system-user-loki.spec
@@ -0,0 +1,46 @@
+#
+# spec file for package system-user-loki
+#
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+#
+# 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-loki
+Version: 1.0.0
+Release: 0
+License: Apache-2.0
+Summary: System user and group 'loki'
+Group: System/Monitoring
+Source0: system-user-loki.conf
+BuildRequires: sysuser-tools
+Provides: user(loki)
+Provides: group(loki)
+BuildArch: noarch
+%sysusers_requires
+
+%description
+This package provides a shared system user for all Loki components
+
+%prep
+%setup -q -c -T
+
+%build
+%sysusers_generate_pre %{SOURCE0} user
+
+%install
+install -Dm644 %{SOURCE0} %{buildroot}%{_sysusersdir}/system-user-loki.conf
+
+%pre -f user.pre
+
+%files
+%{_sysusersdir}/system-user-loki.conf