diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b8dc6b9..0000000 --- a/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -*spec~ -/mysqlnd_ms-1.2.2.tgz -/mysqlnd_ms-1.4.2.tgz -/mysqlnd_ms-1.5.1.tgz -/mysqlnd_ms-1.5.2.tgz -/mysqlnd_ms-1.6.0-333506.tgz 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/mysqlnd_ms.ini b/mysqlnd_ms.ini deleted file mode 100644 index ff293a9..0000000 --- a/mysqlnd_ms.ini +++ /dev/null @@ -1,36 +0,0 @@ -; Enable mysqlnd_qc extension module -extension=mysqlnd_ms.so - -; Configuration documentation -; http://www.php.net/manual/en/mysqlnd-ms.configuration.php - -; Enables or disables the plugin. If set to disabled, the extension -; will not plug into mysqlnd to proxy internal mysqlnd C API calls. -;mysqlnd_ms.enable = 0 - -; If enabled the plugin checks if the host (server) parameter value of -; any MySQL connection attempt matches a section name from the plugin -; configuration file. If not, the connection attempt is blocked. -;mysqlnd_ms.force_config_usage = 0 - -; Plugin specific configuration file. -; This setting superseeds mysqlnd_ms.ini_file since 1.4.0. -;mysqlnd_ms.config_file = "/etc/mysqlnd_ms.json" - -; Enables or disables the collection of statistics. The collection of -; statistics is disabled by default for performance reasons. -; Statistics are returned by the function mysqlnd_ms_get_stats(). -;mysqlnd_ms.collect_statistics = 0 - -; Enables or disables support of MySQL multi master replication setups. -; This feature is experimental. It will not be documented before reasonable -; stability has been achieved. It is meant for development only. -;mysqlnd_ms.multi_master = 0 - -; Enables or disables built-in read write splitting. -; Controls whether load balancing and lazy connection functionality can be used -; independently of read write splitting. If read write splitting is disabled, -; only servers from the master list will be used for statement execution. -; All configured slave servers will be ignored. -;mysqlnd_ms.disable_rw_split = 0 - diff --git a/php-pecl-mysqlnd-ms.spec b/php-pecl-mysqlnd-ms.spec deleted file mode 100644 index 1754f35..0000000 --- a/php-pecl-mysqlnd-ms.spec +++ /dev/null @@ -1,263 +0,0 @@ -# Fedora spec file for php-pecl-mysqlnd-ms -# -# Copyright (c) 2011-2016 Remi Collet -# License: CC-BY-SA -# http://creativecommons.org/licenses/by-sa/3.0/ -# -# Please, preserve the changelog entries -# -%global pecl_name mysqlnd_ms -%global with_zts 0%{?__ztsphp:1} -%global versufix -alpha -%global svnrev 333506 -# After 40-json, 20-mysqlnd -%global ini_name 50-%{pecl_name}.ini - -Summary: A replication and load balancing plugin for mysqlnd -Name: php-pecl-mysqlnd-ms -Version: 1.6.0 -Release: 5.svn%{svnrev}%{?dist} - -License: PHP -Group: Development/Languages -URL: http://pecl.php.net/package/mysqlnd_ms - -%if 0%{?svnrev} -# svn export -r 333506 https://svn.php.net/repository/pecl/mysqlnd_ms/trunk -# cd trunk -# pecl package -# mv mysqlnd_ms-1.6.0.tgz ../mysqlnd_ms-1.6.0-333506.tgz -Source0: %{pecl_name}-%{version}-%{svnrev}.tgz -%else -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz -%endif - -# From http://www.php.net/manual/en/mysqlnd-ms.configuration.php -Source1: %{pecl_name}.ini - -BuildRequires: php-devel >= 5.3.6 -BuildRequires: php-mysqlnd -BuildRequires: php-json -BuildRequires: php-pear -BuildRequires: libxml2-devel - -Requires: php-mysqlnd%{?_isa} -Requires: php-json%{?_isa} -Requires: php(zend-abi) = %{php_zend_api} -Requires: php(api) = %{php_core_api} - -Provides: php-%{pecl_name} = %{version} -Provides: php-%{pecl_name}%{?_isa} = %{version} -Provides: php-pecl(%{pecl_name}) = %{version} -Provides: php-pecl(%{pecl_name})%{?_isa} = %{version} - -%description -The replication and load balancing plugin is a plugin for the mysqlnd library. -It can be used with PHP MySQL extensions (ext/mysql, ext/mysqli, PDO_MySQL), -if they are compiled to use mysqlnd. The plugin inspects queries to do -read-write splitting. Read-only queries are send to configured MySQL -replication slave servers all other queries are redirected to the MySQL -replication master server. Very little, if any, application changes required, -dependent on the usage scenario required. - -Documentation : http://www.php.net/mysqlnd_ms - - -%package devel -Summary: Mysqlnd_ms developer files (header) -Group: Development/Libraries -Requires: php-pecl-mysqlnd-ms%{?_isa} = %{version}-%{release} -Requires: php-devel%{?_isa} - -%description devel -These are the files needed to compile programs using mysqlnd_ms extension. - - -%prep -%setup -c -q - -cp %{SOURCE1} %{ini_name} - -mv %{pecl_name}-%{version} NTS - -# check version, so often broken -grep MYSQLND_MS_VERSION NTS/mysqlnd_ms.h -extver=$(sed -n '/PHP_MYSQLND_MS_VERSION /{s/.* "//;s/".*$//;p}' NTS/mysqlnd_ms.h) -if test "x${extver}" != "x%{version}%{?versufix}"; then - : Error: Upstream version is ${extver}, expecting %{version}%{?versufix}. - exit 1 -fi - -%if %{with_zts} -# Build ZTS extension if ZTS devel available (fedora >= 17) -cp -r NTS ZTS -%endif - - -%build -# EXPERIMENTAL options not used -# --enable-mysqlnd-ms-table-filter -# Enable support for table filter in mysqlnd_ms -# --enable-mysqlnd-ms-cache-support -# Enable query caching through mysqlnd_qc - -cd NTS -%{_bindir}/phpize -%configure \ - --with-libdir=%{_lib} \ - --enable-mysqlnd-ms \ - --with-php-config=%{_bindir}/php-config -make %{?_smp_mflags} - -%if %{with_zts} -cd ../ZTS -%{_bindir}/zts-phpize -%configure \ - --with-libdir=%{_lib} \ - --enable-mysqlnd-ms \ - --with-php-config=%{_bindir}/zts-php-config -make %{?_smp_mflags} -%endif - - -%install -make install -C NTS INSTALL_ROOT=%{buildroot} - -# Drop in the bit of configuration -install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} - -# Install XML package description -install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - -%if %{with_zts} -make install -C ZTS INSTALL_ROOT=%{buildroot} -install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} -%endif - -# Test & Documentation -for i in $(grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 NTS/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i -done -for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i -done - - -%check -cd NTS -# only check if build extension can be loaded -%{__php} -n -q \ - -d extension=json.so \ - -d extension=mysqlnd.so \ - -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ - --modules | grep %{pecl_name} - -%if %{with_zts} -cd ../ZTS -# only check if build extension can be loaded -%{__ztsphp} -n -q \ - -d extension=json.so \ - -d extension=mysqlnd.so \ - -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ - --modules | grep %{pecl_name} -%endif - - -%files -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml - -%config(noreplace) %{php_inidir}/%{ini_name} -%{php_extdir}/%{pecl_name}.so - -%if %{with_zts} -%config(noreplace) %{php_ztsinidir}/%{ini_name} -%{php_ztsextdir}/%{pecl_name}.so -%endif - - -%files devel -%doc %{pecl_testdir}/%{pecl_name} -%{php_incldir}/ext/%{pecl_name} - -%if %{with_zts} -%{php_ztsincldir}/ext/%{pecl_name} -%endif - - -%changelog -* Sat Feb 13 2016 Remi Collet - 1.6.0-5.svn333506 -- drop scriptlets (replaced by file triggers in php-pear) -- cleanup - -* Thu Feb 04 2016 Fedora Release Engineering - 1.6.0-4.svn333506 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Jun 18 2015 Fedora Release Engineering - 1.6.0-3.svn333506 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sun Aug 17 2014 Fedora Release Engineering - 1.6.0-2.svn333506 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Thu Jun 19 2014 Remi Collet - 1.6.0-1.svn333506 -- Update to 1.6.0 (alpha) svn snapshot for php 5.6 -- add numerical prefix to extension configuration file - -* Sat Jun 07 2014 Fedora Release Engineering - 1.5.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Thu Apr 24 2014 Remi Collet - 1.5.2-2 -- add numerical prefix to extension configuration file - -* Sat Mar 22 2014 Remi Collet - 1.5.2-1 -- update to 1.5.2 -- install doc in pecl_docdir -- install tests in pecl_testdir (devel) - -* Thu Dec 5 2013 Remi Collet - 1.5.1-3 -- add upstream patch for -Werror=format-security #1037246 - -* Sun Aug 04 2013 Fedora Release Engineering - 1.5.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Jun 19 2013 Remi Collet - 1.5.1-1 -- Update to 1.5.1 -- also provides php-mysqlnd_ms - -* Fri Mar 22 2013 Remi Collet - 1.4.2-3 -- rebuild for http://fedoraproject.org/wiki/Features/Php55 - -* Thu Feb 14 2013 Fedora Release Engineering - 1.4.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Wed Aug 22 2012 Remi Collet - 1.4.2-1 -- update to 1.4.2 (stable) -- add -devel sub package - -* Sat Jul 21 2012 Fedora Release Engineering - 1.2.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Thu Feb 02 2012 Remi Collet - 1.2.2-1 -- update to 1.2.2 (stable) - -* Wed Jan 25 2012 Remi Collet - 1.1.2-5 -- zts binary in /usr/bin with zts prefix - -* Sat Jan 21 2012 Remi Collet - 1.1.2-4 -- merge ZTS change for fedora 17 -- filter_setup is enough - -* Sun Nov 13 2011 Remi Collet - 1.1.2-3 -- build against php 5.4 - -* Mon Nov 07 2011 Remi Collet - 1.1.2-2 -- update to 1.1.2 (stable) with zts extension - -* Mon Nov 07 2011 Remi Collet - 1.1.2-1 -- update to 1.1.2 (stable) - -* Fri Oct 14 2011 Remi Collet - 1.1.1-1 -- update to 1.1.1 - -* Sun Oct 02 2011 Remi Collet - 1.1.0-1 -- Initial RPM diff --git a/sources b/sources deleted file mode 100644 index 97e842b..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -f3996e6f981ce79ad330c2feb552ccec mysqlnd_ms-1.6.0-333506.tgz