packages: php-pecl-memcache/php-pecl-memcache.spec, php-pecl-memcache/memca...
glen
glen at pld-linux.org
Thu Mar 25 10:14:20 CET 2010
Author: glen Date: Thu Mar 25 09:14:20 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- move ini settings to separate file
---- Files affected:
packages/php-pecl-memcache:
php-pecl-memcache.spec (1.41 -> 1.42) , memcache.ini (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/php-pecl-memcache/php-pecl-memcache.spec
diff -u packages/php-pecl-memcache/php-pecl-memcache.spec:1.41 packages/php-pecl-memcache/php-pecl-memcache.spec:1.42
--- packages/php-pecl-memcache/php-pecl-memcache.spec:1.41 Wed Sep 30 12:19:30 2009
+++ packages/php-pecl-memcache/php-pecl-memcache.spec Thu Mar 25 10:14:14 2010
@@ -9,6 +9,7 @@
Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: 07933ce0191274201ea6905cd509c5b0
+Source1: %{modname}.ini
URL: http://pecl.php.net/package/memcache/
BuildRequires: php-devel >= 3:5.0.0
BuildRequires: rpmbuild(macros) >= 1.344
@@ -48,20 +49,9 @@
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir},%{_examplesdir}/%{name}-%{version}}
-
-install modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/session_%{modname}.ini
-; Enable %{modname} extension module
-extension=%{modname}.so
-;memcache.allow_failover=1
-;memcache.chunk_size=8192
-;memcache.default_port=11211
-;memcache.protocol=ascii
-;memcache.redudndancy=1
-;memcache.session_redundancy=2
-;memcache.hash_strategy=consistent
-;memcache.hash_function=crc32
-EOF
+install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
+# we use "session_" prefix in inifile to get loader *after* session extension
+cp -a %{SOURCE1} $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/session_%{modname}.ini
cp -a example.php memcache.php $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
@@ -96,6 +86,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.42 2010/03/25 09:14:14 glen
+- move ini settings to separate file
+
Revision 1.41 2009/09/30 10:19:30 glen
- revert, we NEED php5, not php4 (php4-pecl is for php4)
================================================================
Index: packages/php-pecl-memcache/memcache.ini
diff -u /dev/null packages/php-pecl-memcache/memcache.ini:1.1
--- /dev/null Thu Mar 25 10:14:20 2010
+++ packages/php-pecl-memcache/memcache.ini Thu Mar 25 10:14:14 2010
@@ -0,0 +1,10 @@
+; Enable memcache extension module
+extension=memcache.so
+;memcache.allow_failover=1
+;memcache.chunk_size=8192
+;memcache.default_port=11211
+;memcache.protocol=ascii
+;memcache.redudndancy=1
+;memcache.session_redundancy=2
+;memcache.hash_strategy=consistent
+;memcache.hash_function=crc32
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pecl-memcache/php-pecl-memcache.spec?r1=1.41&r2=1.42&f=u
More information about the pld-cvs-commit
mailing list