public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jeremy Cline <jeremycline@microsoft.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-siguldry] f44: Add tpmfiles config to create /var/lib/siguldry
Date: Mon, 01 Jun 2026 18:42:14 GMT [thread overview]
Message-ID: <178033933442.1.344052887683339064.rpms-rust-siguldry-d40196130cf1@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-siguldry
Branch : f44
Commit : d40196130cf1d373416866cca5e34fbf1fb7c022
Author : Jeremy Cline <jeremycline@microsoft.com>
Date : 2026-05-20T07:27:08-04:00
Stats : +19/-10 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rust-siguldry/c/d40196130cf1d373416866cca5e34fbf1fb7c022?branch=f44
Log:
Add tpmfiles config to create /var/lib/siguldry
The user is being created, but its corresponding home directory is not.
Create it and ensure it's not world-readable.
---
diff --git a/rust-siguldry.spec b/rust-siguldry.spec
index 50af805..2aa9997 100644
--- a/rust-siguldry.spec
+++ b/rust-siguldry.spec
@@ -11,7 +11,8 @@ Summary: Implementation of the Sigul protocol
License: MIT
URL: https://crates.io/crates/siguldry
Source: %{crates_source}
-Source2: siguldry-sysuser.conf
+Source10: siguldry-sysuser.conf
+Source11: siguldry-tmpfiles.conf
# Manually created patch for downstream crate metadata changes
# * The binary is incomplete and may change its interface significantly
# * Remove unused, benchmark-only dev-dependency on criterion
@@ -67,7 +68,6 @@ License: ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND (Apache-2.0) AND
%postun -n %{crate}
%systemd_postun_with_restart siguldry-server.service siguldry-signer.socket siguldry-bridge.service siguldry-client-proxy.socket
-
%description -n %{crate} %{_description}
%files -n %{crate}
@@ -80,6 +80,7 @@ License: ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND (Apache-2.0) AND
%{_bindir}/siguldry-server
%{_libexecdir}/siguldry-signer
%{_sysusersdir}/siguldry.conf
+%{_tmpfilesdir}/siguldry.conf
%dir %{_sysconfdir}/siguldry
%config(noreplace) %{_sysconfdir}/siguldry/bridge.toml
%config(noreplace) %{_sysconfdir}/siguldry/client.toml
@@ -91,7 +92,6 @@ License: ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND (Apache-2.0) AND
%{_unitdir}/siguldry-signer@.service
%{_unitdir}/siguldry-signer.socket
-
%package devel
Summary: %{summary}
BuildArch: noarch
@@ -174,7 +174,8 @@ install -d -p -m 0755 %{buildroot}%{_sysconfdir}/siguldry
install -D -p -m 0644 server.toml.example %{buildroot}%{_sysconfdir}/siguldry/server.toml
install -D -p -m 0644 bridge.toml.example %{buildroot}%{_sysconfdir}/siguldry/bridge.toml
install -D -p -m 0644 client.toml.example %{buildroot}%{_sysconfdir}/siguldry/client.toml
-install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/siguldry.conf
+install -D -p -m 0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/siguldry.conf
+install -D -p -m 0644 %{SOURCE11} %{buildroot}%{_tmpfilesdir}/siguldry.conf
## Server-related files ##
install -D -p -m 0644 siguldry-server.service %{buildroot}%{_unitdir}/siguldry-server.service
diff --git a/rust2rpm.toml b/rust2rpm.toml
index c59fffa..6330bd5 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -9,6 +9,7 @@ exclude-crate-files = ["src/serdes/serde.py"]
extra-files = [
"%{_libexecdir}/siguldry-signer",
"%{_sysusersdir}/siguldry.conf",
+ "%{_tmpfilesdir}/siguldry.conf",
"%dir %{_sysconfdir}/siguldry",
"%config(noreplace) %{_sysconfdir}/siguldry/bridge.toml",
"%config(noreplace) %{_sysconfdir}/siguldry/client.toml",
@@ -32,16 +33,21 @@ bin-package-extra = """
"""
[[package.extra-sources]]
-number = 2
+number = 10
file = "siguldry-sysuser.conf"
+[[package.extra-sources]]
+number = 11
+file = "siguldry-tmpfiles.conf"
+
[scripts.install]
post = [
"install -d -p -m 0755 %{buildroot}%{_sysconfdir}/siguldry",
"install -D -p -m 0644 server.toml.example %{buildroot}%{_sysconfdir}/siguldry/server.toml",
"install -D -p -m 0644 bridge.toml.example %{buildroot}%{_sysconfdir}/siguldry/bridge.toml",
"install -D -p -m 0644 client.toml.example %{buildroot}%{_sysconfdir}/siguldry/client.toml",
- "install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/siguldry.conf",
+ "install -D -p -m 0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/siguldry.conf",
+ "install -D -p -m 0644 %{SOURCE11} %{buildroot}%{_tmpfilesdir}/siguldry.conf",
"",
"## Server-related files ##",
"install -D -p -m 0644 siguldry-server.service %{buildroot}%{_unitdir}/siguldry-server.service",
diff --git a/siguldry-fix-metadata.diff b/siguldry-fix-metadata.diff
index 84f86ca..a88ccba 100644
--- a/siguldry-fix-metadata.diff
+++ b/siguldry-fix-metadata.diff
@@ -1,6 +1,6 @@
---- siguldry-0.5.0/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ siguldry-0.5.0/Cargo.toml 2026-03-19T06:27:01.964931+00:00
-@@ -98,7 +98,7 @@
+--- siguldry-0.7.0/Cargo.toml 2006-07-24T01:21:28+00:00
++++ siguldry-0.7.0/Cargo.toml 2026-04-14T20:19:17.392796+00:00
+@@ -96,7 +96,7 @@
version = "1"
[dependencies.asn1]
@@ -9,7 +9,7 @@
[dependencies.bytes]
version = "1"
-@@ -228,14 +228,11 @@
+@@ -217,14 +217,11 @@
[dev-dependencies.assert_cmd]
version = "2"
diff --git a/siguldry-tmpfiles.conf b/siguldry-tmpfiles.conf
new file mode 100644
index 0000000..7074050
--- /dev/null
+++ b/siguldry-tmpfiles.conf
@@ -0,0 +1,2 @@
+#Type Path Mode User Group Age Argument
+d /var/lib/siguldry 0750 siguldry siguldry - -
reply other threads:[~2026-06-01 18:42 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=178033933442.1.344052887683339064.rpms-rust-siguldry-d40196130cf1@fedoraproject.org \
--to=jeremycline@microsoft.com \
--cc=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