wok diff php/receipt @ rev 24099
Up openssh (8.7p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 16 08:39:38 2021 +0000 (2021-09-16) |
parents | b10d41313e54 |
children | 15650f5d595b |
line diff
1.1 --- a/php/receipt Fri Mar 20 15:21:15 2020 +0100 1.2 +++ b/php/receipt Thu Sep 16 08:39:38 2021 +0000 1.3 @@ -1,64 +1,70 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="php" 1.7 -VERSION="7.3.16" 1.8 +VERSION="7.4.4" 1.9 CATEGORY="development" 1.10 SHORT_DESC="PHP web programming language." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 LICENSE="BSD" 1.13 +WEB_SITE="https://www.php.net/" 1.14 + 1.15 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.16 -WEB_SITE="https://www.php.net/" 1.17 WGET_URL="https://www.php.net/distributions/$TARBALL" 1.18 + 1.19 PROVIDE="php:lighttpd" 1.20 +DEPENDS="libssl libzip libxml2 lighttpd php-common sqlite" 1.21 +BUILD_DEPENDS="apache apache-dev apr-dev apr-util-dev c-client 1.22 + coreutils-conditions curl-dev cyrus-sasl-dev gettext 1.23 + jpeg-dev libldap libmcrypt-dev libmysqlclient libpng-dev 1.24 + libtool libunixODBC libvpx-dev libxml2-dev libzip-dev 1.25 + mhash-dev mysql-dev net-snmp-dev openldap-dev openssl-dev 1.26 + perl pkg-config postgresql-dev re2c sed sqlite-dev 1.27 + unixODBC-dev" 1.28 + 1.29 #HOST_ARCH="i486 arm" 1.30 1.31 -DEPENDS="php-common lighttpd libzip libxml2 sqlite libssl" 1.32 -BUILD_DEPENDS="sqlite-dev libxml2-dev libzip-dev libmysqlclient mysql-dev \ 1.33 -net-snmp-dev postgresql-dev gettext openssl-dev apache-dev apr-util-dev \ 1.34 -c-client mhash-dev libpng-dev libunixODBC unixODBC-dev openldap-dev \ 1.35 -libldap apr-dev libmcrypt-dev curl-dev cyrus-sasl-dev perl pkg-config \ 1.36 -jpeg-dev net-snmp-dev libvpx-dev apache coreutils-conditions sed re2c \ 1.37 -libtool" 1.38 - 1.39 case "$ARCH" in 1.40 i?86) 1.41 - ARCH_ARGS="\ 1.42 - --prefix=/usr \ 1.43 - --sysconfdir=/etc \ 1.44 - --infodir=/usr/share/info \ 1.45 - --mandir=/usr/share/man \ 1.46 - --enable-mbstring \ 1.47 - --enable-sockets \ 1.48 - --enable-ftp \ 1.49 - --enable-zip \ 1.50 - --enable-calendar \ 1.51 - --enable-exif \ 1.52 - --config-cache \ 1.53 - --enable-dba=shared \ 1.54 - --with-config-file-path=/etc \ 1.55 - --with-zlib \ 1.56 - --with-gettext \ 1.57 - --with-mysqli=shared \ 1.58 - --with-mysql-sock=/var/run/mysqld/mysql.sock \ 1.59 - --with-pdo-sqlite=shared,/usr \ 1.60 - --with-pgsql=shared,/usr \ 1.61 - --with-snmp=shared,/usr \ 1.62 - --enable-soap=shared,/usr \ 1.63 - --with-ldap=shared \ 1.64 - --with-imap=shared \ 1.65 - --with-imap-ssl \ 1.66 - --with-mhash \ 1.67 - --with-gd=shared \ 1.68 - --with-jpeg-dir=/usr \ 1.69 - --with-png-dir=/usr \ 1.70 - --with-openssl=shared \ 1.71 - --with-unixODBC=shared,/usr \ 1.72 - --with-pear=/usr/share/php \ 1.73 - --with-pdo-mysql=shared \ 1.74 - --with-pdo-pgsql=shared \ 1.75 - --with-curl=shared \ 1.76 - --with-sqlite3=shared,/usr \ 1.77 - --enable-maintainer-zts" ;; 1.78 + # 7.4.4 unrecognised: 1.79 + # --enable-zip 1.80 + # --with-jpeg-dir=/usr 1.81 + # --with-png-dir=/usr 1.82 + 1.83 + ARCH_ARGS=" \ 1.84 + --prefix=/usr \ 1.85 + --sysconfdir=/etc \ 1.86 + --infodir=/usr/share/info \ 1.87 + --mandir=/usr/share/man \ 1.88 + --config-cache \ 1.89 + --enable-calendar \ 1.90 + --enable-dba=shared \ 1.91 + --enable-exif \ 1.92 + --enable-ftp \ 1.93 + --enable-gd=shared \ 1.94 + --enable-maintainer-zts \ 1.95 + --disable-mbregex \ 1.96 + --enable-mbstring \ 1.97 + --enable-soap=shared,/usr \ 1.98 + --enable-sockets \ 1.99 + --with-config-file-path=/etc \ 1.100 + --with-curl=shared \ 1.101 + --with-gettext \ 1.102 + --with-imap=shared \ 1.103 + --with-imap-ssl \ 1.104 + --with-ldap=shared \ 1.105 + --with-mhash \ 1.106 + --with-mysql-sock=/var/run/mysqld/mysql.sock \ 1.107 + --with-mysqli=shared \ 1.108 + --with-openssl=shared \ 1.109 + --with-pdo-mysql=shared \ 1.110 + --with-pdo-pgsql=shared \ 1.111 + --with-pdo-sqlite=shared,/usr \ 1.112 + --with-pear=/usr/share/php \ 1.113 + --with-pgsql=shared,/usr \ 1.114 + --with-snmp=shared,/usr \ 1.115 + --with-sqlite3=shared,/usr \ 1.116 + --with-unixODBC=shared,/usr \ 1.117 + --with-zlib" ;; 1.118 arm*) 1.119 BUILD_DEPENDS="sqlite-dev libxml2-dev zlib-dev curl-dev" 1.120 ARCH_ARGS="\ 1.121 @@ -91,57 +97,66 @@ 1.122 compile_rules() 1.123 { 1.124 sed -i 's/pam_start/pam_nostart/' configure 1.125 - ./configure $ARCH_ARGS $CONFIGURE_ARGS && \ 1.126 - make $MAKEFLAGS && make -j1 INSTALL_ROOT=$DESTDIR install 1.127 - ./configure $ARCH_ARGS $CONFIGURE_ARGS --with-apxs2=/usr/bin/apxs && \ 1.128 - make $MAKEFLAGS && { 1.129 + 1.130 + ./configure $ARCH_ARGS $CONFIGURE_ARGS && 1.131 + make $MAKEFLAGS && 1.132 + make -j1 INSTALL_ROOT=$DESTDIR install && 1.133 + ./configure $ARCH_ARGS $CONFIGURE_ARGS --with-apxs2=/usr/bin/apxs && 1.134 + make $MAKEFLAGS && 1.135 + { 1.136 mkdir -p $DESTDIR/etc/apache 1.137 - cp /etc/apache/httpd.conf $DESTDIR/etc/apache/httpd.conf 1.138 + cp /etc/apache/httpd.conf $DESTDIR/etc/apache/httpd.conf 1.139 make -j1 INSTALL_ROOT=$DESTDIR install 1.140 } 1.141 - # Production config file. 1.142 + 1.143 + # Production configuration file. 1.144 mkdir -p $DESTDIR/etc 1.145 - cp $src/php.ini-production $DESTDIR/etc/php.ini || exit 1 1.146 - sed -e 's|extension_dir = "./"|extension_dir = "/usr/share/php/"|' \ 1.147 - -i $DESTDIR/etc/php.ini 1.148 + cp $src/php.ini-production $DESTDIR/etc/php.ini || exit 1 1.149 + sed -i -e 's|extension_dir = "./"|extension_dir = "/usr/share/php/"|' \ 1.150 + $DESTDIR/etc/php.ini 1.151 } 1.152 1.153 # Rules to gen a SliTaz package suitable for Tazpkg. 1.154 genpkg_rules() 1.155 { 1.156 - mkdir -p $fs/usr/bin $fs/usr/share/php 1.157 - cp -a $src/sapi/cgi/php-cgi $fs/usr/bin 1.158 + mkdir -p $fs/usr/bin 1.159 + mkdir -p $fs/usr/share/php 1.160 + 1.161 + cp -a $src/sapi/cgi/php-cgi $fs/usr/bin 1.162 } 1.163 1.164 # Post and pre install commands to stop 1.165 # and restart Web server if needed. 1.166 pre_install() 1.167 { 1.168 - if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]; then 1.169 + if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ] 1.170 + then 1.171 /etc/init.d/lighttpd stop 1.172 fi 1.173 } 1.174 1.175 post_install() 1.176 { 1.177 - # Enable php 1.178 - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 1.179 - [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || \ 1.180 + # Enable PHP 1.181 + if [ -f "$1/etc/lighttpd/lighttpd.conf" ] 1.182 + then 1.183 + [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || 1.184 tazpkg get-install lighttpd-modules --root="$1/" 1.185 - sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \ 1.186 - -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \ 1.187 - -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \ 1.188 - -i "$1/etc/lighttpd/lighttpd.conf" 1.189 - grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || \ 1.190 - sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \ 1.191 - -i "$1/etc/lighttpd/lighttpd.conf" 1.192 - grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \ 1.193 - sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \ 1.194 - -i "$1/etc/lighttpd/lighttpd.conf" 1.195 + sed -i -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \ 1.196 + -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \ 1.197 + -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \ 1.198 + "$1/etc/lighttpd/lighttpd.conf" 1.199 + grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || 1.200 + sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \ 1.201 + -i "$1/etc/lighttpd/lighttpd.conf" 1.202 + grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \ 1.203 + sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \ 1.204 + -i "$1/etc/lighttpd/lighttpd.conf" 1.205 fi 1.206 + 1.207 # Start Web server. 1.208 - if [ -z "$1" -a ! -f /var/run/lighttpd.pid \ 1.209 - -a -f /etc/init.d/lighttpd ]; then 1.210 + if [ -z "$1" -a ! -f /var/run/lighttpd.pid -a -f /etc/init.d/lighttpd ] 1.211 + then 1.212 /etc/init.d/lighttpd start 1.213 fi 1.214 }