[bip/f15] BZ#707294 - Added /etc/tmpfiles.d/bip.conf

Darryl L. Pierce mcpierce at fedoraproject.org
Thu Jun 2 12:42:50 UTC 2011


commit 19b69e07c325882ad1674990a5f656384f407392
Author: Darryl L. Pierce <dpierce at redhat.com>
Date:   Thu Jun 2 08:41:12 2011 -0400

    BZ#707294 - Added /etc/tmpfiles.d/bip.conf
    
    This resolves the error, starting with Fedora 15, that caused Bip to not
    have a run directory on /var/run, which is now tmpfs.

 bip-tmpfs.conf |    1 +
 bip.spec       |   13 ++++++++++++-
 2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/bip-tmpfs.conf b/bip-tmpfs.conf
new file mode 100644
index 0000000..c818fe4
--- /dev/null
+++ b/bip-tmpfs.conf
@@ -0,0 +1 @@
+d /var/run/bip 0755 bip bip -
diff --git a/bip.spec b/bip.spec
index 8a6b82f..46e0de9 100644
--- a/bip.spec
+++ b/bip.spec
@@ -1,6 +1,6 @@
 Name:    bip
 Version: 0.8.7
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: IRC Bouncer
 Group:   Applications/Internet
 License: GPLv2+
@@ -8,6 +8,9 @@ URL: http://bip.t1r.net
 
 Source0: https://projects.duckcorp.org/attachments/download/20/bip-%{version}.tar.gz
 Source1: bip.init
+# Fedora 15+ - ensure that /var/run/bip is created on system start
+# http://bugzilla.redhat.com/show_bug.cgi?id=707294
+Source2: bip-tmpfs.conf
 Patch0: bip-conf.patch
 Patch1: bip-fn-ircd7.patch
 
@@ -57,6 +60,9 @@ install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/bip
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/bip
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/bip
 
+install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
+install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/bip.conf
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -91,10 +97,15 @@ fi
 %{_mandir}/man5/bip.conf.5.gz
 %config(noreplace) %{_sysconfdir}/bip.conf
 %{_initrddir}/bip
+%config %{_sysconfdir}/tmpfiles.d/bip.conf
 %attr(-,bip,bip) %ghost %{_localstatedir}/run/bip
 %attr(-,bip,bip) %dir %{_localstatedir}/log/bip
 
 %changelog
+* Thu Jun  2 2011 Darryl L. Pierce <dpierce at redhat.com> - 0.8.7-2
+- Create file: /etc/tmpfiles.d/bip.conf
+- Fixes #707294 - /var/run/bip on tmpfs
+
 * Sat Feb 12 2011 Brian C. Lane <bcl at redhat.com> - 0.8.7-1
 - Upstream v0.8.7
 - New source tarball location


More information about the scm-commits mailing list