sergiomb pushed to flumotion (f21). "Fix logrotate, rhbz #790345 (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun May 10 13:10:56 UTC 2015


From cb3c05e8c2c18c302a4dca3f7cd841a547d12c7c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9rgio=20Basto?= <sergio at serjux.com>
Date: Sat, 9 May 2015 12:40:34 +0100
Subject: Fix logrotate, rhbz #790345

- Use %ghost on files in /var/run and /var/lock rhbz #656588

diff --git a/flumotion-0.11.0.1-fix_logrotate.patch b/flumotion-0.11.0.1-fix_logrotate.patch
new file mode 100644
index 0000000..96329ac
--- /dev/null
+++ b/flumotion-0.11.0.1-fix_logrotate.patch
@@ -0,0 +1,10 @@
+--- a/doc/redhat/flumotion.logrotate
++++ b/doc/redhat/flumotion.logrotate
+@@ -2,6 +2,7 @@
+     missingok
+     notifempty
+     sharedscripts
++    su root flumotion
+     postrotate
+         find /var/run/flumotion -type f -print | while read f; do
+             /usr/bin/kill -HUP `cat $f 2>/dev/null` 2>/dev/null || true
diff --git a/flumotion.spec b/flumotion.spec
index ed4fc6c..a43e54b 100644
--- a/flumotion.spec
+++ b/flumotion.spec
@@ -14,7 +14,7 @@
 
 Name:           flumotion
 Version:        0.11.0.1
-Release:        1%{?gver}%{?dist}
+Release:        2%{?gver}%{?dist}
 Summary:        Streaming Server based on GStreamer and Twisted
 
 Group:          Applications/Internet
@@ -29,6 +29,7 @@ Patch2:         flumotion-0.11.0.1-equinox0815_md5.patch
 Patch3:         flumotion-0.11.0.1-fix_desktop.patch
 Patch4:         flumotion-0.11.0.1-fix_manpage_spelling.patch
 Patch5:         flumotion-0.11.0.1-fix_deprecated_listenWith_and_connectWith.patch
+Patch6:         flumotion-0.11.0.1-fix_logrotate.patch
 
 Requires:       python >= 2.4
 Requires:       %{gstreamer} >= %{gst_minver}
@@ -111,6 +112,7 @@ popd
 %patch3 -p1 -b .desktop
 %patch4 -p1 -b .manpage
 %patch5 -p1 -b .listenWith
+%patch6 -p1 -b .logrotate
 
 %build
 libtoolize -c --force || exit 1
@@ -307,7 +309,7 @@ fi
 %{_datadir}/hal/fdi/policy/20thirdparty/91-flumotion-device-policy.fdi
 
 %attr(750,root,flumotion) %{_sysconfdir}/flumotion
-%attr(770,root,flumotion) %{_localstatedir}/run/flumotion
+%ghost %attr(770,root,flumotion) %{_localstatedir}/run/flumotion
 %attr(770,root,flumotion) %{_localstatedir}/log/flumotion
 %attr(770,root,flumotion) %{_localstatedir}/lib/flumotion
 %attr(770,root,flumotion) %{_localstatedir}/lib/flumotion/rrd
@@ -315,6 +317,10 @@ fi
 %{_unitdir}/flumotion.service
 
 %changelog
+* Sat May 09 2015 Sérgio Basto <sergio at serjux.com> - 0.11.0.1-2.20140103git886031a
+- Fix logrotate, rhbz #790345
+- Use %ghost on files in /var/run and /var/lock rhbz #656588
+
 * Fri May 08 2015 Sérgio Basto <sergio at serjux.com> - 0.11.0.1-1
 - Update to flumotion-0.11.0.1-20140103-886031a.tar.bz2 github source using
   snapshot-flumotion.sh and bundle command.tar.bz2 of
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/flumotion.git/commit/?h=f21&id=cb3c05e8c2c18c302a4dca3f7cd841a547d12c7c


More information about the scm-commits mailing list