[packages/php] install opcache.ini with custom comments

glen glen at pld-linux.org
Tue Nov 14 20:03:24 CET 2017


commit 4d1c1e42de366d58179734e731a91f48a85f9689
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Nov 14 18:38:32 2017 +0200

    install opcache.ini with custom comments

 opcache.ini | 4 ++--
 php.spec    | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/php.spec b/php.spec
index ef5e02c..de005b2 100644
--- a/php.spec
+++ b/php.spec
@@ -166,6 +166,7 @@ Group:		Libraries
 #Source0:	https://downloads.php.net/~remi/php-%{version}%{subver}.tar.xz
 Source0:	https://downloads.php.net/~pollita/php-%{version}%{subver}.tar.xz
 # Source0-md5:	43244f99613c6dc51a532b802cea17a8
+Source1:	opcache.ini
 Source2:	%{orgname}-mod_php.conf
 Source3:	%{orgname}-cgi-fcgi.ini
 Source4:	%{orgname}-apache.ini
@@ -2495,6 +2496,7 @@ generate_inifiles() {
 	done
 }
 generate_inifiles
+cp -p %{_sourcedir}/opcache.ini conf.d
 
 # Check that the module inner-dependencies are intact
 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
diff --git a/opcache.ini b/opcache.ini
index 80d9a9c..07684dc 100644
--- a/opcache.ini
+++ b/opcache.ini
@@ -1,5 +1,5 @@
-; Enable zendopcache zend extension module
-zend_extension=@extensiondir@/opcache.so
+; Enable opcache zend extension module
+zend_extension=opcache.so
 
 ; OPcache On/Off switch. When set to Off, code is not optimized.
 ; (default "1")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/4d1c1e42de366d58179734e731a91f48a85f9689



More information about the pld-cvs-commit mailing list