From 2f2dd36b4ddec5430e1e9a9ce02a79b6273f0c94 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Jun 26 2016 16:10:48 +0000 Subject: dead project, not compatible with PHP 7 --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index f620971..0000000 --- a/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -clog -/xcache-3.0.*.tar.gz -/xcache-svn1234.tgz -/xcache-svn1264.tgz -/xcache-3.1.0.tar.gz -/xcache-svn1496.tgz -/xcache-3.2.0-rc1.tar.gz -/xcache-3.2.0.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..455aa0d --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +dead project, not compatible with PHP 7 diff --git a/php-xcache.spec b/php-xcache.spec deleted file mode 100644 index d42c93b..0000000 --- a/php-xcache.spec +++ /dev/null @@ -1,274 +0,0 @@ -# spec file for php-xcache -# -# Copyright (c) 2012-2014 Remi Collet -# License: CC-BY-SA -# http://creativecommons.org/licenses/by-sa/3.0/ -# -# Please, preserve the changelog entries -# -%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} -%global ext_name xcache -%global with_zts 0%{?__ztsphp:1} - -%if "%{php_version}" < "5.6" -%global ini_name %{ext_name}.ini -%else -%global ini_name 40-%{ext_name}.ini -%endif - -Summary: Fast, stable PHP opcode cacher -Name: php-xcache -Epoch: 1 -Version: 3.2.0 -Release: 3%{?dist} -License: BSD -Group: Development/Languages -URL: http://xcache.lighttpd.net/ - -%if 0%{?svnrev} -# svn export -r 1496 svn://svn.lighttpd.net/xcache/trunk xcache-4.0.0 -# tar czf xcache-svn1496.tgz xcache-4.0.0 -Source0: xcache-svn%{svnrev}.tgz -%else -Source0: http://xcache.lighttpd.net/pub/Releases/%{version}%{?prever:-%{prever}}/%{ext_name}-%{version}%{?prever:-%{prever}}.tar.gz -%endif -Source1: xcache-httpd.conf - -# Relocation of configuration files to /etc/xcache -Patch0: xcache-config.patch -# Disable cache to allow work with php-opcache -Patch1: xcache-cacher.patch - -BuildRequires: php-devel - -Requires: php(zend-abi) = %{php_zend_api} -Requires: php(api) = %{php_core_api} - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter private shared object -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} -%endif - - -%description -XCache is a fast, stable PHP opcode and data cacher that has been tested -and is now running on production servers under high load. - -It is tested (on linux) and supported on all of the latest PHP release. -ThreadSafe is also perfectly supported. - -NOTICE: opcode cacher is disable to allow use with php-opcache only for user -data cache. You need to edit configuration file (xcache.ini) to enable it. - - -%package -n xcache-admin -Summary: XCache Administration -Group: Development/Languages -Requires: mod_php, httpd -Requires: %{name} = %{epoch}:%{version}-%{release} -BuildArch: noarch - -%description -n xcache-admin -This package provides the XCache Administration web application, -with Apache configuration, on http://localhost/xcache - -This requires to configure, in XCache configuration file (xcache.ini): -- xcache.admin.user -- xcache.admin.pass -- xcache.coveragedump_directory - - -%prep -%setup -q -c - -# rename source folder -mv xcache-%{version}%{?prever:-%{prever}} nts - -cp %{SOURCE1} xcache-httpd.conf -cd nts -%patch0 -p1 -%patch1 -p1 - -# Sanity check, really often broken -extver=$(sed -n '/define XCACHE_VERSION/{s/.* "//;s/".*$//;p}' xcache.h) -if test "x${extver}" != "x%{version}%{?svnrev:-dev}%{?prever:-%{prever}}"; then - : Error: Upstream extension version is ${extver}, expecting %{version}%{?svnrev:-dev}%{?prever:-%{prever}}. - exit 1 -fi -cd .. - -%if %{with_zts} -# duplicate for ZTS build -cp -pr nts zts -%endif - - -%build -# Without --enable-xcache-assembler, --enable-xcache-encoder, --enable-xcache-decoder -# This seems not yet implemented - -cd nts -%{_bindir}/phpize -%configure \ - --enable-xcache \ - --enable-xcache-constant \ - --enable-xcache-optimizer \ - --enable-xcache-coverager \ - --with-php-config=%{_bindir}/php-config -make %{?_smp_mflags} - -%if %{with_zts} -cd ../zts -%{_bindir}/zts-phpize -%configure \ - --enable-xcache \ - --enable-xcache-constant \ - --enable-xcache-optimizer \ - --enable-xcache-coverager \ - --with-php-config=%{_bindir}/zts-php-config -make %{?_smp_mflags} -%endif - - -%install -# Install the NTS stuff -make -C nts install INSTALL_ROOT=%{buildroot} -install -D -m 644 nts/%{ext_name}.ini %{buildroot}%{php_inidir}/%{ini_name} - -%if %{with_zts} -# Install the ZTS stuff -make -C zts install INSTALL_ROOT=%{buildroot} -install -D -m 644 zts/%{ext_name}.ini %{buildroot}%{php_ztsinidir}/%{ini_name} -%endif - -# Install the admin stuff -install -d -m 755 %{buildroot}%{_datadir} -cp -pr nts/htdocs %{buildroot}%{_datadir}/xcache -install -d -m 755 %{buildroot}%{_sysconfdir}/xcache/cacher -install -d -m 755 %{buildroot}%{_sysconfdir}/xcache/coverager -mv %{buildroot}%{_datadir}/xcache/config.example.php \ - %{buildroot}%{_sysconfdir}/xcache -mv %{buildroot}%{_datadir}/xcache/cacher/config.example.php \ - %{buildroot}%{_sysconfdir}/xcache/cacher -mv %{buildroot}%{_datadir}/xcache/coverager/config.example.php \ - %{buildroot}%{_sysconfdir}/xcache/coverager - -install -D -m 644 -p xcache-httpd.conf \ - %{buildroot}%{_sysconfdir}/httpd/conf.d/xcache.conf - - -%check -cd nts - -# simple module load test -%{__php} --no-php-ini \ - --define extension_dir=%{buildroot}%{php_extdir}/\ - --define extension=%{ext_name}.so \ - --modules | grep XCache - -# upstream unit tests -TEST_PHP_EXECUTABLE=%{__php} \ -NO_INTERACTION=1 \ -REPORT_EXIT_STATUS=1 \ -%{__php} -n run-tests.php -n -c xcache-test.ini tests - -%if %{with_zts} -cd ../zts -%{__ztsphp} --no-php-ini \ - --define extension_dir=%{buildroot}%{php_ztsextdir}/\ - --define extension=%{ext_name}.so \ - --modules | grep XCache - -TEST_PHP_EXECUTABLE=%{__ztsphp} \ -NO_INTERACTION=1 \ -REPORT_EXIT_STATUS=1 \ -%{__ztsphp} -n run-tests.php -n -c xcache-test.ini tests -%endif - - -%files -%doc nts/{AUTHORS,ChangeLog,COPYING,README,THANKS} -%config(noreplace) %{php_inidir}/%{ini_name} -%{php_extdir}/%{ext_name}.so - -%if %{with_zts} -%config(noreplace) %{php_ztsinidir}/%{ini_name} -%{php_ztsextdir}/%{ext_name}.so -%endif - -%files -n xcache-admin -%config(noreplace) %{_sysconfdir}/httpd/conf.d/xcache.conf -%{_datadir}/xcache -# No real configuration files, only sample files -%{_sysconfdir}/xcache - - -%changelog -* Thu Feb 04 2016 Fedora Release Engineering - 1:3.2.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Jun 18 2015 Fedora Release Engineering - 1:3.2.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Thu Sep 18 2014 Remi Collet - 1:3.2.0-1 -- Update to 3.2.0 - -* Tue Sep 9 2014 Remi Collet - 1:3.2.0-0.1.rc1 -- Update to 3.2.0-rc1 -- bump epoch to 1 - -* Sun Aug 17 2014 Fedora Release Engineering - 4.0.0-0.2.svn1496 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Jun 7 2014 Remi Collet - 4.0.0-0.1.svn1496 -- Update to 4.0.0-dev for PHP 5.6 -- add numerical prefix to configuration file - -* Sat Jun 07 2014 Fedora Release Engineering - 3.1.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Thu Jan 9 2014 Remi Collet - 3.1.0-2 -- drop conflicts with other opcode cache -- disable opcode cache in provided configuration - -* Sat Oct 12 2013 Remi Collet - 3.1.0-1 -- version 3.1.0 - -* Sun Aug 04 2013 Fedora Release Engineering - 3.1.0-0.3.svn1264 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Fri Jun 14 2013 Remi Collet - 3.1.0-0.2.svn1268 -- latest changes from upstream - -* Tue Apr 16 2013 Remi Collet - 3.1.0-0.1.svn1234 -- update to SVN snapshot for php 5.5 compatibility - -* Thu Feb 14 2013 Fedora Release Engineering - 3.0.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Thu Jan 17 2013 Remi Collet - 3.0.1-1 -- bugfixes version - -* Thu Nov 22 2012 Remi Collet - 3.0.0-1.1 -- upstream have fixed the sources (review #859504) - -* Wed Oct 31 2012 Remi Collet - 3.0.0-1 -- new major version -- drop xcache-coverager subpackage -- xcache-admin now provides cacher, coverager and diagnosis -- run unit tests provided by upstream - -* Sat Oct 27 2012 Remi Collet - 2.0.1-4 -- drop php prefix from sub packages -- clean EL-5 stuff - -* Fri Sep 21 2012 Remi Collet - 2.0.1-3 -- prepare for review with EL-5 stuff - -* Fri Sep 21 2012 Remi Collet - 2.0.1-2 -- add admin and coverager sub-package - -* Sun Sep 9 2012 Remi Collet - 2.0.1-1 -- initial package - diff --git a/sources b/sources deleted file mode 100644 index 0da6a8e..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -8b0a6f27de630c4714ca261480f34cda xcache-3.2.0.tar.gz diff --git a/xcache-cacher.patch b/xcache-cacher.patch deleted file mode 100644 index a415114..0000000 --- a/xcache-cacher.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -up xcache-3.1.0/xcache.ini.old xcache-3.1.0/xcache.ini ---- xcache-3.1.0/xcache.ini.old 2014-01-09 10:45:55.139937807 +0100 -+++ xcache-3.1.0/xcache.ini 2014-01-09 10:47:44.972289458 +0100 -@@ -66,7 +66,9 @@ xcache.disable_on_crash = Off - xcache.experimental = Off - - ; per request settings. can ini_set, .htaccess etc --xcache.cacher = On -+; WARNING set xcache.cacher=On only when no other cache installed -+; Will create conflicts with php-opcache or php-pecl-zendopcache -+xcache.cacher = Off - xcache.stat = On - xcache.optimizer = Off - diff --git a/xcache-config.patch b/xcache-config.patch deleted file mode 100644 index 0523870..0000000 --- a/xcache-config.patch +++ /dev/null @@ -1,59 +0,0 @@ -diff -ru xcache-3.0.0/htdocs.old/cacher/config.example.php xcache-3.0.0/htdocs/cacher/config.example.php ---- xcache-3.0.0/htdocs.old/cacher/config.example.php 2012-08-01 18:49:57.000000000 +0200 -+++ xcache-3.0.0/htdocs/cacher/config.example.php 2012-10-31 08:35:32.000000000 +0100 -@@ -5,10 +5,10 @@ - // 1. copy config.example.php config.php; edit config.php - // 2. upgrading your config.php when config.example.php were upgraded - // XCache will load --// 1. ../config.default.php --// 2. ./config.default.php --// 3. ../config.php --// 4. ./config.php -+// 1. /usr/share/xcache/config.default.php -+// 2. /usr/share/xcache/cacher/config.default.php -+// 3. /etc/xcache/config.php -+// 4. /etc/xcache/cacher/config.php - - // width of graph for free or usage blocks - $config['percent_graph_width'] = 120; -Seulement dans xcache-3.0.0/htdocs/cacher: config.example.php~ -diff -ru xcache-3.0.0/htdocs.old/common/common.php xcache-3.0.0/htdocs/common/common.php ---- xcache-3.0.0/htdocs.old/common/common.php 2012-08-01 18:49:59.000000000 +0200 -+++ xcache-3.0.0/htdocs/common/common.php 2012-10-31 08:32:34.000000000 +0100 -@@ -252,11 +252,13 @@ - include "./config.default.php"; - } - include "../config.default.php"; --if (file_exists("../config.php")) { -- include "../config.php"; -+ -+$mod=basename(getcwd()); -+if (file_exists("/etc/xcache/config.php")) { -+ include "/etc/xcache/config.php"; - } --if (file_exists("./config.php")) { -- include "./config.php"; -+if (file_exists("/etc/xcache/$mod/config.php")) { -+ include "/etc/xcache/$mod/config.php"; - } - - $strings = array(); -diff -ru xcache-3.0.0/htdocs.old/coverager/config.example.php xcache-3.0.0/htdocs/coverager/config.example.php ---- xcache-3.0.0/htdocs.old/coverager/config.example.php 2012-10-10 14:01:55.000000000 +0200 -+++ xcache-3.0.0/htdocs/coverager/config.example.php 2012-10-31 08:35:34.000000000 +0100 -@@ -5,10 +5,10 @@ - // 1. copy config.example.php config.php; edit config.php - // 2. upgrading your config.php when config.example.php were upgraded - // XCache will load --// 1. ../config.default.php --// 2. ./config.default.php --// 3. ../config.php --// 4. ./config.php -+// 1. /usr/share/xcache/config.default.php -+// 2. /usr/share/xcache/coverager/config.default.php -+// 3. /etc/xcache/config.php -+// 4. /etc/xcache/coverager/config.php - - // $config['include_paths'] = array("/www/my-php-project/"); - // $config['exclude_paths'] = array("/www/my-php-project/tmp/"); -Seulement dans xcache-3.0.0/htdocs/coverager: config.example.php~ diff --git a/xcache-httpd.conf b/xcache-httpd.conf deleted file mode 100644 index 388381b..0000000 --- a/xcache-httpd.conf +++ /dev/null @@ -1,17 +0,0 @@ -# Configure XCache Administration -Alias /xcache /usr/share/xcache - - - - # Apache 2.4 - Require local - - - # Apache 2.2 - Order Deny,Allow - Deny from All - Allow from 127.0.0.1 - Allow from ::1 - - -