]> git.pld-linux.org Git - packages/php.git/commitdiff
install opcache.ini with custom comments
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 14 Nov 2017 16:38:32 +0000 (18:38 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 14 Nov 2017 18:57:33 +0000 (20:57 +0200)
opcache.ini
php.spec

index 80d9a9cd887be4981346ff733b5e67537897fc8a..07684dc5d0b2c8852c78ed9537d7a3ff7f6cf545 100644 (file)
@@ -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")
index ef5e02c9165578f7367320a37ccc9489b0777888..de005b2a5605ac22937255ba4aedf53bb8656aeb 100644 (file)
--- 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
This page took 0.185145 seconds and 4 git commands to generate.