public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/autossh] f45: Move sysusers conf to a source file
@ 2026-10-03 15:45 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-03 15:45 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/autossh
Branch : f45
Commit : a7634eddfdef35333a46b89d817407b797c11596
Author : Alexander Boström <abo@root.snowtree.se>
Date   : 2025-04-26T20:52:01+02:00
Stats  : +3/-6 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/autossh/c/a7634eddfdef35333a46b89d817407b797c11596?branch=f45

Log:
Move sysusers conf to a source file

---
diff --git a/autossh.spec b/autossh.spec
index 87a949c..31634ee 100644
--- a/autossh.spec
+++ b/autossh.spec
@@ -8,6 +8,7 @@ URL: https://www.harding.motd.ca/autossh/
 Source0: https://www.harding.motd.ca/autossh/autossh-1.4g.tgz
 Source1: autossh@.service
 Source2: README.service
+Source3: autossh.sysusers.conf
 Patch0: autossh-configure-c99.patch
 BuildRequires:  gcc
 BuildRequires: /usr/bin/ssh
@@ -25,11 +26,6 @@ dies or stops passing traffic, autossh will automatically restart it.
 %patch -P0 -p1
 cp -p %{SOURCE2} .
 
-# Create a sysusers.d config file
-cat >autossh.sysusers.conf <<EOF
-u autossh - 'autossh service account' %{_sysconfdir}/autossh -
-EOF
-
 %build
 %configure
 make %{?_smp_mflags}
@@ -51,7 +47,7 @@ cp -p autossh.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}
 
-install -m0644 -D autossh.sysusers.conf %{buildroot}%{_sysusersdir}/autossh.conf
+install -m 0644 -Dp %{SOURCE3} %{buildroot}%{_sysusersdir}/autossh.conf
 
 
 %post

diff --git a/autossh.sysusers.conf b/autossh.sysusers.conf
new file mode 100644
index 0000000..dd7a247
--- /dev/null
+++ b/autossh.sysusers.conf
@@ -0,0 +1 @@
+u autossh - 'autossh service account' /etc/autossh -

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-03 15:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-03 15:45 [rpms/autossh] f45: Move sysusers conf to a source file 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox