wok-next annotate php/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 5ef1403a3199
children
rev   line source
pascal@20051 1 # SliTaz package receipt v2.
pankso@18 2
pankso@18 3 PACKAGE="php"
Hans-G?nter@21402 4 VERSION="7.4.5"
pankso@204 5 CATEGORY="development"
al@20534 6 SHORT_DESC="PHP web programming language"
Hans-G?nter@21348 7 MAINTAINER="maintainer@slitaz.org"
pascal@15198 8 LICENSE="BSD"
Hans-G?nter@21348 9 WEB_SITE="https://www.php.net/"
al@20534 10
Hans-G?nter@21348 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@21348 12 WGET_URL="https://www.php.net/distributions/$TARBALL"
pankso@18 13
Hans-G?nter@21348 14 BUILD_DEPENDS="apache apache-dev apr-dev apr-util-dev c-client
Hans-G?nter@21403 15 coreutils-conditions curl-dev cyrus-sasl-dev gettext
Hans-G?nter@21348 16 jpeg-dev libldap libmcrypt-dev libmysqlclient libpng-dev
Hans-G?nter@21348 17 libunixODBC libvpx-dev libxml2-dev mhash-dev mysql-dev
Hans-G?nter@21348 18 net-snmp-dev openldap-dev openssl-dev perl postgresql-dev
Hans-G?nter@21348 19 re2c sed sqlite3-dev unixODBC-dev zlib-dev"
al@21020 20 SPLIT="\
al@21020 21 $PACKAGE-apache $PACKAGE-cherokee $PACKAGE-cli $PACKAGE-common \
al@21020 22 $PACKAGE-curl $PACKAGE-dba $PACKAGE-dev $PACKAGE-gd \
Hans-G?nter@21402 23 $PACKAGE-imap $PACKAGE-ldap $PACKAGE-mcrypt $PACKAGE-mysql \
Hans-G?nter@21402 24 $PACKAGE-mysqli $PACKAGE-odbc $PACKAGE-openssl $PACKAGE-pdo-mysql \
al@21020 25 $PACKAGE-pdo-pgsql $PACKAGE-pear $PACKAGE-pgsql $PACKAGE-snmp \
al@21020 26 $PACKAGE-soap $PACKAGE-sqlite"
al@20534 27
Hans-G?nter@21348 28 compile_rules()
Hans-G?nter@21348 29 {
Hans-G?nter@21403 30 # 7.4.4 unrecognised:
Hans-G?nter@21403 31 # --enable-zip
Hans-G?nter@21403 32 # --with-jpeg-dir=/usr
Hans-G?nter@21403 33 # --with-png-dir=/usr
Hans-G?nter@21404 34 # --with-mcrypt=shared,/usr
Hans-G?nter@21404 35 # --with-mysql=shared,/usr
Hans-G?nter@21404 36 # --with-vpx-dir=/usr
Hans-G?nter@21403 37
al@21020 38 ARCH_ARGS="\
Hans-G?nter@21403 39 --config-cache \
Hans-G?nter@21403 40 --enable-calendar \
Hans-G?nter@21403 41 --enable-dba=shared \
Hans-G?nter@21403 42 --enable-exif \
Hans-G?nter@21403 43 --enable-ftp \
Hans-G?nter@21403 44 --enable-maintainer-zts \
Hans-G?nter@21348 45 --enable-mbstring \
Hans-G?nter@21403 46 --enable-soap=shared,/usr \
Hans-G?nter@21348 47 --enable-sockets \
Hans-G?nter@21348 48 --with-config-file-path=/etc \
Hans-G?nter@21403 49 --with-curl=shared \
Hans-G?nter@21404 50 --enable-gd=shared \
Hans-G?nter@21348 51 --with-gettext \
Hans-G?nter@21406 52 --with-imap=/usr/lib \
Hans-G?nter@21403 53 --with-imap-ssl \
Hans-G?nter@21403 54 --with-ldap=shared \
Hans-G?nter@21403 55 --with-mhash \
Hans-G?nter@21403 56 --with-mysql-sock=/var/run/mysqld/mysql.sock \
Hans-G?nter@21348 57 --with-mysqli=shared \
Hans-G?nter@21403 58 --with-openssl=shared \
Hans-G?nter@21403 59 --with-pdo-mysql=shared \
Hans-G?nter@21403 60 --with-pdo-pgsql=shared \
Hans-G?nter@21348 61 --with-pdo-sqlite=shared,/usr \
Hans-G?nter@21403 62 --with-pear=/usr/share/php \
Hans-G?nter@21348 63 --with-pgsql=shared,/usr \
Hans-G?nter@21348 64 --with-snmp=shared,/usr \
Hans-G?nter@21403 65 --with-sqlite3=shared,/usr \
Hans-G?nter@21403 66 --with-unixODBC=shared,/usr \
Hans-G?nter@21403 67 --with-zlib"
pankso@16079 68
Hans-G?nter@21403 69 # 7.4.5 no such file
Hans-G?nter@21403 70 # sed -i 's|PLANE_[UVY]\]|VPX_&|;s|IMG_FMT_I420|VPX_&|' \
Hans-G?nter@21404 71 # ext/gd/libgd/webpimg.c
Hans-G?nter@21403 72
Hans-G?nter@21348 73 sed -i 's/pam_start/pam_nostart/' \
Hans-G?nter@21348 74 configure
al@20534 75
Hans-G?nter@21406 76 mkdir /usr/lib/c-client
Hans-G?nter@21406 77 ln -s /usr/lib/c-client.a /usr/lib/c-client/libc-client.a
Hans-G?nter@21405 78
Hans-G?nter@21348 79 ./configure \
Hans-G?nter@21348 80 $ARCH_ARGS \
al@20534 81 $CONFIGURE_ARGS &&
al@20534 82 make $MAKEFLAGS &&
al@21020 83 make -j1 INSTALL_ROOT=$install install
al@20534 84
Hans-G?nter@21348 85 ./configure \
Hans-G?nter@21348 86 $ARCH_ARGS \
al@20534 87 $CONFIGURE_ARGS \
al@20534 88 --with-apxs2=/usr/bin/apxs &&
al@20534 89 make $MAKEFLAGS &&
al@21020 90 mkdir -p $install/etc/apache &&
Hans-G?nter@21348 91 cp /etc/apache/httpd.conf $install/etc/apache/httpd.conf &&
al@21020 92 make -j1 INSTALL_ROOT=$install install || return 1
al@20534 93
Hans-G?nter@21348 94 # Production configuration file.
al@21020 95 mkdir -p $install/etc
Hans-G?nter@21348 96
Hans-G?nter@21348 97 cp $src/php.ini-production $install/etc/php.ini || return 1
slaxemulator@10549 98 sed -e 's|extension_dir = "./"|extension_dir = "/usr/share/php/"|' \
al@21020 99 -i $install/etc/php.ini
al@20534 100
al@20534 101 install -Dm755 $src/sapi/cgi/php-cgi $install/usr/bin/php-cgi
al@20534 102
al@20534 103 install -Dm644 $stuff/phpinfo/index.php $install/usr/share/phpinfo/index.php
al@20534 104 install -Dm644 $stuff/php.desktop $install/usr/share/applications/php.desktop
al@20534 105 install -Dm644 $stuff/php.png $install/usr/share/pixmaps/php.png
pankso@18 106 }
pankso@18 107
Hans-G?nter@21348 108 genpkg_rules()
Hans-G?nter@21348 109 {
pascal@20051 110 case $PACKAGE in
al@20534 111 php)
al@20534 112 copy usr/bin/php-cgi
Hans-G?nter@21402 113 DEPENDS="libxml2 lighttpd openssl php-common sqlite3 zlib"
al@20534 114 PROVIDE="php:lighttpd"
al@20534 115 ;;
al@20534 116 php-apache)
al@20534 117 copy usr/share/apache/
al@20534 118 CAT="development|module for apache"
Hans-G?nter@21402 119 DEPENDS="apache libxml2 php-common zlib"
al@20534 120 PROVIDE="php:apache"
al@20534 121 ;;
al@20534 122 php-cherokee)
al@20534 123 copy usr/bin/php-cgi # FIXME! the same file in "php" package
al@20534 124 CAT="development|module for cherokee"
Hans-G?nter@21402 125 DEPENDS="cherokee libxml2 php-common zlib"
al@20534 126 PROVIDE="php:cherokee"
al@20534 127 ;;
al@20534 128 php-cli)
al@20534 129 copy usr/bin/php
al@20534 130 CAT="development|command line interpreter"
al@20534 131 DEPENDS="php-common"
al@20534 132 ;;
al@20534 133 php-common)
al@20534 134 copy phpinfo/ php.desktop php.png php.ini
al@20534 135 CAT="development|common files for PHP modules"
al@20534 136 DEPENDS=" "
al@20534 137 CONFIG_FILES="/etc/php.ini"
al@20534 138 ;;
al@20534 139 php-curl)
al@20534 140 copy curl.so
al@20534 141 CAT="development|curl module"
al@20534 142 DEPENDS="curl php"
al@20534 143 ;;
al@20534 144 php-dba)
al@20534 145 copy dba.so
al@20534 146 CAT="development|dba module"
al@20534 147 DEPENDS=" "
al@20534 148 ;;
al@20534 149 php-dev)
al@20534 150 copy @dev
Hans-G?nter@21402 151 DEPENDS="cyrus-sasl jpeg libcomerr3 libkrb5 libldap
Hans-G?nter@21402 152 libmcrypt libmysqlclient libpng libpostgresqlclient
Hans-G?nter@21402 153 libtool libunixODBC mhash net-snmp openssl php"
al@20534 154 ;;
al@20534 155 php-gd)
al@20534 156 copy gd.so
al@20534 157 CAT="development|gd module"
Hans-G?nter@21402 158 DEPENDS="jpeg libpng libvpx php"
al@20534 159 ;;
al@20534 160 php-imap)
al@20534 161 copy imap.so
al@20534 162 CAT="development|imap module"
Hans-G?nter@21402 163 DEPENDS="openssl php"
al@20534 164 ;;
al@20534 165 php-ldap)
al@20534 166 copy ldap.so
al@20534 167 CAT="development|ldap module"
Hans-G?nter@21402 168 DEPENDS="cyrus-sasl libcomerr3 libkrb5 libldap openssl php"
al@20534 169 ;;
al@20534 170 php-mcrypt)
al@20534 171 copy mcrypt.so
al@20534 172 CAT="development|mcrypt module"
Hans-G?nter@21402 173 DEPENDS="libmcrypt libtool php"
al@20534 174 ;;
al@20534 175 php-mysqli)
al@20534 176 copy mysqli.so
al@20534 177 CAT="development|mysqli module"
al@20534 178 DEPENDS="libmysqlclient php"
al@20534 179 ;;
al@20534 180 php-mysql)
al@20534 181 copy mysql.so
al@20534 182 CAT="development|mysql module"
al@20534 183 DEPENDS="libmysqlclient php"
al@20534 184 ;;
al@20534 185 php-odbc)
al@20534 186 copy odbc.so
al@20534 187 CAT="development|ODBC module"
Hans-G?nter@21402 188 DEPENDS="php unixODBC"
al@20534 189 ;;
al@20534 190 php-openssl)
al@20534 191 copy openssl.so
al@20534 192 CAT="development|OpenSSL module"
Hans-G?nter@21402 193 DEPENDS="openssl php"
al@20534 194 ;;
al@20534 195 php-pdo-mysql)
al@20534 196 copy pdo_mysql.so
al@20534 197 CAT="development|PDO MySQL module"
al@20534 198 DEPENDS="php php-mysql"
al@20534 199 ;;
al@20534 200 php-pdo-pgsql)
al@20534 201 copy pdo_pgsql.so
al@20534 202 CAT="development|PDO PgSQL module"
Hans-G?nter@21402 203 DEPENDS="libpostgresqlclient php php-mysql"
al@20534 204 ;;
al@20534 205 php-pear)
al@20534 206 copy etc/pear.conf usr/bin/pe* usr/share/php/
al@20534 207 CAT="development|PEAR libs"
al@20534 208 DEPENDS="php-cli"
al@20534 209 ;;
al@20534 210 php-pgsql)
al@20534 211 copy pgsql.so
al@20534 212 CAT="development|postgresql module"
Hans-G?nter@21402 213 DEPENDS="php postgresql"
al@20534 214 ;;
al@20534 215 php-snmp)
al@20534 216 copy snmp.so
al@20534 217 CAT="development|snmp module"
Hans-G?nter@21402 218 DEPENDS="net-snmp openssl php"
al@20534 219 ;;
al@20534 220 php-soap)
al@20534 221 copy soap.so
al@20534 222 CAT="development|soap module"
Hans-G?nter@21402 223 DEPENDS="libxml2 php"
al@20534 224 ;;
al@20534 225 php-sqlite)
al@20534 226 copy sqlite.so sqlite3.so pdo_sqlite.so
al@20534 227 CAT="development|sqlite module"
al@20534 228 DEPENDS="php sqlite3"
al@20534 229 ;;
pascal@20051 230 esac
pankso@18 231 }
pankso@18 232
al@20534 233 # -----------------------------------------------------------------------------
Hans-G?nter@21348 234 pre_install_php()
Hans-G?nter@21348 235 {
Hans-G?nter@21348 236 if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]
Hans-G?nter@21348 237 then
pankso@18 238 /etc/init.d/lighttpd stop
pankso@18 239 fi
pankso@18 240 }
pankso@9861 241
Hans-G?nter@21348 242 post_install_php()
Hans-G?nter@21348 243 {
pascal@1143 244 # Enable php
Hans-G?nter@21348 245 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
Hans-G?nter@21348 246 then
al@20534 247 [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] ||
al@20534 248 tazpkg get-install lighttpd-modules --root="$1/"
al@20534 249
al@20534 250 sed \
al@20534 251 -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
al@20534 252 -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
al@20534 253 -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \
al@20534 254 -i "$1/etc/lighttpd/lighttpd.conf"
al@20534 255
al@20534 256 grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" ||
al@20534 257 sed \
al@20534 258 -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \
al@20534 259 -i "$1/etc/lighttpd/lighttpd.conf"
al@20534 260
al@20534 261 grep -q php3 "$1/etc/lighttpd/lighttpd.conf" ||
al@20534 262 sed \
al@20534 263 -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
al@20534 264 -i "$1/etc/lighttpd/lighttpd.conf"
al@20534 265
pascal@1143 266 fi
al@20534 267
pankso@18 268 # Start Web server.
Hans-G?nter@21348 269 if [ -z "$1" -a ! -f /var/run/lighttpd.pid -a -f /etc/init.d/lighttpd ]
Hans-G?nter@21348 270 then
pankso@18 271 /etc/init.d/lighttpd start
pankso@18 272 fi
pankso@18 273 }
pascal@20051 274
al@20534 275 # -----------------------------------------------------------------------------
Hans-G?nter@21348 276 pre_installi_php_apache()
Hans-G?nter@21348 277 {
Hans-G?nter@21348 278 if [ -z "$1" -a -f "/var/run/apache/httpd.pid" ]
Hans-G?nter@21348 279 then
pascal@20051 280 /etc/init.d/apache stop
pascal@20051 281 fi
pascal@20051 282 }
pascal@20051 283
Hans-G?nter@21348 284 post_install_php_apache()
Hans-G?nter@21348 285 {
al@20534 286 grep -q php5_module "$1/etc/apache/httpd.conf" ||
al@20534 287 {
al@20534 288 sed \
al@20534 289 -e 's|mod_rewrite.so|mod_rewrite.so\nLoadModule php5_module share/apache/modules/libphp5.so|' \
al@20534 290 -e 's|DirectoryIndex index.html|DirectoryIndex index.html index.php|' \
al@20534 291 -e 's|mime.types|mime.types\n AddType application/x-httpd-php .php .php3 .php4 .php5\n AddType application/x-httpd-php-source .phps|' \
al@20534 292 -i "$1/etc/apache/httpd.conf"
pascal@20051 293 }
al@20534 294
al@20534 295 [ -f "$1/etc/apache/conf.d/phpinfo" ] ||
pascal@20051 296 cat > "$1/etc/apache/conf.d/phpinfo" <<EOT
pascal@20051 297 <IfModule mod_alias.c>
pascal@20051 298 Alias /phpinfo /usr/share/phpinfo
pascal@20051 299 </IfModule>
pascal@20051 300 <DirectoryMatch /usr/share/phpinfo/>
pascal@20051 301 DirectoryIndex index.php
pascal@20051 302 Options +FollowSymLinks
pascal@20051 303 AllowOverride None
pascal@20051 304 Order allow,deny
pascal@20051 305 Allow from all
pascal@20051 306 </DirectoryMatch>
pascal@20051 307 EOT
al@20534 308
pascal@20051 309 # Restart Web server.
Hans-G?nter@21348 310 if [ -z "$1" -a -f "/var/run/apache/httpd.pid" ]
Hans-G?nter@21348 311 then
pascal@20051 312 /etc/init.d/apache stop
pascal@20051 313 sleep 2
pascal@20051 314 fi
pascal@20051 315 if [ -z "$1" ]; then
pascal@20051 316 /etc/init.d/apache start
pascal@20051 317 fi
pascal@20051 318 }
pascal@20051 319
al@20534 320 # -----------------------------------------------------------------------------
Hans-G?nter@21348 321 pre_install_php_cherokee()
Hans-G?nter@21348 322 {
Hans-G?nter@21348 323 if [ -z "$1" -a ! -f "/var/run/cherokee.pid" ]
Hans-G?nter@21348 324 then
pascal@20051 325 /etc/init.d/cherokee stop
pascal@20051 326 fi
pascal@20051 327 }
pascal@20051 328
Hans-G?nter@21348 329 post_install_php_cherokee()
Hans-G?nter@21348 330 {
pascal@20051 331 # Enable php
pascal@20051 332 # if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
pascal@20051 333 # [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || \
pascal@20051 334 # tazpkg get-install lighttpd-modules --root="$1/"
pascal@20051 335 # sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
pascal@20051 336 # -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
pascal@20051 337 # -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \
pascal@20051 338 # -i "$1/etc/lighttpd/lighttpd.conf"
pascal@20051 339 # grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || \
pascal@20051 340 # sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \
pascal@20051 341 # -i "$1/etc/lighttpd/lighttpd.conf"
pascal@20051 342 # grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \
pascal@20051 343 # sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
pascal@20051 344 # -i "$1/etc/lighttpd/lighttpd.conf"
pascal@20051 345 # fi
pascal@20051 346
pascal@20051 347 # Start Web server.
Hans-G?nter@21348 348 if [ -z "$1" -a ! -f /var/run/cherokee.pid -a -f /etc/init.d/cherokee ]
Hans-G?nter@21348 349 then
pascal@20051 350 /etc/init.d/cherokee start
pascal@20051 351 fi
pascal@20051 352 }
pascal@20051 353
al@20534 354 # -----------------------------------------------------------------------------
Hans-G?nter@21348 355 pre_install_php_common()
Hans-G?nter@21348 356 {
pascal@20051 357 # Backup existing php.ini
Hans-G?nter@21348 358 if [ -f "$1/etc/php.ini" ]
Hans-G?nter@21348 359 then
pascal@20051 360 cp "$1/etc/php.ini" "$1/etc/php.ini.bak"
pascal@20051 361 fi
pascal@20051 362 }
pascal@20051 363
Hans-G?nter@21348 364 post_install_php_common()
Hans-G?nter@21348 365 {
al@20534 366 # Restore original php.ini
Hans-G?nter@21348 367 if [ -f "$1/etc/php.ini.bak" ]
Hans-G?nter@21348 368 then
al@20534 369 mv -f "$1/etc/php.ini.bak" "$1/etc/php.ini"
al@20534 370 fi
al@20534 371 }
al@20534 372
al@20534 373 # -----------------------------------------------------------------------------
Hans-G?nter@21348 374 pre_install_php_curl()
Hans-G?nter@21348 375 {
Hans-G?nter@21348 376 while read daemon file
Hans-G?nter@21348 377 do
Hans-G?nter@21348 378 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21348 379 then
Hans-G?nter@21348 380 /etc/init.d/$daemon stop
Hans-G?nter@21348 381 fi
Hans-G?nter@21348 382 done <<EOT
Hans-G?nter@21348 383 apache apache/httpd.pid
Hans-G?nter@21348 384 lighttpd lighttpd.pid
Hans-G?nter@21348 385 EOT
Hans-G?nter@21348 386 }
Hans-G?nter@21348 387
Hans-G?nter@21348 388 post_install_php_curl()
Hans-G?nter@21348 389 {
Hans-G?nter@21348 390 grep -q ^extension=curl.so "$1/etc/php.ini" ||
Hans-G?nter@21348 391 sed -e 's|extension=msql.so|extension=msql.so\nextension=curl.so|' \
Hans-G?nter@21348 392 -i "$1/etc/php.ini"
Hans-G?nter@21348 393
Hans-G?nter@21348 394 # Start Web server.
Hans-G?nter@21348 395 while read daemon file
Hans-G?nter@21348 396 do
Hans-G?nter@21348 397 [ -z "$1" ] || continue
Hans-G?nter@21348 398 if [ -f "/var/run/$file" ]
Hans-G?nter@21348 399 then
Hans-G?nter@21348 400 /etc/init.d/$daemon stop
Hans-G?nter@21348 401 sleep 2
Hans-G?nter@21348 402 fi
Hans-G?nter@21348 403 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21348 404 then
Hans-G?nter@21348 405 /etc/init.d/$daemon start
Hans-G?nter@21348 406 fi
Hans-G?nter@21348 407 done <<EOT
Hans-G?nter@21348 408 apache apache/httpd.pid
Hans-G?nter@21348 409 lighttpd lighttpd.pid
Hans-G?nter@21348 410 EOT
Hans-G?nter@21348 411 }
Hans-G?nter@21348 412
Hans-G?nter@21348 413 pre_remove_php_curl()
Hans-G?nter@21348 414 {
Hans-G?nter@21348 415 sed -i '/.*=curl.so.*/d' /etc/php.ini
Hans-G?nter@21348 416
Hans-G?nter@21348 417 # Start Web server.
Hans-G?nter@21348 418 while read daemon file
Hans-G?nter@21348 419 do
Hans-G?nter@21348 420 [ -z "$1" ] || continue
Hans-G?nter@21348 421 if [ -f "/var/run/$file" ]
Hans-G?nter@21348 422 then
Hans-G?nter@21348 423 /etc/init.d/$daemon stop
Hans-G?nter@21348 424 sleep 2
Hans-G?nter@21348 425 fi
Hans-G?nter@21348 426 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21348 427 then
Hans-G?nter@21348 428 /etc/init.d/$daemon start
Hans-G?nter@21348 429 fi
Hans-G?nter@21348 430 done <<EOT
Hans-G?nter@21348 431 apache apache/httpd.pid
Hans-G?nter@21348 432 lighttpd lighttpd.pid
Hans-G?nter@21348 433 EOT
Hans-G?nter@21348 434 }
Hans-G?nter@21348 435
Hans-G?nter@21348 436 # -----------------------------------------------------------------------------
Hans-G?nter@21348 437 pre_install_php_dba()
Hans-G?nter@21348 438 {
Hans-G?nter@21348 439 while read daemon file
Hans-G?nter@21348 440 do
Hans-G?nter@21348 441 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21348 442 then
Hans-G?nter@21348 443 /etc/init.d/$daemon stop
Hans-G?nter@21348 444 fi
Hans-G?nter@21348 445 done <<EOT
Hans-G?nter@21348 446 apache apache/httpd.pid
Hans-G?nter@21348 447 lighttpd lighttpd.pid
Hans-G?nter@21348 448 EOT
Hans-G?nter@21348 449 }
Hans-G?nter@21348 450
Hans-G?nter@21348 451 post_install_php_dba()
Hans-G?nter@21348 452 {
Hans-G?nter@21348 453 grep -q ^extension=dba.so "$1/etc/php.ini" ||
Hans-G?nter@21348 454 sed -e 's|extension=msql.so|extension=msql.so\nextension=dba.so|' \
Hans-G?nter@21348 455 -i "$1/etc/php.ini"
Hans-G?nter@21348 456
Hans-G?nter@21348 457 # Start Web server.
Hans-G?nter@21348 458 while read daemon file
Hans-G?nter@21348 459 do
Hans-G?nter@21348 460 [ -z "$1" ] || continue
Hans-G?nter@21348 461 if [ -f "/var/run/$file" ]
Hans-G?nter@21348 462 then
Hans-G?nter@21348 463 /etc/init.d/$daemon stop
Hans-G?nter@21348 464 sleep 2
Hans-G?nter@21348 465 fi
Hans-G?nter@21348 466 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21348 467 then
Hans-G?nter@21348 468 /etc/init.d/$daemon start
Hans-G?nter@21348 469 fi
Hans-G?nter@21348 470 done <<EOT
Hans-G?nter@21348 471 apache apache/httpd.pid
Hans-G?nter@21348 472 lighttpd lighttpd.pid
Hans-G?nter@21348 473 EOT
Hans-G?nter@21348 474 }
Hans-G?nter@21348 475
Hans-G?nter@21348 476 pre_remove_php_dba()
Hans-G?nter@21348 477 {
Hans-G?nter@21348 478 sed -i '/.*=dba.so.*/d' /etc/php.ini
Hans-G?nter@21348 479
Hans-G?nter@21348 480 # Start Web server.
Hans-G?nter@21348 481 while read daemon file
Hans-G?nter@21348 482 do
Hans-G?nter@21348 483 [ -z "$1" ] || continue
Hans-G?nter@21348 484 if [ -f "/var/run/$file" ]
Hans-G?nter@21348 485 then
Hans-G?nter@21348 486 /etc/init.d/$daemon stop
Hans-G?nter@21348 487 sleep 2
Hans-G?nter@21348 488 fi
Hans-G?nter@21348 489 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21348 490 then
Hans-G?nter@21348 491 /etc/init.d/$daemon start
Hans-G?nter@21348 492 fi
Hans-G?nter@21348 493 done <<EOT
Hans-G?nter@21348 494 apache apache/httpd.pid
Hans-G?nter@21348 495 lighttpd lighttpd.pid
Hans-G?nter@21348 496 EOT
Hans-G?nter@21348 497 }
Hans-G?nter@21348 498
Hans-G?nter@21348 499 # -----------------------------------------------------------------------------
Hans-G?nter@21348 500 pre_install_php_gd()
Hans-G?nter@21348 501 {
Hans-G?nter@21348 502 while read daemon file
Hans-G?nter@21348 503 do
Hans-G?nter@21348 504 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21348 505 then
Hans-G?nter@21348 506 /etc/init.d/$daemon stop
Hans-G?nter@21348 507 fi
Hans-G?nter@21348 508 done <<EOT
Hans-G?nter@21348 509 apache apache/httpd.pid
Hans-G?nter@21348 510 lighttpd lighttpd.pid
Hans-G?nter@21348 511 EOT
Hans-G?nter@21348 512 }
Hans-G?nter@21348 513
Hans-G?nter@21348 514 post_install_php_gd()
Hans-G?nter@21348 515 {
Hans-G?nter@21348 516 grep -q ^extension=gd.so "$1/etc/php.ini" ||
Hans-G?nter@21348 517 sed -e 's|extension=msql.so|extension=msql.so\nextension=gd.so|' \
Hans-G?nter@21348 518 -i "$1/etc/php.ini"
Hans-G?nter@21348 519
Hans-G?nter@21348 520 # Start Web server.
Hans-G?nter@21348 521 while read daemon file
Hans-G?nter@21348 522 do
Hans-G?nter@21348 523 [ -z "$1" ] || continue
Hans-G?nter@21348 524 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21348 525 then
Hans-G?nter@21348 526 /etc/init.d/$daemon stop
Hans-G?nter@21348 527 sleep 2
Hans-G?nter@21348 528 fi
Hans-G?nter@21348 529 if [ -z "$1" -a -f /etc/init.d/$daemon ]
Hans-G?nter@21348 530 then
Hans-G?nter@21348 531 /etc/init.d/$daemon start
Hans-G?nter@21348 532 fi
Hans-G?nter@21348 533 done <<EOT
Hans-G?nter@21348 534 apache apache/httpd.pid
Hans-G?nter@21348 535 lighttpd lighttpd.pid
Hans-G?nter@21348 536 EOT
Hans-G?nter@21348 537 }
Hans-G?nter@21348 538
Hans-G?nter@21348 539 pre_remove_php_gd()
Hans-G?nter@21348 540 {
Hans-G?nter@21348 541 sed -i '/.*=gd.so.*/d' "$1/etc/php.ini"
Hans-G?nter@21348 542
Hans-G?nter@21348 543 # Start Web server.
Hans-G?nter@21348 544 while read daemon file
Hans-G?nter@21348 545 do
Hans-G?nter@21348 546 if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]
Hans-G?nter@21348 547 then
Hans-G?nter@21348 548 [ -z "$1" ] || continue
Hans-G?nter@21348 549 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21348 550 then
Hans-G?nter@21348 551 /etc/init.d/$daemon stop
Hans-G?nter@21348 552 sleep 2
Hans-G?nter@21348 553 fi
Hans-G?nter@21348 554 if [ -z "$1" -a -f /etc/init.d/$daemon ]
Hans-G?nter@21348 555 then
Hans-G?nter@21348 556 /etc/init.d/$daemon start
Hans-G?nter@21348 557 fi
Hans-G?nter@21348 558 fi
Hans-G?nter@21348 559 done <<EOT
Hans-G?nter@21348 560 apache apache/httpd.pid
Hans-G?nter@21348 561 lighttpd lighttpd.pid
Hans-G?nter@21348 562 EOT
Hans-G?nter@21348 563 }
Hans-G?nter@21348 564
Hans-G?nter@21348 565 # -----------------------------------------------------------------------------
Hans-G?nter@21348 566 pre_install_php_imap()
Hans-G?nter@21348 567 {
pascal@20051 568 while read daemon file; do
Hans-G?nter@21402 569 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 570 then
pascal@20051 571 /etc/init.d/$daemon stop
pascal@20051 572 fi
pascal@20051 573 done <<EOT
al@20534 574 apache apache/httpd.pid
pascal@20051 575 lighttpd lighttpd.pid
pascal@20051 576 EOT
pascal@20051 577 }
pascal@20051 578
Hans-G?nter@21348 579 post_install_php_imap()
Hans-G?nter@21348 580 {
al@20534 581 grep -q ^extension=imap.so "$1/etc/php.ini" ||
al@20534 582 sed -e 's|extension=msql.so|extension=msql.so\nextension=imap.so|' -i "$1/etc/php.ini"
al@20534 583
pascal@20051 584 # Start Web server.
Hans-G?nter@21402 585 while read daemon file
Hans-G?nter@21402 586 do
pascal@20051 587 [ -z "$1" ] || continue
Hans-G?nter@21402 588 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 589 then
pascal@20051 590 /etc/init.d/$daemon stop
pascal@20051 591 sleep 2
pascal@20051 592 fi
Hans-G?nter@21402 593 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 594 then
pascal@20051 595 /etc/init.d/$daemon start
pascal@20051 596 fi
Hans-G?nter@21402 597 done <<EOT
al@20534 598 apache apache/httpd.pid
pascal@20051 599 lighttpd lighttpd.pid
pascal@20051 600 EOT
pascal@20051 601 }
pascal@20051 602
Hans-G?nter@21348 603 pre_remove_php_imap()
Hans-G?nter@21348 604 {
pascal@20051 605 sed -i '/.*=imap.so.*/d' /etc/php.ini
pascal@20051 606
pascal@20051 607 # Start Web server.
Hans-G?nter@21402 608 while read daemon file
Hans-G?nter@21402 609 do
pascal@20051 610 [ -z "$1" ] || continue
Hans-G?nter@21402 611 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 612 then
pascal@20051 613 /etc/init.d/$daemon stop
pascal@20051 614 sleep 2
pascal@20051 615 fi
Hans-G?nter@21402 616 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 617 then
pascal@20051 618 /etc/init.d/$daemon start
pascal@20051 619 fi
Hans-G?nter@21402 620 done <<EOT
al@20534 621 apache apache/httpd.pid
pascal@20051 622 lighttpd lighttpd.pid
pascal@20051 623 EOT
pascal@20051 624 }
pascal@20051 625
al@20534 626 # -----------------------------------------------------------------------------
Hans-G?nter@21348 627 pre_install_php_ldap()
Hans-G?nter@21348 628 {
Hans-G?nter@21402 629 while read daemon file
Hans-G?nter@21402 630 do
Hans-G?nter@21402 631 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 632 then
pascal@20051 633 /etc/init.d/$daemon stop
pascal@20051 634 fi
Hans-G?nter@21402 635 done <<EOT
al@20534 636 apache apache/httpd.pid
pascal@20051 637 lighttpd lighttpd.pid
pascal@20051 638 EOT
pascal@20051 639 }
pascal@20051 640
Hans-G?nter@21348 641 post_install_php_ldap()
Hans-G?nter@21348 642 {
al@20534 643 grep -q ^extension=ldap.so "$1/etc/php.ini" ||
al@20534 644 sed -e 's|extension=msql.so|extension=msql.so\nextension=ldap.so|' -i "$1/etc/php.ini"
al@20534 645
pascal@20051 646 # Start Web server.
Hans-G?nter@21402 647 while read daemon file
Hans-G?nter@21402 648 do
pascal@20051 649 [ -z "$1" ] || continue
Hans-G?nter@21402 650 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 651 then
pascal@20051 652 /etc/init.d/$daemon stop
pascal@20051 653 sleep 2
pascal@20051 654 fi
Hans-G?nter@21402 655 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 656 then
pascal@20051 657 /etc/init.d/$daemon start
pascal@20051 658 fi
Hans-G?nter@21402 659 done <<EOT
al@20534 660 apache apache/httpd.pid
pascal@20051 661 lighttpd lighttpd.pid
pascal@20051 662 EOT
pascal@20051 663 }
pascal@20051 664
Hans-G?nter@21348 665 pre_remove_php_ldap()
Hans-G?nter@21348 666 {
pascal@20051 667 sed -i '/.*=ldap.so.*/d' /etc/php.ini
pascal@20051 668
pascal@20051 669 # Start Web server.
Hans-G?nter@21402 670 while read daemon file
Hans-G?nter@21402 671 do
pascal@20051 672 [ -z "$1" ] || continue
Hans-G?nter@21402 673 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 674 then
pascal@20051 675 /etc/init.d/$daemon stop
pascal@20051 676 sleep 2
pascal@20051 677 fi
Hans-G?nter@21402 678 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 679 then
pascal@20051 680 /etc/init.d/$daemon start
pascal@20051 681 fi
Hans-G?nter@21402 682 done <<EOT
al@20534 683 apache apache/httpd.pid
pascal@20051 684 lighttpd lighttpd.pid
pascal@20051 685 EOT
pascal@20051 686 }
pascal@20051 687
al@20534 688 # -----------------------------------------------------------------------------
Hans-G?nter@21348 689 pre_install_php_mcrypt()
Hans-G?nter@21348 690 {
Hans-G?nter@21402 691 while read daemon file
Hans-G?nter@21402 692 do
Hans-G?nter@21402 693 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 694 then
pascal@20051 695 /etc/init.d/$daemon stop
pascal@20051 696 fi
Hans-G?nter@21402 697 done <<EOT
al@20534 698 apache apache/httpd.pid
pascal@20051 699 lighttpd lighttpd.pid
pascal@20051 700 EOT
pascal@20051 701 }
pascal@20051 702
Hans-G?nter@21348 703 post_install_php_mcrypt()
Hans-G?nter@21348 704 {
al@20534 705 grep -q ^extension=mcrypt.so "$1/etc/php.ini" ||
Hans-G?nter@21402 706 sed -e 's|extension=msql.so|extension=msql.so\nextension=mcrypt.so|' \
Hans-G?nter@21402 707 -i "$1/etc/php.ini"
al@20534 708
pascal@20051 709 # Start Web server.
Hans-G?nter@21402 710 while read daemon file
Hans-G?nter@21402 711 do
pascal@20051 712 [ -z "$1" ] || continue
Hans-G?nter@21402 713 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 714 then
pascal@20051 715 /etc/init.d/$daemon stop
pascal@20051 716 sleep 2
pascal@20051 717 fi
Hans-G?nter@21402 718 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 719 then
pascal@20051 720 /etc/init.d/$daemon start
pascal@20051 721 fi
Hans-G?nter@21402 722 done <<EOT
al@20534 723 apache apache/httpd.pid
pascal@20051 724 lighttpd lighttpd.pid
pascal@20051 725 EOT
pascal@20051 726 }
pascal@20051 727
Hans-G?nter@21348 728 pre_remove_php_mcrypt()
Hans-G?nter@21348 729 {
pascal@20051 730 sed -i '/.*=mcrypt.so.*/d' /etc/php.ini
pascal@20051 731
pascal@20051 732 # Start Web server.
Hans-G?nter@21402 733 while read daemon file
Hans-G?nter@21402 734 do
pascal@20051 735 [ -z "$1" ] || continue
Hans-G?nter@21402 736 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 737 then
pascal@20051 738 /etc/init.d/$daemon stop
pascal@20051 739 sleep 2
pascal@20051 740 fi
Hans-G?nter@21402 741 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 742 then
pascal@20051 743 /etc/init.d/$daemon start
pascal@20051 744 fi
Hans-G?nter@21402 745 done <<EOT
al@20534 746 apache apache/httpd.pid
pascal@20051 747 lighttpd lighttpd.pid
pascal@20051 748 EOT
pascal@20051 749 }
pascal@20051 750
al@20534 751 # -----------------------------------------------------------------------------
Hans-G?nter@21348 752 pre_install_php_mysqli()
Hans-G?nter@21348 753 {
Hans-G?nter@21402 754 while read daemon file
Hans-G?nter@21402 755 do
Hans-G?nter@21402 756 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 757 then
pascal@20051 758 /etc/init.d/$daemon stop
pascal@20051 759 fi
Hans-G?nter@21402 760 done <<EOT
al@20534 761 apache apache/httpd.pid
pascal@20051 762 lighttpd lighttpd.pid
pascal@20051 763 EOT
pascal@20051 764 }
pascal@20051 765
Hans-G?nter@21348 766 post_install_php_mysqli()
Hans-G?nter@21348 767 {
al@20534 768 grep -q ^extension=mysqli.so "$1/etc/php.ini" ||
Hans-G?nter@21402 769 sed -e 's|extension=msql.so|extension=msql.so\nextension=mysqli.so|' \
Hans-G?nter@21402 770 -i "$1/etc/php.ini"
al@20534 771
pascal@20051 772 # Start Web server.
Hans-G?nter@21402 773 while read daemon file
Hans-G?nter@21402 774 do
pascal@20051 775 [ -z "$1" ] || continue
Hans-G?nter@21402 776 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 777 then
pascal@20051 778 /etc/init.d/$daemon stop
pascal@20051 779 sleep 2
pascal@20051 780 fi
Hans-G?nter@21402 781 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 782 then
pascal@20051 783 /etc/init.d/$daemon start
pascal@20051 784 fi
Hans-G?nter@21402 785 done <<EOT
al@20534 786 apache apache/httpd.pid
pascal@20051 787 lighttpd lighttpd.pid
pascal@20051 788 EOT
pascal@20051 789 }
pascal@20051 790
Hans-G?nter@21348 791 pre_remove_php_mysqli()
Hans-G?nter@21348 792 {
pascal@20051 793 sed -i '/.*=mysqli.so.*/d' /etc/php.ini
pascal@20051 794
pascal@20051 795 # Start Web server.
Hans-G?nter@21402 796 while read daemon file
Hans-G?nter@21402 797 do
pascal@20051 798 [ -z "$1" ] || continue
Hans-G?nter@21402 799 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 800 then
pascal@20051 801 /etc/init.d/$daemon stop
pascal@20051 802 sleep 2
pascal@20051 803 fi
Hans-G?nter@21402 804 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 805 then
pascal@20051 806 /etc/init.d/$daemon start
pascal@20051 807 fi
Hans-G?nter@21402 808 done <<EOT
al@20534 809 apache apache/httpd.pid
pascal@20051 810 lighttpd lighttpd.pid
pascal@20051 811 EOT
pascal@20051 812 }
pascal@20051 813
al@20534 814 # -----------------------------------------------------------------------------
Hans-G?nter@21348 815 pre_install_php_mysql()
Hans-G?nter@21348 816 {
Hans-G?nter@21402 817 while read daemon file
Hans-G?nter@21402 818 do
Hans-G?nter@21402 819 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 820 then
pascal@20051 821 /etc/init.d/$daemon stop
pascal@20051 822 fi
Hans-G?nter@21402 823 done <<EOT
al@20534 824 apache apache/httpd.pid
pascal@20051 825 lighttpd lighttpd.pid
pascal@20051 826 EOT
pascal@20051 827 }
pascal@20051 828
Hans-G?nter@21348 829 post_install_php_mysql()
Hans-G?nter@21348 830 {
al@20534 831 grep -q ^extension=mysql.so "$1/etc/php.ini" ||
Hans-G?nter@21402 832 sed -e 's|extension=msql.so|extension=msql.so\nextension=mysql.so|' \
Hans-G?nter@21402 833 -i "$1/etc/php.ini"
al@20534 834
pascal@20051 835 # Start Web server.
Hans-G?nter@21402 836 while read daemon file
Hans-G?nter@21402 837 do
pascal@20051 838 [ -z "$1" ] || continue
Hans-G?nter@21402 839 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 840 then
pascal@20051 841 /etc/init.d/$daemon stop
pascal@20051 842 sleep 2
pascal@20051 843 fi
Hans-G?nter@21402 844 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 845 then
pascal@20051 846 /etc/init.d/$daemon start
pascal@20051 847 fi
Hans-G?nter@21402 848 done <<EOT
al@20534 849 apache apache/httpd.pid
pascal@20051 850 lighttpd lighttpd.pid
pascal@20051 851 EOT
pascal@20051 852 }
pascal@20051 853
Hans-G?nter@21348 854 pre_remove_php_mysql()
Hans-G?nter@21348 855 {
pascal@20051 856 sed -i '/.*=mysql.so.*/d' /etc/php.ini
pascal@20051 857
pascal@20051 858 # Start Web server.
Hans-G?nter@21402 859 while read daemon file
Hans-G?nter@21402 860 do
pascal@20051 861 [ -z "$1" ] || continue
Hans-G?nter@21402 862 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 863 then
pascal@20051 864 /etc/init.d/$daemon stop
pascal@20051 865 sleep 2
pascal@20051 866 fi
Hans-G?nter@21402 867 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 868 then
pascal@20051 869 /etc/init.d/$daemon start
pascal@20051 870 fi
Hans-G?nter@21402 871 done <<EOT
al@20534 872 apache apache/httpd.pid
pascal@20051 873 lighttpd lighttpd.pid
pascal@20051 874 EOT
pascal@20051 875 }
pascal@20051 876
al@20534 877 # -----------------------------------------------------------------------------
Hans-G?nter@21348 878 pre_install_php_odbc()
Hans-G?nter@21348 879 {
Hans-G?nter@21402 880 while read daemon file
Hans-G?nter@21402 881 do
Hans-G?nter@21402 882 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 883 then
pascal@20051 884 /etc/init.d/$daemon stop
pascal@20051 885 fi
Hans-G?nter@21402 886 done <<EOT
al@20534 887 apache apache/httpd.pid
pascal@20051 888 lighttpd lighttpd.pid
pascal@20051 889 EOT
pascal@20051 890 }
pascal@20051 891
Hans-G?nter@21348 892 post_install_php_odbc()
Hans-G?nter@21348 893 {
al@20534 894 grep -q ^extension=odbc.so "$1/etc/php.ini" ||
Hans-G?nter@21402 895 sed -e 's|extension=msql.so|extension=msql.so\nextension=odbc.so|' \
Hans-G?nter@21402 896 -i "$1/etc/php.ini"
al@20534 897
pascal@20051 898 # Start Web server.
Hans-G?nter@21402 899 while read daemon file
Hans-G?nter@21402 900 do
pascal@20051 901 [ -z "$1" ] || continue
Hans-G?nter@21402 902 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 903 then
pascal@20051 904 /etc/init.d/$daemon stop
pascal@20051 905 sleep 2
pascal@20051 906 fi
Hans-G?nter@21402 907 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 908 then
pascal@20051 909 /etc/init.d/$daemon start
pascal@20051 910 fi
Hans-G?nter@21402 911 done <<EOT
al@20534 912 apache apache/httpd.pid
pascal@20051 913 lighttpd lighttpd.pid
pascal@20051 914 EOT
pascal@20051 915 }
pascal@20051 916
Hans-G?nter@21348 917 pre_remove_php_odbc()
Hans-G?nter@21348 918 {
pascal@20051 919 sed -i '/.*=odbc.so.*/d' /etc/php.ini
pascal@20051 920
pascal@20051 921 # Start Web server.
Hans-G?nter@21402 922 while read daemon file
Hans-G?nter@21402 923 do
pascal@20051 924 [ -z "$1" ] || continue
Hans-G?nter@21402 925 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 926 then
pascal@20051 927 /etc/init.d/$daemon stop
pascal@20051 928 sleep 2
pascal@20051 929 fi
Hans-G?nter@21402 930 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 931 then
pascal@20051 932 /etc/init.d/$daemon start
pascal@20051 933 fi
Hans-G?nter@21402 934 done <<EOT
al@20534 935 apache apache/httpd.pid
pascal@20051 936 lighttpd lighttpd.pid
pascal@20051 937 EOT
pascal@20051 938 }
pascal@20051 939
al@20534 940 # -----------------------------------------------------------------------------
Hans-G?nter@21348 941 pre_install_php_openssl()
Hans-G?nter@21348 942 {
Hans-G?nter@21402 943 while read daemon file
Hans-G?nter@21402 944 do
Hans-G?nter@21402 945 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 946 then
pascal@20051 947 /etc/init.d/$daemon stop
pascal@20051 948 fi
Hans-G?nter@21402 949 done <<EOT
al@20534 950 apache apache/httpd.pid
pascal@20051 951 lighttpd lighttpd.pid
pascal@20051 952 EOT
pascal@20051 953 }
pascal@20051 954
Hans-G?nter@21348 955 post_install_php_openssl()
Hans-G?nter@21348 956 {
al@20534 957 grep -q ^extension=openssl.so "$1/etc/php.ini" ||
Hans-G?nter@21402 958 sed -e 's|extension=msql.so|extension=msql.so\nextension=openssl.so|' \
Hans-G?nter@21402 959 -i "$1/etc/php.ini"
al@20534 960
pascal@20051 961 # Start Web server.
Hans-G?nter@21402 962 while read daemon file
Hans-G?nter@21402 963 do
pascal@20051 964 [ -z "$1" ] || continue
Hans-G?nter@21402 965 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 966 then
pascal@20051 967 /etc/init.d/$daemon stop
pascal@20051 968 sleep 2
pascal@20051 969 fi
Hans-G?nter@21402 970 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 971 then
pascal@20051 972 /etc/init.d/$daemon start
pascal@20051 973 fi
Hans-G?nter@21402 974 done <<EOT
al@20534 975 apache apache/httpd.pid
pascal@20051 976 lighttpd lighttpd.pid
pascal@20051 977 EOT
pascal@20051 978 }
pascal@20051 979
Hans-G?nter@21348 980 pre_remove_php_openssl()
Hans-G?nter@21348 981 {
pascal@20051 982 sed -i '/.*=openssl.so.*/d' /etc/php.ini
pascal@20051 983
pascal@20051 984 # Start Web server.
Hans-G?nter@21402 985 while read daemon file
Hans-G?nter@21402 986 do
pascal@20051 987 [ -z "$1" ] || continue
Hans-G?nter@21402 988 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 989 then
pascal@20051 990 /etc/init.d/$daemon stop
pascal@20051 991 sleep 2
pascal@20051 992 fi
Hans-G?nter@21402 993 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 994 then
pascal@20051 995 /etc/init.d/$daemon start
pascal@20051 996 fi
Hans-G?nter@21402 997 done <<EOT
al@20534 998 apache apache/httpd.pid
pascal@20051 999 lighttpd lighttpd.pid
pascal@20051 1000 EOT
pascal@20051 1001 }
pascal@20051 1002
al@20534 1003 # -----------------------------------------------------------------------------
Hans-G?nter@21402 1004 pre_install_pdo_mysql()
Hans-G?nter@21402 1005 {
Hans-G?nter@21402 1006 while read daemon file
Hans-G?nter@21402 1007 do
Hans-G?nter@21402 1008 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 1009 then
pascal@20051 1010 /etc/init.d/$daemon stop
pascal@20051 1011 fi
Hans-G?nter@21402 1012 done <<EOT
al@20534 1013 apache apache/httpd.pid
pascal@20051 1014 lighttpd lighttpd.pid
pascal@20051 1015 EOT
pascal@20051 1016 }
pascal@20051 1017
Hans-G?nter@21348 1018 post_install_pdo_mysql()
Hans-G?nter@21348 1019 {
al@20534 1020 grep -q ^extension=pdo_mysql.so "$1/etc/php.ini" ||
Hans-G?nter@21402 1021 sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_mysql.so|' \
Hans-G?nter@21402 1022 -i "$1/etc/php.ini"
al@20534 1023
pascal@20051 1024 # Start Web server.
Hans-G?nter@21402 1025 while read daemon file
Hans-G?nter@21402 1026 do
pascal@20051 1027 [ -z "$1" ] || continue
Hans-G?nter@21402 1028 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 1029 then
pascal@20051 1030 /etc/init.d/$daemon stop
pascal@20051 1031 sleep 2
pascal@20051 1032 fi
Hans-G?nter@21402 1033 if [ -z "$1" -a -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1034 then
pascal@20051 1035 /etc/init.d/$daemon start
pascal@20051 1036 fi
Hans-G?nter@21402 1037 done <<EOT
al@20534 1038 apache apache/httpd.pid
pascal@20051 1039 lighttpd lighttpd.pid
pascal@20051 1040 EOT
pascal@20051 1041 }
pascal@20051 1042
Hans-G?nter@21348 1043 pre_remove_pdo_mysql()
Hans-G?nter@21348 1044 {
pascal@20051 1045 sed -i '/.*=pdo_mysql.so.*/d' /etc/php.ini
pascal@20051 1046
pascal@20051 1047 # Start Web server.
Hans-G?nter@21402 1048 while read daemon file
Hans-G?nter@21402 1049 do
pascal@20051 1050 [ -z "$1" ] || continue
Hans-G?nter@21402 1051 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 1052 then
pascal@20051 1053 /etc/init.d/$daemon stop
pascal@20051 1054 sleep 2
pascal@20051 1055 fi
Hans-G?nter@21402 1056 if [ -z "$1" -a -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1057 then
pascal@20051 1058 /etc/init.d/$daemon start
pascal@20051 1059 fi
Hans-G?nter@21402 1060 done <<EOT
al@20534 1061 apache apache/httpd.pid
pascal@20051 1062 lighttpd lighttpd.pid
pascal@20051 1063 EOT
pascal@20051 1064 }
pascal@20051 1065
al@20534 1066 # -----------------------------------------------------------------------------
Hans-G?nter@21348 1067 pre_install_pdo_pgsql()
Hans-G?nter@21348 1068 {
Hans-G?nter@21402 1069 while read daemon file
Hans-G?nter@21402 1070 do
Hans-G?nter@21402 1071 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 1072 then
pascal@20051 1073 /etc/init.d/$daemon stop
pascal@20051 1074 fi
Hans-G?nter@21402 1075 done <<EOT
al@20534 1076 apache apache/httpd.pid
pascal@20051 1077 lighttpd lighttpd.pid
pascal@20051 1078 EOT
pascal@20051 1079 }
pascal@20051 1080
Hans-G?nter@21348 1081 post_install_pdo_pgsql()
Hans-G?nter@21348 1082 {
al@20534 1083 grep -q ^extension=pdo_pgsql.so "$1/etc/php.ini" ||
Hans-G?nter@21402 1084 sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_pgsql.so|' \
Hans-G?nter@21402 1085 -i "$1/etc/php.ini"
al@20534 1086
pascal@20051 1087 # Start Web server.
Hans-G?nter@21402 1088 while read daemon file
Hans-G?nter@21402 1089 do
pascal@20051 1090 [ -z "$1" ] || continue
Hans-G?nter@21402 1091 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 1092 then
pascal@20051 1093 /etc/init.d/$daemon stop
pascal@20051 1094 sleep 2
pascal@20051 1095 fi
Hans-G?nter@21402 1096 if [ -z "$1" -a -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1097 then
pascal@20051 1098 /etc/init.d/$daemon start
pascal@20051 1099 fi
Hans-G?nter@21402 1100 done <<EOT
al@20534 1101 apache apache/httpd.pid
pascal@20051 1102 lighttpd lighttpd.pid
pascal@20051 1103 EOT
pascal@20051 1104 }
pascal@20051 1105
Hans-G?nter@21348 1106 pre_remove_pdo_pgsql()
Hans-G?nter@21348 1107 {
pascal@20051 1108 sed -i '/.*=pdo_pgsql.so.*/d' /etc/php.ini
pascal@20051 1109
pascal@20051 1110 # Start Web server.
Hans-G?nter@21402 1111 while read daemon file
Hans-G?nter@21402 1112 do
pascal@20051 1113 [ -z "$1" ] || continue
Hans-G?nter@21402 1114 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 1115 then
pascal@20051 1116 /etc/init.d/$daemon stop
pascal@20051 1117 sleep 2
pascal@20051 1118 fi
Hans-G?nter@21402 1119 if [ -z "$1" -a -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1120 then
pascal@20051 1121 /etc/init.d/$daemon start
pascal@20051 1122 fi
Hans-G?nter@21402 1123 done <<EOT
al@20534 1124 apache apache/httpd.pid
pascal@20051 1125 lighttpd lighttpd.pid
pascal@20051 1126 EOT
pascal@20051 1127 }
pascal@20051 1128
al@20534 1129 # -----------------------------------------------------------------------------
Hans-G?nter@21348 1130 pre_install_php_pear()
Hans-G?nter@21348 1131 {
Hans-G?nter@21402 1132 while read daemon file
Hans-G?nter@21402 1133 do
Hans-G?nter@21402 1134 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 1135 then
pascal@20051 1136 /etc/init.d/$daemon stop
pascal@20051 1137 fi
Hans-G?nter@21402 1138 done <<EOT
al@20534 1139 apache apache/httpd.pid
pascal@20051 1140 lighttpd lighttpd.pid
pascal@20051 1141 EOT
pascal@20051 1142 }
pascal@20051 1143
Hans-G?nter@21348 1144 post_install_php_pear()
Hans-G?nter@21348 1145 {
pascal@20051 1146 grep ^include_path "$1/etc/php.ini"
Hans-G?nter@21402 1147 sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' \
Hans-G?nter@21402 1148 "$1/etc/php.ini"
pascal@20051 1149 # Restart Web server.
Hans-G?nter@21402 1150 while read daemon file
Hans-G?nter@21402 1151 do
pascal@20051 1152 [ -z "$1" ] || continue
Hans-G?nter@21402 1153 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 1154 then
pascal@20051 1155 /etc/init.d/$daemon stop
pascal@20051 1156 sleep 2
pascal@20051 1157 fi
Hans-G?nter@21402 1158 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1159 then
pascal@20051 1160 /etc/init.d/$daemon start
pascal@20051 1161 fi
Hans-G?nter@21402 1162 done <<EOT
al@20534 1163 apache apache/httpd.pid
pascal@20051 1164 lighttpd lighttpd.pid
pascal@20051 1165 EOT
pascal@20051 1166 }
pascal@20051 1167
al@20534 1168 # -----------------------------------------------------------------------------
Hans-G?nter@21348 1169 pre_install_php_pgsql()
Hans-G?nter@21348 1170 {
Hans-G?nter@21402 1171 while read daemon file
Hans-G?nter@21402 1172 do
Hans-G?nter@21402 1173 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 1174 then
pascal@20051 1175 /etc/init.d/$daemon stop
pascal@20051 1176 fi
Hans-G?nter@21402 1177 done <<EOT
al@20534 1178 apache apache/httpd.pid
pascal@20051 1179 lighttpd lighttpd.pid
pascal@20051 1180 EOT
pascal@20051 1181 }
pascal@20051 1182
Hans-G?nter@21348 1183 post_install_php_pgsql()
Hans-G?nter@21348 1184 {
al@20534 1185 grep -q ^extension=pgsql.so "$1/etc/php.ini" ||
Hans-G?nter@21402 1186 sed -e 's|extension=msql.so|extension=msql.so\nextension=pgsql.so|' \
Hans-G?nter@21402 1187 -i "$1/etc/php.ini"
al@20534 1188
pascal@20051 1189 # Start Web server.
Hans-G?nter@21402 1190 while read daemon file
Hans-G?nter@21402 1191 do
pascal@20051 1192 [ -z "$1" ] || continue
Hans-G?nter@21402 1193 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 1194 then
pascal@20051 1195 /etc/init.d/$daemon stop
pascal@20051 1196 sleep 2
pascal@20051 1197 fi
Hans-G?nter@21402 1198 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1199 then
pascal@20051 1200 /etc/init.d/$daemon start
pascal@20051 1201 fi
Hans-G?nter@21402 1202 done <<EOT
al@20534 1203 apache apache/httpd.pid
pascal@20051 1204 lighttpd lighttpd.pid
pascal@20051 1205 EOT
pascal@20051 1206 }
pascal@20051 1207
Hans-G?nter@21348 1208 pre_remove_php_pgsql()
Hans-G?nter@21348 1209 {
pascal@20051 1210 sed -i '/.*=pgsql.so.*/d' /etc/php.ini
pascal@20051 1211
pascal@20051 1212 # Start Web server.
Hans-G?nter@21402 1213 while read daemon file
Hans-G?nter@21402 1214 do
pascal@20051 1215 [ -z "$1" ] || continue
Hans-G?nter@21402 1216 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 1217 then
pascal@20051 1218 /etc/init.d/$daemon stop
pascal@20051 1219 sleep 2
pascal@20051 1220 fi
Hans-G?nter@21402 1221 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1222 then
pascal@20051 1223 /etc/init.d/$daemon start
pascal@20051 1224 fi
Hans-G?nter@21402 1225 done <<EOT
al@20534 1226 apache apache/httpd.pid
pascal@20051 1227 lighttpd lighttpd.pid
pascal@20051 1228 EOT
pascal@20051 1229 }
pascal@20051 1230
al@20534 1231 # -----------------------------------------------------------------------------
Hans-G?nter@21348 1232 pre_install_php_snmp()
Hans-G?nter@21348 1233 {
Hans-G?nter@21402 1234 while read daemon file
Hans-G?nter@21402 1235 do
Hans-G?nter@21402 1236 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 1237 then
pascal@20051 1238 /etc/init.d/$daemon stop
pascal@20051 1239 fi
Hans-G?nter@21402 1240 done <<EOT
al@20534 1241 apache apache/httpd.pid
pascal@20051 1242 lighttpd lighttpd.pid
pascal@20051 1243 EOT
pascal@20051 1244 }
pascal@20051 1245
Hans-G?nter@21348 1246 post_install_php_snmp()
Hans-G?nter@21348 1247 {
al@20534 1248 grep -q ^extension=snmp.so "$1/etc/php.ini" ||
Hans-G?nter@21402 1249 sed -e 's|extension=msql.so|extension=msql.so\nextension=snmp.so|' \
Hans-G?nter@21402 1250 -i "$1/etc/php.ini"
al@20534 1251
pascal@20051 1252 # Start Web server.
Hans-G?nter@21402 1253 while read daemon file
Hans-G?nter@21402 1254 do
pascal@20051 1255 [ -z "$1" ] || continue
Hans-G?nter@21402 1256 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 1257 then
pascal@20051 1258 /etc/init.d/$daemon stop
pascal@20051 1259 sleep 2
pascal@20051 1260 fi
Hans-G?nter@21402 1261 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1262 then
pascal@20051 1263 /etc/init.d/$daemon start
pascal@20051 1264 fi
Hans-G?nter@21402 1265 done <<EOT
al@20534 1266 apache apache/httpd.pid
pascal@20051 1267 lighttpd lighttpd.pid
pascal@20051 1268 EOT
pascal@20051 1269 }
pascal@20051 1270
Hans-G?nter@21348 1271 pre_remove_php_snmp()
Hans-G?nter@21348 1272 {
pascal@20051 1273 sed -i '/.*=snmp.so.*/d' /etc/php.ini
pascal@20051 1274
pascal@20051 1275 # Start Web server.
Hans-G?nter@21402 1276 while read daemon file
Hans-G?nter@21402 1277 do
pascal@20051 1278 [ -z "$1" ] || continue
Hans-G?nter@21402 1279 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 1280 then
pascal@20051 1281 /etc/init.d/$daemon stop
pascal@20051 1282 sleep 2
pascal@20051 1283 fi
Hans-G?nter@21402 1284 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1285 then
pascal@20051 1286 /etc/init.d/$daemon start
pascal@20051 1287 fi
Hans-G?nter@21402 1288 done <<EOT
al@20534 1289 apache apache/httpd.pid
pascal@20051 1290 lighttpd lighttpd.pid
pascal@20051 1291 EOT
pascal@20051 1292 }
pascal@20051 1293
al@20534 1294 # -----------------------------------------------------------------------------
Hans-G?nter@21348 1295 pre_install_php_soap()
Hans-G?nter@21348 1296 {
Hans-G?nter@21402 1297 while read daemon file
Hans-G?nter@21402 1298 do
Hans-G?nter@21402 1299 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@21402 1300 then
pascal@20051 1301 /etc/init.d/$daemon stop
pascal@20051 1302 fi
Hans-G?nter@21402 1303 done <<EOT
al@20534 1304 apache apache/httpd.pid
pascal@20051 1305 lighttpd lighttpd.pid
pascal@20051 1306 EOT
pascal@20051 1307 }
pascal@20051 1308
Hans-G?nter@21348 1309 post_install_php_soap()
Hans-G?nter@21348 1310 {
al@20534 1311 grep -q ^extension=soap.so "$1/etc/php.ini" ||
Hans-G?nter@21402 1312 sed -e 's|extension=msql.so|extension=msql.so\nextension=soap.so|' \
Hans-G?nter@21402 1313 -i "$1/etc/php.ini"
al@20534 1314
pascal@20051 1315 # Start Web server.
Hans-G?nter@21402 1316 while read daemon file
Hans-G?nter@21402 1317 do
pascal@20051 1318 [ -z "$1" ] || continue
Hans-G?nter@21402 1319 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 1320 then
pascal@20051 1321 /etc/init.d/$daemon stop
pascal@20051 1322 sleep 2
pascal@20051 1323 fi
Hans-G?nter@21402 1324 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1325 then
pascal@20051 1326 /etc/init.d/$daemon start
pascal@20051 1327 fi
Hans-G?nter@21402 1328 done <<EOT
al@20534 1329 apache apache/httpd.pid
pascal@20051 1330 lighttpd lighttpd.pid
pascal@20051 1331 EOT
pascal@20051 1332 }
pascal@20051 1333
Hans-G?nter@21348 1334 pre_remove_php_soap()
Hans-G?nter@21348 1335 {
pascal@20051 1336 sed -i '/.*=soap.so.*/d' /etc/php.ini
pascal@20051 1337
pascal@20051 1338 # Start Web server.
Hans-G?nter@21402 1339 while read daemon file
Hans-G?nter@21402 1340 do
pascal@20051 1341 [ -z "$1" ] || continue
Hans-G?nter@21402 1342 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 1343 then
pascal@20051 1344 /etc/init.d/$daemon stop
pascal@20051 1345 sleep 2
pascal@20051 1346 fi
Hans-G?nter@21402 1347 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1348 then
pascal@20051 1349 /etc/init.d/$daemon start
pascal@20051 1350 fi
Hans-G?nter@21402 1351 done <<EOT
al@20534 1352 apache apache/httpd.pid
pascal@20051 1353 lighttpd lighttpd.pid
pascal@20051 1354 EOT
pascal@20051 1355 }
pascal@20051 1356
al@20534 1357 # -----------------------------------------------------------------------------
Hans-G?nter@21348 1358 post_install_php_sqlite()
Hans-G?nter@21348 1359 {
al@20534 1360 grep -q ^extension=sqlite3.so "$1/etc/php.ini" ||
Hans-G?nter@21402 1361 sed -e 's|extension=msql.so|extension=msql.so\nextension=sqlite3.so|' \
Hans-G?nter@21402 1362 -i "$1/etc/php.ini"
al@20534 1363
pascal@20051 1364 # Start Web server.
Hans-G?nter@21402 1365 while read daemon file
Hans-G?nter@21402 1366 do
pascal@20051 1367 [ -z "$1" ] || continue
Hans-G?nter@21402 1368 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 1369 then
pascal@20051 1370 /etc/init.d/$daemon stop
pascal@20051 1371 sleep 2
pascal@20051 1372 fi
Hans-G?nter@21402 1373 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1374 then
pascal@20051 1375 /etc/init.d/$daemon start
pascal@20051 1376 fi
Hans-G?nter@21402 1377 done <<EOT
al@20534 1378 apache apache/httpd.pid
pascal@20051 1379 lighttpd lighttpd.pid
pascal@20051 1380 EOT
pascal@20051 1381 }
pascal@20051 1382
Hans-G?nter@21348 1383 pre_remove_php_sqlite()
Hans-G?nter@21348 1384 {
pascal@20051 1385 sed -i '/.*=sqlite3.so.*/d' /etc/php.ini
pascal@20051 1386
pascal@20051 1387 # Start Web server.
Hans-G?nter@21402 1388 while read daemon file
Hans-G?nter@21402 1389 do
pascal@20051 1390 [ -z "$1" ] || continue
Hans-G?nter@21402 1391 if [ -f "/var/run/$file" ]
Hans-G?nter@21402 1392 then
pascal@20051 1393 /etc/init.d/$daemon stop
pascal@20051 1394 sleep 2
pascal@20051 1395 fi
Hans-G?nter@21402 1396 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@21402 1397 then
pascal@20051 1398 /etc/init.d/$daemon start
pascal@20051 1399 fi
Hans-G?nter@21402 1400 done <<EOT
al@20534 1401 apache apache/httpd.pid
pascal@20051 1402 lighttpd lighttpd.pid
pascal@20051 1403 EOT
pascal@20051 1404 }