public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/autossh] f45: Move sysusers conf to a source file
Date: Sat, 03 Oct 2026 15:45:31 GMT [thread overview]
Message-ID: <179104233192.1.13156760471510463003.rpms-autossh-a7634eddfdef@fedoraproject.org> (raw)
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 -
reply other threads:[~2026-10-03 15:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179104233192.1.13156760471510463003.rpms-autossh-a7634eddfdef@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox