[fedmsg] Add a tmpfiles.d configuration, and make the runtime paths group-writable
Luke Macken
lmacken at fedoraproject.org
Thu Oct 30 18:22:35 UTC 2014
commit bc1abe936cde752d5e7d01e898770bacfd63c4f3
Author: Luke Macken <lmacken at redhat.com>
Date: Thu Oct 30 12:04:15 2014 -0600
Add a tmpfiles.d configuration, and make the runtime paths group-writable
fedmsg-tmpfiles.conf | 1 +
fedmsg.spec | 14 ++++++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/fedmsg-tmpfiles.conf b/fedmsg-tmpfiles.conf
new file mode 100644
index 0000000..021d41c
--- /dev/null
+++ b/fedmsg-tmpfiles.conf
@@ -0,0 +1 @@
+d /var/run/fedmsg 0775 fedmsg fedmsg
diff --git a/fedmsg.spec b/fedmsg.spec
index f138721..054d85a 100644
--- a/fedmsg.spec
+++ b/fedmsg.spec
@@ -5,12 +5,13 @@
Name: fedmsg
Version: 0.11.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Tools for Fedora Infrastructure real-time messaging
Group: Applications/Internet
License: LGPLv2+
URL: http://github.com/ralphbean/fedmsg
Source0: http://pypi.python.org/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz
+Source1: %{name}-tmpfiles.conf
BuildArch: noarch
@@ -195,6 +196,9 @@ PYTHONPATH=$(pwd) python setup.py test
%{__mkdir_p} %{buildroot}/%{_sysconfdir}/logrotate.d
%{__install} logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/%{modname}
+# tmpfiles.d
+%{__install} -Dm0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
+
%pre
%{_sbindir}/groupadd -r %{modname} &>/dev/null || :
@@ -238,7 +242,7 @@ fi
%{_bindir}/fedmsg-dg-replay
%attr(755, %{modname}, %{modname}) %dir %{_var}/log/%{modname}
-%attr(755, %{modname}, %{modname}) %dir %{_var}/run/%{modname}
+%attr(775, %{modname}, %{modname}) %dir %{_var}/run/%{modname}
%{python_sitelib}/%{modname}/
%{python_sitelib}/%{modname}-%{version}-py%{pyver}.egg-info/
@@ -251,6 +255,8 @@ fi
%config(noreplace) %{_sysconfdir}/logrotate.d/%{modname}
+%{_prefix}/lib/tmpfiles.d/%{name}.conf
+
%files announce
%{_bindir}/fedmsg-announce
@@ -295,6 +301,10 @@ fi
%config(noreplace) %{_sysconfdir}/fedmsg.d/gateway.py*
%changelog
+* Thu Oct 30 2014 Luke Macken <lmacken at redhat.com> - 0.11.0-3
+- Add a tmpfiles.d configuration for /var/run/fedmsg
+- Make the runtime path group-writable
+
* Wed Oct 22 2014 Luke Macken <lmacken at redhat.com> - 0.11.0-2
- Fix the permissions on the systemd service files
More information about the scm-commits
mailing list