4 Commits

Author SHA1 Message Date
dd31b87a4e * Tue Mar 26 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-4.sme
- remove last references to php <7.2 [SME: 12550]
2024-03-26 22:11:49 -04:00
d24cc60735 * Sat Mar 23 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-3.sme
- drop support for php < 7.2 [SME: 12521]
2024-03-23 17:40:16 -04:00
b62f9dcb18 change Requires to reference smeserver-* not e-smith-* in spec 2024-03-23 15:56:50 +00:00
09206b8391 Update 2024-03-23 12:11:54 +00:00
30 changed files with 42 additions and 253 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.tar.xz filter=lfs diff=lfs merge=lfs -text

View File

@@ -5,10 +5,6 @@ my $ver; my $service; my $file; my $event;
#old e-smith-php #old e-smith-php
foreach $file (qw(/etc/php.ini foreach $file (qw(/etc/php.ini
/opt/remi/php55/root/etc/php.ini
/opt/remi/php56/root/etc/php.ini
/etc/opt/remi/php70/php.ini
/etc/opt/remi/php71/php.ini
/etc/opt/remi/php72/php.ini /etc/opt/remi/php72/php.ini
/etc/opt/remi/php73/php.ini /etc/opt/remi/php73/php.ini
/etc/opt/remi/php74/php.ini /etc/opt/remi/php74/php.ini
@@ -45,7 +41,7 @@ for $event (qw(smeserver-php-update webapps-update)){
templates2events($file, $event); templates2events($file, $event);
} }
foreach $ver (qw( 55 56 70 71 72 73 74 80 81 82 83)){ foreach $ver (qw( 72 73 74 80 81 82 83)){
foreach $service ( "php$ver-php-fpm" ){ foreach $service ( "php$ver-php-fpm" ){
foreach $event (qw(webapps-update ibay-create ibay-delete ibay-modify ibay-modify-files ibay-modify-servers )){ foreach $event (qw(webapps-update ibay-create ibay-delete ibay-modify ibay-modify-files ibay-modify-servers )){
safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/$service"); safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/$service");
@@ -67,11 +63,6 @@ foreach $file (qw( /etc/php-fpm.conf
foreach $file (qw( /etc/sysconfig/php-fpm foreach $file (qw( /etc/sysconfig/php-fpm
/etc/logrotate.d/php-fpm /etc/logrotate.d/php-fpm
/etc/logrotate.d/php55-php-fpm
/etc/logrotate.d/php56-php-fpm
/etc/logrotate.d/php70-php-fpm
/etc/logrotate.d/php70-php-fpm
/etc/logrotate.d/php71-php-fpm
/etc/logrotate.d/php72-php-fpm /etc/logrotate.d/php72-php-fpm
/etc/logrotate.d/php73-php-fpm /etc/logrotate.d/php73-php-fpm
/etc/logrotate.d/php74-php-fpm /etc/logrotate.d/php74-php-fpm
@@ -83,23 +74,8 @@ foreach $file (qw( /etc/sysconfig/php-fpm
templates2events($file, qw(webapps-update bootstrap-console-save smeserver-php-update)); templates2events($file, qw(webapps-update bootstrap-console-save smeserver-php-update));
} }
#php5*
foreach $ver (qw( 55 56 )){
foreach $file ( "/opt/remi/php$ver/root/etc/php-fpm.conf",
"/opt/remi/php$ver/root/etc/php-fpm.d/www.conf",
"/opt/remi/php$ver/root/etc/php-fpm.d/ibays.conf",
"/opt/remi/php$ver/root/etc/php-fpm.d/custom.conf" ){
templates2events($file, qw(webapps-update bootstrap-console-save ibay-create ibay-delete ibay-modify ibay-modify-files ibay-modify-servers smeserver-php-update));
#safe_symlink('/etc/e-smith/templates-default/template-begin-ini', "root/etc/e-smith/templates$file/template-begin");
}
foreach $file ( "/opt/remi/php$ver/root/etc/sysconfig/php-fpm" ){
templates2events($file, qw(webapps-update bootstrap-console-save));
}
}
#php7* #php7*
foreach $ver (qw( 70 71 72 73 74 80 81 82 83)){ foreach $ver (qw( 72 73 74 80 81 82 83)){
foreach $file ( "/etc/opt/remi/php$ver/php-fpm.conf", foreach $file ( "/etc/opt/remi/php$ver/php-fpm.conf",
"/etc/opt/remi/php$ver/php-fpm.d/www.conf", "/etc/opt/remi/php$ver/php-fpm.d/www.conf",
"/etc/opt/remi/php$ver/php-fpm.d/ibays.conf", "/etc/opt/remi/php$ver/php-fpm.d/ibays.conf",
@@ -122,17 +98,6 @@ foreach my $event (qw( ibay-create ibay-delete ibay-modify ibay-modify-files iba
event_link( "php-pool-customs", $event, "90"); event_link( "php-pool-customs", $event, "90");
} }
# systemd units
#foreach $ver (qw( 55 56 70 71 72 73 74 )){
#$service = "php$ver-php-fpm.service";
#safe_symlink("../$service", "root/usr/lib/systemd/system/multi-user.target.wants/$service");
#safe_symlink("../$service", "root/usr/lib/systemd/system/sme-server.target.wants/$service");
#}
#$service = "php-fpm.service";
#safe_symlink("../$service", "root/usr/lib/systemd/system/multi-user.target.wants/$service");
#safe_symlink("../$service", "root/usr/lib/systemd/system/sme-server.target.wants/$service");
#webapps #webapps
$event = 'webapps-update'; $event = 'webapps-update';
templates2events("/etc/my.cnf", $event); templates2events("/etc/my.cnf", $event);

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.conf"
MORE_DATA={ PHP_VERSION => 70, FPM_POOL_DIR => "/etc/opt/remi/php70/php-fpm.d" }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.d/custom.conf"
MORE_DATA={ PHP_VERSION => 70 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.d/ibays.conf"
MORE_DATA={ PHP_VERSION => 70 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.d/www.conf"
MORE_DATA={ PHP_VERSION => 70 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php.ini"
MORE_DATA={ PHP_VERSION => 70, INCLUDE_PATH => ".:/opt/remi/php70/root/usr/share/pear:/opt/remi/php70/root/usr/share/php:/usr/share/php:/usr/share/pear", EXTENSION_DIR => "/opt/remi/php70/root/usr/lib64/php/modules" }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/sysconfig/php-fpm"
MORE_DATA={ PHP_VERSION => 70 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.conf"
MORE_DATA={ PHP_VERSION => 71, FPM_POOL_DIR => "/etc/opt/remi/php71/php-fpm.d" }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.d/custom.conf"
MORE_DATA={ PHP_VERSION => 71 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.d/ibays.conf"
MORE_DATA={ PHP_VERSION => 71 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.d/www.conf"
MORE_DATA={ PHP_VERSION => 71 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php.ini"
MORE_DATA={ PHP_VERSION => 71, INCLUDE_PATH => ".:/opt/remi/php70/root/usr/share/pear:/opt/remi/php71/root/usr/share/php:/usr/share/php:/usr/share/pear", EXTENSION_DIR => "/opt/remi/php71/root/usr/lib64/php/modules" }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/sysconfig/php-fpm"
MORE_DATA={ PHP_VERSION => 71 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php.ini"
MORE_DATA={ PHP_VERSION => 55, INCLUDE_PATH => ".:/opt/remi/php55/root/usr/share/pear:/opt/remi/php55/root/usr/share/php:/usr/share/php:/usr/share/pear", EXTENSION_DIR => "/opt/remi/php55/root/usr/lib64/php/modules" }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.conf"
MORE_DATA={ PHP_VERSION => 56, FPM_POOL_DIR => "/opt/remi/php56/root/etc/php-fpm.d" }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.d/custom.conf"
MORE_DATA={ PHP_VERSION => 56 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.d/ibays.conf"
MORE_DATA={ PHP_VERSION => 56 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php-fpm.d/www.conf"
MORE_DATA={ PHP_VERSION => 56 }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/php.ini"
MORE_DATA={ PHP_VERSION => 56, INCLUDE_PATH => ".:/opt/remi/php56/root/usr/share/pear:/opt/remi/php56/root/usr/share/php:/usr/share/php:/usr/share/pear", EXTENSION_DIR => "/opt/remi/php56/root/usr/lib64/php/modules" }

View File

@@ -1,2 +0,0 @@
TEMPLATE_PATH="/etc/sysconfig/php-fpm"
MORE_DATA={ PHP_VERSION => 56 }

View File

@@ -1,5 +1,5 @@
for VER in php php55 php56 php70 php71 php72 php73 php74 php80 php81 php82 php83; do for VER in php php72 php73 php74 php80 php81 php82 php83; do
/usr/sbin/tmpwatch -umc --nodirs -q 7d /var/lib/php/$VER/tmp /usr/sbin/tmpwatch -umc --nodirs -q 7d /var/lib/php/$VER/tmp
/usr/sbin/tmpwatch -umc --nodirs -q 7d /var/lib/php/$VER/opcache /usr/sbin/tmpwatch -umc --nodirs -q 7d /var/lib/php/$VER/opcache
/usr/sbin/tmpwatch -umc --nodirs -q 7d /var/lib/php/$VER/wsdlcache /usr/sbin/tmpwatch -umc --nodirs -q 7d /var/lib/php/$VER/wsdlcache

View File

@@ -11,10 +11,6 @@ $OUT = "/var/log/php/*/php*fpm.log {
create 600 root root create 600 root root
postrotate postrotate
/sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true /sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php55-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php56-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php70-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php71-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php72-php-fpm reload >/dev/null 2>&1 || true /sbin/e-smith/service php72-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php73-php-fpm reload >/dev/null 2>&1 || true /sbin/e-smith/service php73-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php74-php-fpm reload >/dev/null 2>&1 || true /sbin/e-smith/service php74-php-fpm reload >/dev/null 2>&1 || true
@@ -34,10 +30,6 @@ $OUT = "/var/log/php/*/php*fpm.log {
create 600 www www create 600 www www
postrotate postrotate
/sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true /sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php55-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php56-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php70-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php71-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php72-php-fpm reload >/dev/null 2>&1 || true /sbin/e-smith/service php72-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php73-php-fpm reload >/dev/null 2>&1 || true /sbin/e-smith/service php73-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php74-php-fpm reload >/dev/null 2>&1 || true /sbin/e-smith/service php74-php-fpm reload >/dev/null 2>&1 || true

View File

@@ -28,12 +28,9 @@ highlight.bg = #FFFFFF
highlight.default = #0000BB highlight.default = #0000BB
highlight.html = #000000 highlight.html = #000000
zend.enable_gc = On zend.enable_gc = On
zend.assertions = -1
{ {
return "" if $PHP_VERSION eq ""; return "" if $PHP_VERSION eq "";
if ( $PHP_VERSION >= 70)
{
$OUT .="zend.assertions = -1\n";
}
if ( $PHP_VERSION >= 74) if ( $PHP_VERSION >= 74)
{ {
$OUT .="zend.exception_ignore_args = On\n"; $OUT .="zend.exception_ignore_args = On\n";

View File

@@ -1,8 +1,2 @@
[Pcre] [Pcre]
{ pcre.jit = Off
return "" if $PHP_VERSION eq "";
if ( $PHP_VERSION >= 70)
{
$OUT .="pcre.jit = Off\n";
}
}

View File

@@ -22,26 +22,13 @@ session.cache_limiter = nocache
session.cache_expire = 180 session.cache_expire = 180
session.use_trans_sid = On session.use_trans_sid = On
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
session.use_strict_mode = Off
session.sid_bits_per_character = 4
session.sid_length = 32
session.trans_sid_tags = "a=href,area=href,frame=src,form="
{ {
return "" if $PHP_VERSION eq ""; return "" if $PHP_VERSION eq "";
if ( $PHP_VERSION >= 55)
{
$OUT .= "session.use_strict_mode = Off\n";
$OUT .= "sys_temp_dir = /var/lib/php/php$PHP_VERSION/tmp\n"; $OUT .= "sys_temp_dir = /var/lib/php/php$PHP_VERSION/tmp\n";
}
if ( $PHP_VERSION < 71)
{
$OUT .= "session.hash_bits_per_character = 5
session.hash_function = 0
session.entropy_file =
session.entropy_length = 0\n";
}
if ( $PHP_VERSION >= 71)
{
$OUT .= "session.sid_bits_per_character = 4
session.sid_length = 32
session.trans_sid_tags = \"a=href,area=href,frame=src,form=\"\n";
}
if ( $PHP_VERSION >= 73) if ( $PHP_VERSION >= 73)
{ {
$OUT .= "session.cookie_samesite = \"Strict\"\n"; $OUT .= "session.cookie_samesite = \"Strict\"\n";

View File

@@ -4,14 +4,6 @@
& stop & stop
:programname, startswith, "php-fpm" /var/log/php/php/php-fpm.log :programname, startswith, "php-fpm" /var/log/php/php/php-fpm.log
& stop & stop
:programname, startswith, "php55-fpm" /var/log/php/php55/php55-fpm.log
& stop
:programname, startswith, "php56-fpm" /var/log/php/php56/php56-fpm.log
& stop
:programname, startswith, "php70-fpm" /var/log/php/php70/php70-fpm.log
& stop
:programname, startswith, "php71-fpm" /var/log/php/php71/php71-fpm.log
& stop
:programname, startswith, "php72-fpm" /var/log/php/php72/php72-fpm.log :programname, startswith, "php72-fpm" /var/log/php/php72/php72-fpm.log
& stop & stop
:programname, startswith, "php73-fpm" /var/log/php/php73/php73-fpm.log :programname, startswith, "php73-fpm" /var/log/php/php73/php73-fpm.log

View File

@@ -4,8 +4,8 @@ use strict;
use warnings; use warnings;
use esmith::ConfigDB; use esmith::ConfigDB;
our $PHPDEFAULT = 74; our $PHPDEFAULT = 82;
our $BASEPHP = 54; our $BASEPHP = 81;
our @ISA = qw(Exporter); our @ISA = qw(Exporter);
our @EXPORT = qw( listPHPVersionFPM listPHPVersionShort listPHPVersionHash listPHPVersionHashShort PHPdefault PHPbase VersionToUse PhpFpmVersionToUse $defaultdisabledfunc %defaultPHPproperties); our @EXPORT = qw( listPHPVersionFPM listPHPVersionShort listPHPVersionHash listPHPVersionHashShort PHPdefault PHPbase VersionToUse PhpFpmVersionToUse $defaultdisabledfunc %defaultPHPproperties);
@@ -52,10 +52,6 @@ param = (enabled, disabled, all) , if empty default to all
this will return you an array of php-fpm versions available php version this will return you an array of php-fpm versions available php version
print "'$_'\n" for listPHPVersionFPM('all'); print "'$_'\n" for listPHPVersionFPM('all');
'php-fpm' 'php-fpm'
'php55-php-fpm'
'php56-php-fpm'
'php70-php-fpm'
'php71-php-fpm'
'php72-php-fpm' 'php72-php-fpm'
'php73-php-fpm' 'php73-php-fpm'
'php74-php-fpm' 'php74-php-fpm'
@@ -89,11 +85,6 @@ param2 = will use "" as output for base php
this will return you an array of numerical available php version this will return you an array of numerical available php version
print "'$_'\n" for listPHPVersionShort('all'); print "'$_'\n" for listPHPVersionShort('all');
'54'
'55'
'56'
'70'
'71'
'72' '72'
'73' '73'
'74' '74'
@@ -121,11 +112,6 @@ param2 = if defined will use "" as key for php-fpm
this will return you a hash order by version this will return you a hash order by version
my %list= listPHPVersionHash(); my %list= listPHPVersionHash();
print "$_ => $list{$_}\n" for (sort keys %list); print "$_ => $list{$_}\n" for (sort keys %list);
54 => php-fpm
55 => php55-php-fpm
56 => php56-php-fpm
70 => php70-php-fpm
71 => php71-php-fpm
72 => php72-php-fpm 72 => php72-php-fpm
73 => php73-php-fpm 73 => php73-php-fpm
74 => php74-php-fpm 74 => php74-php-fpm
@@ -155,11 +141,6 @@ param2 = if defined will use "" as key for php-fpm
this will return you a hash order by version this will return you a hash order by version
my %list= listPHPVersionHashShort(); my %list= listPHPVersionHashShort();
print "$_ => $list{$_}\n" for (sort keys %list); print "$_ => $list{$_}\n" for (sort keys %list);
54 => php
55 => php55
56 => php56
70 => php70
71 => php71
72 => php72 72 => php72
73 => php73 73 => php73
74 => php74 74 => php74

BIN
smeserver-php-11.0.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,5 +1,5 @@
%define version 3.0.0 %define version 11.0.0
%define release 50 %define release 4
%define name smeserver-php %define name smeserver-php
%global debug_package %{nil} %global debug_package %{nil}
@@ -13,21 +13,19 @@ Source: %{name}-%{version}.tar.xz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArch: x86_64 BuildArch: x86_64
BuildRequires: e-smith-devtools BuildRequires: smeserver-devtools
Requires: e-smith-base >= 5.6.0 Requires: smeserver-base >= 5.6.0
Provides: e-smith-php = %{version}-%{release} Provides: e-smith-php = %{version}-%{release}
Obsoletes: e-smith-php < %{version} Obsoletes: e-smith-php < %{version}
Provides: smeserver-webapps-common Provides: smeserver-webapps-common
Provides: php(language) = 7.0 #Provides: php(language) = 7.2
Provides: php(language) = 7.1 #Provides: php(language) = 7.3
Provides: php(language) = 7.2 #Provides: php(language) = 7.4
Provides: php(language) = 7.3 #Provides: php(language) = 8.0
Provides: php(language) = 7.4 #Provides: php(language) = 8.1
Provides: php(language) = 8.0 #Provides: php(language) = 8.2
Provides: php(language) = 8.1 #Provides: php(language) = 8.3
Provides: php(language) = 8.2
Provides: php(language) = 8.3
Requires: tmpwatch Requires: tmpwatch
Requires: logrotate Requires: logrotate
@@ -51,91 +49,6 @@ Requires: php-pear
Requires: php-process Requires: php-process
Requires: php-snmp Requires: php-snmp
# PHP 5.5
Requires: php55-php-cli
Requires: php55-php-ldap
Requires: php55-php-imap
Requires: php55-php-gd
Requires: php55-php-xml
Requires: php55-php-xmlrpc
Requires: php55-php-soap
Requires: php55-php-opcache
Requires: php55-php-fpm
Requires: php55-php-mbstring
Requires: php55-php-mysql
Requires: php55-php-json
Requires: php55-php-bcmath
Requires: php55-php-intl
Requires: php55-php-mcrypt
Requires: php55-php-pear
Requires: php55-php-process
Requires: php55-php-snmp
Requires: php55-php, php55-php-enchant , php55-php-pdo php55-php-tidy , php55-php-mysqlnd php55-php-pecl-zip
# PHP 5.6
Requires: php56-php-cli
Requires: php56-php-ldap
Requires: php56-php-imap
Requires: php56-php-gd
Requires: php56-php-xml
Requires: php56-php-xmlrpc
Requires: php56-php-soap
Requires: php56-php-opcache
Requires: php56-php-fpm
Requires: php56-php-mbstring
Requires: php56-php-mysql
Requires: php56-php-json
Requires: php56-php-bcmath
Requires: php56-php-intl
Requires: php56-php-mcrypt
Requires: php56-php-pear
Requires: php56-php-process
Requires: php56-php-snmp
Requires: php56-php, php56-php-enchant , php56-php-pdo php56-php-tidy , php56-php-mysqlnd php56-php-pecl-zip
# PHP 7.0
Requires: php70-php-cli
Requires: php70-php-ldap
Requires: php70-php-imap
Requires: php70-php-gd
Requires: php70-php-xml
Requires: php70-php-xmlrpc
Requires: php70-php-soap
Requires: php70-php-opcache
Requires: php70-php-fpm
Requires: php70-php-mbstring
Requires: php70-php-mysql
Requires: php70-php-json
Requires: php70-php-bcmath
Requires: php70-php-intl
Requires: php70-php-mcrypt
Requires: php70-php-pear
Requires: php70-php-process
Requires: php70-php-snmp
Requires: php70-php, php70-php-enchant , php70-php-pdo php70-php-tidy , php70-php-mysqlnd php70-php-pecl-zip
# PHP 7.1
Requires: php71-php-cli
Requires: php71-php-ldap
Requires: php71-php-imap
Requires: php71-php-gd
Requires: php71-php-xml
Requires: php71-php-xmlrpc
Requires: php71-php-soap
Requires: php71-php-opcache
Requires: php71-php-fpm
Requires: php71-php-mbstring
Requires: php71-php-mysql
Requires: php71-php-json
Requires: php71-php-bcmath
Requires: php71-php-intl
Requires: php71-php-mcrypt
Requires: php71-php-pear
Requires: php71-php-process
Requires: php71-php-snmp
Requires: php71-php, php71-php-enchant , php71-php-pdo php71-php-tidy , php71-php-mysqlnd php71-php-pecl-zip
# PHP 7.2 # PHP 7.2
Requires: php72-php-cli Requires: php72-php-cli
Requires: php72-php-ldap Requires: php72-php-ldap
@@ -296,7 +209,7 @@ echo "[Install]" > root/usr/lib/systemd/system/php-fpm.service.d/51koozali.conf
echo "WantedBy=sme-server.target" >> root/usr/lib/systemd/system/php-fpm.service.d/51koozali.conf echo "WantedBy=sme-server.target" >> root/usr/lib/systemd/system/php-fpm.service.d/51koozali.conf
%{__mkdir_p} root/etc/e-smith/templates.metadata/etc/logrotate.d/ %{__mkdir_p} root/etc/e-smith/templates.metadata/etc/logrotate.d/
for phpver in "55" "56" "70" "71" "72" "73" "74" "80" "81" "82" "83"; do for phpver in "72" "73" "74" "80" "81" "82" "83"; do
#needed folder #needed folder
%{__mkdir_p} root/var/log/php/php$phpver/ %{__mkdir_p} root/var/log/php/php$phpver/
%{__mkdir_p} root/var/lib/php/php$phpver/{session,tmp,opcache,wsdlcache} %{__mkdir_p} root/var/lib/php/php$phpver/{session,tmp,opcache,wsdlcache}
@@ -321,16 +234,6 @@ echo "WantedBy=sme-server.target" >> root/usr/lib/systemd/system/php$phpver-php-
done done
#to add a new php version
#php5*
for phpver in "55" ; do
#cp php56 metadata
mkdir -p root/etc/e-smith/templates.metadata/opt/remi/php$phpver
cp -a root/etc/e-smith/templates.metadata/opt/remi/php56/* root/etc/e-smith/templates.metadata/opt/remi/php$phpver
#sed inplace
find root/etc/e-smith/templates.metadata/opt/remi/php$phpver -type f -print0 | xargs -0 sed -i 's/56/'$phpver'/g'
done
# php7* # php7*
for phpver in "72" "73" "74" "80" "81" "82" "83"; do for phpver in "72" "73" "74" "80" "81" "82" "83"; do
#cp ph70 metada #cp ph70 metada
@@ -359,7 +262,7 @@ done
--dir /var/lib/php/php/tmp 'attr(0770,root,www)' \ --dir /var/lib/php/php/tmp 'attr(0770,root,www)' \
--dir /var/lib/php/php/opcache 'attr(0770,root,www)' \ --dir /var/lib/php/php/opcache 'attr(0770,root,www)' \
--dir /var/lib/php/php/wsdlcache 'attr(0770,root,www)' \ --dir /var/lib/php/php/wsdlcache 'attr(0770,root,www)' \
`for phpver in "54" "55" "56" "70" "71" "72" "73" "74" "80" "81" "82" "83"; do echo -n "--dir /var/log/php/php$phpver attr(0770,root,www) --dir /var/lib/php/php$phpver/session attr(0770,root,www) --dir /var/lib/php/php$phpver/tmp attr(0770,root,www) --dir /var/lib/php/php$phpver/opcache attr(0770,root,www) --dir /var/lib/php/php$phpver/wsdlcache attr(0770,root,www) ";done ` \ `for phpver in "72" "73" "74" "80" "81" "82" "83"; do echo -n "--dir /var/log/php/php$phpver attr(0770,root,www) --dir /var/lib/php/php$phpver/session attr(0770,root,www) --dir /var/lib/php/php$phpver/tmp attr(0770,root,www) --dir /var/lib/php/php$phpver/opcache attr(0770,root,www) --dir /var/lib/php/php$phpver/wsdlcache attr(0770,root,www) ";done ` \
> %{name}-%{version}-filelist > %{name}-%{version}-filelist
@@ -378,6 +281,18 @@ rm -rf $RPM_BUILD_ROOT
%preun %preun
%changelog %changelog
* Tue Mar 26 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-4.sme
- remove last references to php <7.2 [SME: 12550]
* Sat Mar 23 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-3.sme
- drop support for php < 7.2 [SME: 12521]
* Sat Mar 23 2024 Brian Read <brianr@koozali.org>11.0.0-2.sme
- Change Requires: e-smith- to Requires:smeserver-
* Sat Mar 23 2024 Brian Read <brianr@koozali.org>11.0.0-1.sme
- Update Release and Version to base version and 1st release for SME11 [SME: 12518]
* Sat Mar 23 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 3.0.0-49.sme * Sat Mar 23 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 3.0.0-49.sme
- Roll up patches and move to git repo [SME: 12338] - Roll up patches and move to git repo [SME: 12338]