Import rpm: 025f9e66479957e2f770b45587fd959ca19e6727
This commit is contained in:
commit
10e0c8c035
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
SOURCES/apcu-5.1.17.tgz
|
17
apcu-panel.conf
Normal file
17
apcu-panel.conf
Normal file
@ -0,0 +1,17 @@
|
||||
# APC Control Panel
|
||||
Alias /apcu-panel /usr/share/apcu-panel
|
||||
|
||||
<Directory /usr/share/apcu-panel>
|
||||
<IfModule mod_authz_core.c>
|
||||
# Apache 2.4
|
||||
Require local
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
# Apache 2.2
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
Allow from 127.0.0.1
|
||||
Allow from ::1
|
||||
</IfModule>
|
||||
</Directory>
|
||||
|
23
apcu.conf.php
Normal file
23
apcu.conf.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
define('USE_AUTHENTICATION',1); // Use (internal) authentication - best choice if
|
||||
// no other authentication is available
|
||||
// If set to 0:
|
||||
// There will be no further authentication. You
|
||||
// will have to handle this by yourself!
|
||||
// If set to 1:
|
||||
// You need to change ADMIN_PASSWORD to make
|
||||
// this work!
|
||||
define('ADMIN_USERNAME','apc'); // Admin Username
|
||||
define('ADMIN_PASSWORD','password'); // Admin Password - CHANGE THIS TO ENABLE!!!
|
||||
|
||||
// (beckerr) I'm using a clear text password here, because I've no good idea how to let
|
||||
// users generate a md5 or crypt password in a easy way to fill it in above
|
||||
|
||||
//define('DATE_FORMAT', "d.m.Y H:i:s"); // German
|
||||
//define('DATE_FORMAT', "d/m/Y H:i:s"); // French
|
||||
define('DATE_FORMAT', 'Y/m/d H:i:s'); // US
|
||||
|
||||
define('GRAPH_SIZE',200); // Image size
|
||||
|
||||
//define('PROXY', 'tcp://127.0.0.1:8080');
|
||||
|
63
apcu.ini
Normal file
63
apcu.ini
Normal file
@ -0,0 +1,63 @@
|
||||
; Enable APCu extension module
|
||||
extension = apcu.so
|
||||
|
||||
; This can be set to 0 to disable APCu
|
||||
apc.enabled=1
|
||||
|
||||
; Setting this enables APCu for the CLI version of PHP
|
||||
; (Mostly for testing and debugging).
|
||||
;apc.enable_cli=0
|
||||
|
||||
; Sets the path to text files containing caches to load from disk upon
|
||||
; initialization of APCu. preload_path should be a directory where each
|
||||
; file follows $key.data where $key should be used as the entry name
|
||||
; and the contents of the file contains serialized data to use as the value
|
||||
; of the entry.
|
||||
;apc.preload_path=
|
||||
|
||||
; The size of each shared memory segment, with M/G suffixe
|
||||
;apc.shm_size=32M
|
||||
|
||||
; The number of seconds a cache entry is allowed to idle in a slot in case
|
||||
; this cache entry slot is needed by another entry.
|
||||
;apc.ttl=0
|
||||
|
||||
; The number of seconds that a cache entry may remain on the
|
||||
; garbage-collection list.
|
||||
;apc.gc_ttl=3600
|
||||
|
||||
; If you begin to get low on resources, an expunge of the cache
|
||||
; is performed if it is less than half full. This is not always
|
||||
; a suitable way of determining if an expunge of the cache
|
||||
; should be per apc.smart allows you to set a runtime configuration
|
||||
; value which is used to determine if an expunge should be run
|
||||
; if (available_size < apc.smart * requested_size)
|
||||
;apc.smart=0
|
||||
|
||||
; A "hint" about the number variables expected in the cache.
|
||||
; Set to zero or omit if you are not sure;
|
||||
;apc.entries_hint=4096
|
||||
|
||||
; The mktemp-style file_mask to pass to the mmap module
|
||||
apc.mmap_file_mask=/tmp/apc.XXXXXX
|
||||
|
||||
; On very busy servers whenever you start the server or
|
||||
; modify files you can create a race of many processes
|
||||
; all trying to cache the same data at the same time.
|
||||
; By default, APCu attempts to prevent "slamming" of a key.
|
||||
; A key is considered "slammed" if it was the last key set,
|
||||
; and a context other than the current one set it ( ie. it
|
||||
; was set by another process or thread )
|
||||
;apc.slam_defense=0
|
||||
|
||||
; Defines which serializer should be used
|
||||
; Default is the standard PHP serializer.
|
||||
;apc.serializer='php'
|
||||
|
||||
; use the SAPI request start time for TTL
|
||||
;apc.use_request_time=1
|
||||
|
||||
; Enables APCu handling of signals, such as SIGSEGV, that write core files
|
||||
; when signaled. APCu will attempt to unmap the shared memory segment in
|
||||
; order to exclude it from the core file
|
||||
;apc.coredump_unmap=0
|
8
gating.yaml
Normal file
8
gating.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-9
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.acceptance-tier.functional}
|
||||
|
357
php-pecl-apcu.spec
Normal file
357
php-pecl-apcu.spec
Normal file
@ -0,0 +1,357 @@
|
||||
# Fedora spec file for php-pecl-apcu
|
||||
#
|
||||
# Copyright (c) 2013-2019 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
|
||||
# we don't want -z defs linker flag
|
||||
%undefine _strict_symbol_defs_build
|
||||
|
||||
%global pecl_name apcu
|
||||
%global with_zts 0%{?__ztsphp:1}
|
||||
%global ini_name 40-%{pecl_name}.ini
|
||||
|
||||
Name: php-pecl-apcu
|
||||
Summary: APC User Cache
|
||||
Version: 5.1.17
|
||||
Release: 1%{?dist}
|
||||
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
|
||||
Source1: %{pecl_name}.ini
|
||||
Source2: %{pecl_name}-panel.conf
|
||||
Source3: %{pecl_name}.conf.php
|
||||
|
||||
License: PHP
|
||||
URL: http://pecl.php.net/package/APCu
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: php-devel > 7
|
||||
BuildRequires: php-pear
|
||||
BuildRequires: pcre-devel
|
||||
|
||||
Requires: php(zend-abi) = %{php_zend_api}
|
||||
Requires: php(api) = %{php_core_api}
|
||||
|
||||
Obsoletes: php-apcu < 4.0.0-1
|
||||
Provides: php-apcu = %{version}
|
||||
Provides: php-apcu%{?_isa} = %{version}
|
||||
Provides: php-pecl(apcu) = %{version}
|
||||
Provides: php-pecl(apcu)%{?_isa} = %{version}
|
||||
|
||||
|
||||
%description
|
||||
APCu is userland caching: APC stripped of opcode caching.
|
||||
|
||||
APCu only supports userland caching of variables.
|
||||
|
||||
The %{?sub_prefix}php-pecl-apcu-bc package provides a drop
|
||||
in replacement for APC.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: APCu developer files (header)
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: php-devel%{?_isa}
|
||||
Obsoletes: php-pecl-apc-devel < 4
|
||||
Provides: php-pecl-apc-devel = %{version}-%{release}
|
||||
Provides: php-pecl-apc-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
These are the files needed to compile programs using APCu.
|
||||
|
||||
|
||||
%package -n apcu-panel
|
||||
Summary: APCu control panel
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: php(httpd)
|
||||
Requires: php-gd
|
||||
Requires: httpd
|
||||
Obsoletes: apc-panel < 4
|
||||
Provides: apc-panel = %{version}-%{release}
|
||||
|
||||
%description -n apcu-panel
|
||||
This package provides the APCu control panel, with Apache
|
||||
configuration, available on http://localhost/apcu-panel/
|
||||
|
||||
|
||||
%prep
|
||||
%setup -qc
|
||||
mv %{pecl_name}-%{version} NTS
|
||||
|
||||
sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
|
||||
|
||||
cd NTS
|
||||
|
||||
# Sanity check, really often broken
|
||||
extver=$(sed -n '/#define PHP_APCU_VERSION/{s/.* "//;s/".*$//;p}' php_apc.h)
|
||||
if test "x${extver}" != "x%{version}"; then
|
||||
: Error: Upstream extension version is ${extver}, expecting %{version}.
|
||||
exit 1
|
||||
fi
|
||||
cd ..
|
||||
|
||||
%if %{with_zts}
|
||||
# duplicate for ZTS build
|
||||
cp -pr NTS ZTS
|
||||
%endif
|
||||
|
||||
# Fix path to configuration file
|
||||
sed -e s:apc.conf.php:%{_sysconfdir}/apcu-panel/conf.php:g \
|
||||
-i NTS/apc.php
|
||||
|
||||
|
||||
%build
|
||||
cd NTS
|
||||
%{_bindir}/phpize
|
||||
%configure \
|
||||
--enable-apcu \
|
||||
--with-php-config=%{_bindir}/php-config
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%if %{with_zts}
|
||||
cd ../ZTS
|
||||
%{_bindir}/zts-phpize
|
||||
%configure \
|
||||
--enable-apcu \
|
||||
--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 %{SOURCE1} %{buildroot}%{php_inidir}/%{ini_name}
|
||||
|
||||
%if %{with_zts}
|
||||
# Install the ZTS stuff
|
||||
make -C ZTS install INSTALL_ROOT=%{buildroot}
|
||||
install -D -m 644 %{SOURCE1} %{buildroot}%{php_ztsinidir}/%{ini_name}
|
||||
%endif
|
||||
|
||||
# Install the package XML file
|
||||
install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
|
||||
|
||||
# Install the Control Panel
|
||||
# Pages
|
||||
install -D -m 644 -p NTS/apc.php \
|
||||
%{buildroot}%{_datadir}/apcu-panel/index.php
|
||||
# Apache config
|
||||
install -D -m 644 -p %{SOURCE2} \
|
||||
%{buildroot}%{_sysconfdir}/httpd/conf.d/apcu-panel.conf
|
||||
# Panel config
|
||||
install -D -m 644 -p %{SOURCE3} \
|
||||
%{buildroot}%{_sysconfdir}/apcu-panel/conf.php
|
||||
|
||||
# Test & Documentation
|
||||
cd NTS
|
||||
for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
|
||||
do install -Dpm 644 $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 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
|
||||
done
|
||||
|
||||
|
||||
%check
|
||||
cd NTS
|
||||
%{_bindir}/php -n \
|
||||
-d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
|
||||
-m | grep 'apcu'
|
||||
|
||||
# Upstream test suite for NTS extension
|
||||
TEST_PHP_EXECUTABLE=%{_bindir}/php \
|
||||
TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
|
||||
NO_INTERACTION=1 \
|
||||
REPORT_EXIT_STATUS=1 \
|
||||
%{_bindir}/php -n run-tests.php
|
||||
|
||||
%if %{with_zts}
|
||||
cd ../ZTS
|
||||
%{__ztsphp} -n \
|
||||
-d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
|
||||
-m | grep 'apcu'
|
||||
|
||||
# Upstream test suite for ZTS extension
|
||||
TEST_PHP_EXECUTABLE=%{__ztsphp} \
|
||||
TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
|
||||
NO_INTERACTION=1 \
|
||||
REPORT_EXIT_STATUS=1 \
|
||||
%{__ztsphp} -n run-tests.php
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%license NTS/LICENSE
|
||||
%doc %{pecl_docdir}/%{pecl_name}
|
||||
%{pecl_xmldir}/%{name}.xml
|
||||
|
||||
%config(noreplace) %{php_inidir}/%{ini_name}
|
||||
%{php_extdir}/%{pecl_name}.so
|
||||
|
||||
%if %{with_zts}
|
||||
%{php_ztsextdir}/%{pecl_name}.so
|
||||
%config(noreplace) %{php_ztsinidir}/%{ini_name}
|
||||
%endif
|
||||
|
||||
|
||||
%files devel
|
||||
%doc %{pecl_testdir}/%{pecl_name}
|
||||
%{php_incldir}/ext/%{pecl_name}
|
||||
|
||||
%if %{with_zts}
|
||||
%{php_ztsincldir}/ext/%{pecl_name}
|
||||
%endif
|
||||
|
||||
|
||||
%files -n apcu-panel
|
||||
# Need to restrict access, as it contains a clear password
|
||||
%attr(550,apache,root) %dir %{_sysconfdir}/apcu-panel
|
||||
%config(noreplace) %{_sysconfdir}/apcu-panel/conf.php
|
||||
%config(noreplace) %{_sysconfdir}/httpd/conf.d/apcu-panel.conf
|
||||
%{_datadir}/apcu-panel
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue May 7 2019 Remi Collet <remi@remirepo.net> - 5.1.17-1
|
||||
- update to 5.1.17
|
||||
|
||||
* Mon Jul 9 2018 Remi Collet <remi@remirepo.net> - 5.1.12-1
|
||||
- update to 5.1.12 (stable)
|
||||
|
||||
* Thu Mar 8 2018 Remi Collet <remi@remirepo.net> - 5.1.11-1
|
||||
- update to 5.1.11 (stable)
|
||||
|
||||
* Fri Feb 16 2018 Remi Collet <remi@remirepo.net> - 5.1.10-1
|
||||
- update to 5.1.10 (stable)
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.9-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Fri Jan 26 2018 Remi Collet <remi@remirepo.net> - 5.1.9-2
|
||||
- undefine _strict_symbol_defs_build
|
||||
|
||||
* Tue Jan 2 2018 Remi Collet <remi@fedoraproject.org> - 5.1.9-1
|
||||
- Update to 5.1.9 (php 7, stable)
|
||||
|
||||
* Tue Oct 03 2017 Remi Collet <remi@fedoraproject.org> - 5.1.8-5
|
||||
- rebuild for https://fedoraproject.org/wiki/Changes/php72
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.8-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.8-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.8-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Mon Jan 16 2017 Remi Collet <remi@fedoraproject.org> - 5.1.8-1
|
||||
- Update to 5.1.8 (php 7, stable)
|
||||
|
||||
* Mon Nov 14 2016 Remi Collet <remi@fedoraproject.org> - 5.1.7-2
|
||||
- rebuild for https://fedoraproject.org/wiki/Changes/php71
|
||||
|
||||
* Fri Oct 21 2016 Remi Collet <remi@fedoraproject.org> - 5.1.7-1
|
||||
- Update to 5.1.7 (php 7, stable)
|
||||
|
||||
* Thu Oct 6 2016 Remi Collet <remi@fedoraproject.org> - 5.1.6-1
|
||||
- Update to 5.1.6 (php 7, stable)
|
||||
|
||||
* Mon Jun 27 2016 Remi Collet <remi@fedoraproject.org> - 5.1.5-1
|
||||
- Update to 5.1.5 (php 7, stable)
|
||||
|
||||
* Wed Apr 20 2016 Remi Collet <remi@fedoraproject.org> - 4.0.11-1
|
||||
- Update to 4.0.11 (stable)
|
||||
- fix license usage and spec cleanup
|
||||
|
||||
* Wed Apr 20 2016 Remi Collet <remi@fedoraproject.org> - 4.0.10-4
|
||||
- add upstream patch, fix FTBFS with 5.6.21RC1, thanks Koschei
|
||||
|
||||
* Wed Feb 10 2016 Remi Collet <remi@fedoraproject.org> - 4.0.10-3
|
||||
- drop scriptlets (replaced file triggers in php-pear)
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.10-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Mon Dec 7 2015 Remi Collet <remi@fedoraproject.org> - 4.0.10-1
|
||||
- Update to 4.0.10 (stable)
|
||||
|
||||
* Fri Nov 20 2015 Remi Collet <remi@fedoraproject.org> - 4.0.8-1
|
||||
- Update to 4.0.8
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Mon Oct 27 2014 Remi Collet <remi@fedoraproject.org> - 4.0.7-1
|
||||
- Update to 4.0.7
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.6-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Thu Jun 19 2014 Remi Collet <rcollet@redhat.com> - 4.0.6-2
|
||||
- rebuild for https://fedoraproject.org/wiki/Changes/Php56
|
||||
|
||||
* Thu Jun 12 2014 Remi Collet <remi@fedoraproject.org> - 4.0.6-1
|
||||
- Update to 4.0.6 (beta)
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Wed Apr 23 2014 Remi Collet <remi@fedoraproject.org> - 4.0.4-2
|
||||
- add numerical prefix to extension configuration file
|
||||
|
||||
* Sat Mar 01 2014 Remi Collet <remi@fedoraproject.org> - 4.0.4-1
|
||||
- Update to 4.0.4 (beta)
|
||||
|
||||
* Mon Jan 27 2014 Remi Collet <remi@fedoraproject.org> - 4.0.3-1
|
||||
- Update to 4.0.3 (beta)
|
||||
- install doc in pecl doc_dir
|
||||
- install tests in pecl test_dir (in devel)
|
||||
- cleanup SCL stuff
|
||||
|
||||
* Mon Jan 13 2014 Remi Collet <rcollet@redhat.com> - 4.0.2-3
|
||||
- EPEL-7 build
|
||||
|
||||
* Mon Sep 16 2013 Remi Collet <rcollet@redhat.com> - 4.0.2-2
|
||||
- fix perm on config dir
|
||||
- improve SCL compatibility
|
||||
- always provides php-pecl-apc-devel and apc-panel
|
||||
|
||||
* Mon Sep 16 2013 Remi Collet <remi@fedoraproject.org> - 4.0.2-1
|
||||
- Update to 4.0.2
|
||||
|
||||
* Sat Jul 27 2013 Remi Collet <remi@fedoraproject.org> - 4.0.1-3
|
||||
- restore APC serializers ABI (patch merged upstream)
|
||||
|
||||
* Mon Jul 15 2013 Remi Collet <rcollet@redhat.com> - 4.0.1-2
|
||||
- adapt for SCL
|
||||
|
||||
* Tue Apr 30 2013 Remi Collet <remi@fedoraproject.org> - 4.0.1-1
|
||||
- Update to 4.0.1
|
||||
- add missing scriptlet
|
||||
- fix Conflicts
|
||||
|
||||
* Thu Apr 25 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-2
|
||||
- fix segfault when used from command line
|
||||
|
||||
* Wed Mar 27 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-1
|
||||
- first pecl release
|
||||
- rename from php-apcu to php-pecl-apcu
|
||||
|
||||
* Tue Mar 26 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-0.4.git4322fad
|
||||
- new snapshot (test before release)
|
||||
|
||||
* Mon Mar 25 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-0.3.git647cb2b
|
||||
- new snapshot with our pull request
|
||||
- allow to run test suite simultaneously on 32/64 arch
|
||||
- build warning free
|
||||
|
||||
* Mon Mar 25 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-0.2.git6d20302
|
||||
- new snapshot with full APC compatibility
|
||||
|
||||
* Sat Mar 23 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-0.1.git44e8dd4
|
||||
- initial package, version 4.0.0
|
Loading…
Reference in New Issue
Block a user