rpms/memcached/EL-4 memcached.spec,1.3,1.4

Paul Lindner plindner at fedoraproject.org
Thu Aug 13 20:32:43 UTC 2009


Author: plindner

Update of /cvs/pkgs/rpms/memcached/EL-4
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2742

Modified Files:
	memcached.spec 
Log Message:
fix for init script for EL-4, Patch from Ingvar Hagelund


Index: memcached.spec
===================================================================
RCS file: /cvs/pkgs/rpms/memcached/EL-4/memcached.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- memcached.spec	24 Jul 2009 05:50:55 -0000	1.3
+++ memcached.spec	13 Aug 2009 20:32:41 -0000	1.4
@@ -35,6 +35,14 @@ web applications by alleviating database
 
 make %{?_smp_mflags}
 
+%if 0%{?fedora}%{?rhel} == 0 || 0%{?rhel} <= 4 && 0%{?fedora} <= 8
+        # Old style daemon function
+        sed -i 's,--pidfile /var/run/memcached/memcached.pid,,g;
+                s,status -p /var/run/memcached/memcached.pid,status,g;
+                s,killproc -p /var/run/memcached/memcached.pid,killproc,g' \
+       %{SOURCE1} 
+%endif
+
 
 %check
 # remove failing test that doesn't work in
@@ -101,6 +109,9 @@ exit 0
 
 
 %changelog
+* Thu Aug 13 2009 Paul Lindner <lindner at mirth.inuus.com> - 1.2.8-1
+- Fix init script for EL-4, patch from Ingvar Hagelund
+
 * Thu Jul 23 2009 Paul Lindner <lindner at mirth.inuus.com> - 1.2.8-1
 - Upgrade to memcache 1.2.8
 




More information about the fedora-extras-commits mailing list