Author: ttorcz
Update of /cvs/free/rpms/motion/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv31484
Modified Files:
motion.spec
Added Files:
motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch
Log Message:
* Sat Dec 08 2012 Tomasz Torcz <ttorcz(a)fedoraproject.org> - 3.3.0-trunkREV557.2
- fix logrotate snippet to use systemctl instead of (non-existant) /bin/service
Fixes #26042604
motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch:
motion.logrotate | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- NEW FILE motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch ---
From 0e81a85851b9c4aa495b2dd697120df5ca53d660 Mon Sep 17 00:00:00 2001
From: Tomasz Torcz <tomek(a)pipebreaker.pl>
Date: Sat, 8 Dec 2012 10:38:42 +0100
Subject: [PATCH] there is no "/bin/service" in Fedora, use systemctl
---
motion.logrotate | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/motion.logrotate b/motion.logrotate
index b97f2f3..75ad7c2 100644
--- a/motion.logrotate
+++ b/motion.logrotate
@@ -5,6 +5,6 @@
size 10M
create 0600 root root
postrotate
- /bin/service motion reload >/dev/null 2>&1 || true
+ /usr/bin systemctl reload-or-try-restart motion.service >/dev/null
2>&1 || true
endscript
}
--
1.8.0.1
Index: motion.spec
===================================================================
RCS file: /cvs/free/rpms/motion/F-18/motion.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- motion.spec 3 Dec 2012 18:49:28 -0000 1.19
+++ motion.spec 8 Dec 2012 18:24:48 -0000 1.20
@@ -1,6 +1,6 @@
Name: motion
Version: 3.3.0
-Release: trunkREV557.1%{?dist}
+Release: trunkREV557.2%{?dist}
Summary: A motion detection system
Group: Applications/Multimedia
@@ -8,6 +8,7 @@
URL:
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
Source0:
http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch
+Patch1: motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libjpeg-devel ffmpeg-devel zlib-devel
@@ -28,6 +29,7 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%configure --sysconfdir=%{_sysconfdir}/%{name} --without-optimizecpu --with-ffmpeg
--without-mysql --without-pgsql
@@ -97,6 +99,10 @@
%attr(0755,root,root) %{_initrddir}/%{name}
%changelog
+* Sat Dec 08 2012 Tomasz Torcz <ttorcz(a)fedoraproject.org> - 3.3.0-trunkREV557.2
+- fix logrotate snippet to use systemctl instead of (non-existant) /bin/service
+ Fixes #26042604
+
* Mon Dec 03 2012 Tomasz Torcz <ttorcz(a)fedoraproject.org> - 3.3.0-trunkREV557.1
- add patch to hopefuly fix ARM compilation