[icecast/f16] Create /var/run files by tmpfiles.d

Petr Pisar ppisar at fedoraproject.org
Thu Mar 1 15:10:32 UTC 2012


commit 41134b2483c371e5cd76b3cbe2c91505d1db9ac9
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Mar 1 11:47:00 2012 +0100

    Create /var/run files by tmpfiles.d

 icecast-tmpfiles.conf |    1 +
 icecast.spec          |   12 ++++++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/icecast-tmpfiles.conf b/icecast-tmpfiles.conf
new file mode 100644
index 0000000..2028965
--- /dev/null
+++ b/icecast-tmpfiles.conf
@@ -0,0 +1 @@
+D /var/run/icecast 0770 root icecast -
diff --git a/icecast.spec b/icecast.spec
index f3c6215..a6c3ed4 100644
--- a/icecast.spec
+++ b/icecast.spec
@@ -1,7 +1,7 @@
 Summary: ShoutCast compatible streaming media server
 Name: icecast
 Version: 2.3.2
-Release: 5%{?dist}
+Release: 6%{?dist}
 Group: Applications/Multimedia
 License: GPLv2
 URL: http://www.icecast.org/
@@ -10,6 +10,7 @@ Source1: status3.xsl
 Source2: icecast.init
 Source3: icecast.logrotate
 Source4: icecast.xml
+Source5: %{name}-tmpfiles.conf
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Provides: streaming-server
@@ -19,6 +20,7 @@ BuildRequires: libvorbis-devel >= 1.0, libogg-devel >= 1.0, curl-devel >= 7.10.0
 BuildRequires: libxml2-devel, libxslt-devel, speex-devel, libtheora-devel >= 1.0
 BuildRequires: openssl-devel
 
+Requires: initscripts
 Requires(pre): /usr/sbin/useradd
 Requires(post): /sbin/chkconfig
 Requires(preun): /sbin/chkconfig
@@ -61,6 +63,8 @@ install -D -m 640 %{SOURCE4} %{buildroot}%{_sysconfdir}/icecast.xml
 install -D -m 644 debian/icecast2.1 %{buildroot}%{_mandir}/man1/icecast.1
 mkdir -p %{buildroot}%{_localstatedir}/log/icecast
 mkdir -p %{buildroot}%{_localstatedir}/run/icecast
+mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
+install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
 
 
 %clean 
@@ -104,9 +108,13 @@ fi
 %{_datadir}/icecast
 %{_mandir}/man1/icecast.1.gz
 %dir %attr(-,icecast,icecast) %{_localstatedir}/log/icecast
-%dir %attr(-,icecast,icecast) %{_localstatedir}/run/icecast
+%dir %attr(0770,root,icecast) %{_localstatedir}/run/icecast
+%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
 
 %changelog
+* Thu Mar 01 2012 Petr Pisar <ppisar at redhat.com> - 2.3.2-6
+- Create /var/run files by tmpfiles.d (bug #656601)
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.3.2-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list