wok annotate php/receipt @ rev 24574

updated fribidi and fribidi-dev (1.0.8 -> 1.0.11)
author Hans-G?nter Theisgen
date Sun Feb 27 07:58:48 2022 +0100 (2022-02-27)
parents bcea19bfa7af
children
rev   line source
pankso@18 1 # SliTaz package receipt.
pankso@18 2
pankso@18 3 PACKAGE="php"
Hans-G?nter@23426 4 VERSION="7.4.4"
pankso@204 5 CATEGORY="development"
pankso@18 6 SHORT_DESC="PHP web programming language."
pankso@18 7 MAINTAINER="pankso@slitaz.org"
pascal@15198 8 LICENSE="BSD"
Hans-G?nter@23426 9 WEB_SITE="https://www.php.net/"
Hans-G?nter@23426 10
pankso@18 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@22388 12 WGET_URL="https://www.php.net/distributions/$TARBALL"
Hans-G?nter@23426 13
pascal@1315 14 PROVIDE="php:lighttpd"
Hans-G?nter@23426 15 DEPENDS="libssl libzip libxml2 lighttpd php-common sqlite"
Hans-G?nter@23426 16 BUILD_DEPENDS="apache apache-dev apr-dev apr-util-dev c-client
Hans-G?nter@23426 17 coreutils-conditions curl-dev cyrus-sasl-dev gettext
Hans-G?nter@23426 18 jpeg-dev libldap libmcrypt-dev libmysqlclient libpng-dev
Hans-G?nter@23426 19 libtool libunixODBC libvpx-dev libxml2-dev libzip-dev
Hans-G?nter@23426 20 mhash-dev mysql-dev net-snmp-dev openldap-dev openssl-dev
Hans-G?nter@23426 21 perl pkg-config postgresql-dev re2c sed sqlite-dev
Hans-G?nter@23426 22 unixODBC-dev"
Hans-G?nter@23426 23
pankso@16079 24 #HOST_ARCH="i486 arm"
pankso@18 25
pascal@24102 26 current_version()
pascal@24102 27 {
pascal@24102 28 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24102 29 sed '/Released/!d;s|.*PHP ||;s| Rel.*||' | sort -Vr | sed q
pascal@24102 30 }
pascal@24102 31
pankso@16079 32 case "$ARCH" in
pankso@16079 33 i?86)
Hans-G?nter@23426 34 # 7.4.4 unrecognised:
Hans-G?nter@23426 35 # --enable-zip
Hans-G?nter@23426 36 # --with-jpeg-dir=/usr
Hans-G?nter@23426 37 # --with-png-dir=/usr
Hans-G?nter@23426 38
Hans-G?nter@23426 39 ARCH_ARGS=" \
Hans-G?nter@23426 40 --prefix=/usr \
Hans-G?nter@23426 41 --sysconfdir=/etc \
Hans-G?nter@23426 42 --infodir=/usr/share/info \
Hans-G?nter@23426 43 --mandir=/usr/share/man \
Hans-G?nter@23426 44 --config-cache \
Hans-G?nter@23426 45 --enable-calendar \
Hans-G?nter@23426 46 --enable-dba=shared \
Hans-G?nter@23426 47 --enable-exif \
Hans-G?nter@23426 48 --enable-ftp \
Hans-G?nter@23426 49 --enable-gd=shared \
Hans-G?nter@23426 50 --enable-maintainer-zts \
Hans-G?nter@23426 51 --disable-mbregex \
Hans-G?nter@23426 52 --enable-mbstring \
Hans-G?nter@23426 53 --enable-soap=shared,/usr \
Hans-G?nter@23426 54 --enable-sockets \
Hans-G?nter@23426 55 --with-config-file-path=/etc \
Hans-G?nter@23426 56 --with-curl=shared \
Hans-G?nter@23426 57 --with-gettext \
Hans-G?nter@23426 58 --with-imap=shared \
Hans-G?nter@23426 59 --with-imap-ssl \
Hans-G?nter@23426 60 --with-ldap=shared \
Hans-G?nter@23426 61 --with-mhash \
Hans-G?nter@23426 62 --with-mysql-sock=/var/run/mysqld/mysql.sock \
Hans-G?nter@23426 63 --with-mysqli=shared \
Hans-G?nter@23426 64 --with-openssl=shared \
Hans-G?nter@23426 65 --with-pdo-mysql=shared \
Hans-G?nter@23426 66 --with-pdo-pgsql=shared \
Hans-G?nter@23426 67 --with-pdo-sqlite=shared,/usr \
Hans-G?nter@23426 68 --with-pear=/usr/share/php \
Hans-G?nter@23426 69 --with-pgsql=shared,/usr \
Hans-G?nter@23426 70 --with-snmp=shared,/usr \
Hans-G?nter@23426 71 --with-sqlite3=shared,/usr \
Hans-G?nter@23426 72 --with-unixODBC=shared,/usr \
Hans-G?nter@23426 73 --with-zlib" ;;
pankso@16079 74 arm*)
pankso@16079 75 BUILD_DEPENDS="sqlite-dev libxml2-dev zlib-dev curl-dev"
pankso@16079 76 ARCH_ARGS="\
pankso@16079 77 --prefix=/usr \
pankso@16079 78 --sysconfdir=/etc \
pankso@16079 79 --infodir=/usr/share/info \
pankso@16079 80 --mandir=/usr/share/man \
pankso@16079 81 --config-cache \
pankso@16079 82 --enable-mbstring \
pankso@16079 83 --enable-sockets \
pankso@16079 84 --enable-ftp \
pankso@16079 85 --enable-zip \
pankso@16079 86 --enable-calendar \
pankso@16079 87 --enable-exif \
pankso@16079 88 --enable-dba=shared \
pankso@16079 89 --enable-sqlite-utf8 \
pankso@16079 90 --with-mhash \
pankso@16079 91 --with-sqlite=shared \
pankso@16079 92 --with-config-file-path=/etc \
pankso@16079 93 --with-zlib \
pankso@16079 94 --with-gettext \
pankso@16079 95 --with-curl=shared \
pankso@16079 96 --with-openssl=shared \
pankso@16079 97 --with-jpeg-dir=/usr \
pankso@16079 98 --with-png-dir=/usr \
pankso@16079 99 --with-apxs2=/usr/bin/apxs" ;;
pankso@16079 100 esac
pankso@16079 101
pankso@18 102 # Rules to configure and make the package.
pankso@18 103 compile_rules()
pankso@18 104 {
pascal@2605 105 sed -i 's/pam_start/pam_nostart/' configure
Hans-G?nter@23426 106
Hans-G?nter@23426 107 ./configure $ARCH_ARGS $CONFIGURE_ARGS &&
Hans-G?nter@23426 108 make $MAKEFLAGS &&
Hans-G?nter@23426 109 make -j1 INSTALL_ROOT=$DESTDIR install &&
Hans-G?nter@23426 110 ./configure $ARCH_ARGS $CONFIGURE_ARGS --with-apxs2=/usr/bin/apxs &&
Hans-G?nter@23426 111 make $MAKEFLAGS &&
Hans-G?nter@23426 112 {
pankso@9862 113 mkdir -p $DESTDIR/etc/apache
Hans-G?nter@23426 114 cp /etc/apache/httpd.conf $DESTDIR/etc/apache/httpd.conf
slaxemulator@14614 115 make -j1 INSTALL_ROOT=$DESTDIR install
pascal@1315 116 }
Hans-G?nter@23426 117
Hans-G?nter@23426 118 # Production configuration file.
pankso@10819 119 mkdir -p $DESTDIR/etc
Hans-G?nter@23426 120 cp $src/php.ini-production $DESTDIR/etc/php.ini || exit 1
Hans-G?nter@23426 121 sed -i -e 's|extension_dir = "./"|extension_dir = "/usr/share/php/"|' \
Hans-G?nter@23426 122 $DESTDIR/etc/php.ini
pankso@18 123 }
pankso@18 124
pankso@18 125 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 126 genpkg_rules()
pankso@18 127 {
Hans-G?nter@23426 128 mkdir -p $fs/usr/bin
Hans-G?nter@23426 129 mkdir -p $fs/usr/share/php
Hans-G?nter@23426 130
Hans-G?nter@23426 131 cp -a $src/sapi/cgi/php-cgi $fs/usr/bin
pankso@18 132 }
pankso@18 133
slaxemulator@14614 134 # Post and pre install commands to stop
slaxemulator@14614 135 # and restart Web server if needed.
pankso@18 136 pre_install()
pankso@18 137 {
Hans-G?nter@23426 138 if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]
Hans-G?nter@23426 139 then
pankso@18 140 /etc/init.d/lighttpd stop
pankso@18 141 fi
pankso@18 142 }
pankso@9861 143
pankso@18 144 post_install()
pankso@18 145 {
Hans-G?nter@23426 146 # Enable PHP
Hans-G?nter@23426 147 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
Hans-G?nter@23426 148 then
Hans-G?nter@23426 149 [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] ||
pascal@18730 150 tazpkg get-install lighttpd-modules --root="$1/"
Hans-G?nter@23426 151 sed -i -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
Hans-G?nter@23426 152 -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
Hans-G?nter@23426 153 -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \
Hans-G?nter@23426 154 "$1/etc/lighttpd/lighttpd.conf"
Hans-G?nter@23426 155 grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" ||
Hans-G?nter@23426 156 sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \
Hans-G?nter@23426 157 -i "$1/etc/lighttpd/lighttpd.conf"
Hans-G?nter@23426 158 grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \
Hans-G?nter@23426 159 sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
Hans-G?nter@23426 160 -i "$1/etc/lighttpd/lighttpd.conf"
pascal@1143 161 fi
Hans-G?nter@23426 162
pankso@18 163 # Start Web server.
Hans-G?nter@23426 164 if [ -z "$1" -a ! -f /var/run/lighttpd.pid -a -f /etc/init.d/lighttpd ]
Hans-G?nter@23426 165 then
pankso@18 166 /etc/init.d/lighttpd start
pankso@18 167 fi
pankso@18 168 }