wok-backports rev 33
Add: php modules
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/php-apache/receipt Mon Jun 02 00:34:56 2014 +0200 1.3 @@ -0,0 +1,61 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="php-apache" 1.7 +VERSION="5.5.13" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="PHP module for apache." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="BSD" 1.12 +WEB_SITE="http://www.php.net/" 1.13 +WANTED="php" 1.14 +PROVIDE="php:apache" 1.15 + 1.16 +DEPENDS="php-common apache libxml2 zlib" 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + mkdir -p $fs/usr/share 1.22 + cp -a $install/usr/share/apache $fs/usr/share 1.23 +} 1.24 + 1.25 +# Post and pre install commans to stop 1.26 +# and restart Web server if needed. 1.27 +pre_install() 1.28 +{ 1.29 + if [ -z "$1" -a -f "/var/run/apache/httpd.pid" ]; then 1.30 + /etc/init.d/apache stop 1.31 + fi 1.32 +} 1.33 + 1.34 +post_install() 1.35 +{ 1.36 + grep -q php5_module $1/etc/apache/httpd.conf || { 1.37 + sed -e 's|mod_rewrite.so|mod_rewrite.so\nLoadModule php5_module share/apache/modules/libphp5.so|' \ 1.38 + -e 's|DirectoryIndex index.html|DirectoryIndex index.html index.php|' \ 1.39 + -e 's|mime.types|mime.types\n AddType application/x-httpd-php .php .php3 .php4 .php5\n AddType application/x-httpd-php-source .phps|' \ 1.40 + -i $1/etc/apache/httpd.conf 1.41 + } 1.42 + [ -f $1/etc/apache/conf.d/phpinfo ] || \ 1.43 + cat > $1/etc/apache/conf.d/phpinfo <<EOT 1.44 +<IfModule mod_alias.c> 1.45 + Alias /phpinfo /usr/share/phpinfo 1.46 +</IfModule> 1.47 +<DirectoryMatch /usr/share/phpinfo/> 1.48 + DirectoryIndex index.php 1.49 + Options +FollowSymLinks 1.50 + AllowOverride None 1.51 + Order allow,deny 1.52 + Allow from all 1.53 +</DirectoryMatch> 1.54 +EOT 1.55 + # Restart Web server. 1.56 + if [ -z "$1" -a -f "/var/run/apache/httpd.pid" ]; then 1.57 + /etc/init.d/apache stop 1.58 + sleep 2 1.59 + fi 1.60 + if [ -z "$1" ]; then 1.61 + /etc/init.d/apache start 1.62 + fi 1.63 +} 1.64 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/php-auth-pam/receipt Mon Jun 02 00:34:56 2014 +0200 2.3 @@ -0,0 +1,81 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="php-auth-pam" 2.7 +VERSION="0.4" 2.8 +CATEGORY="development" 2.9 +SHORT_DESC="PHP extension for PAM" 2.10 +MAINTAINER="erjo@slitaz.org" 2.11 +LICENSE="BSD" 2.12 +TARBALL="${PACKAGE}_${VERSION}.orig.tar.gz" 2.13 +WEB_SITE="http://packages.debian.org/" 2.14 +WGET_URL="http://ftp.de.debian.org/debian/pool/main/p/php-auth-pam/$TARBALL" 2.15 + 2.16 +DEPENDS="php-apache pam" 2.17 +BUILD_DEPENDS="php-dev pam pam-dev autoconf automake sed coreutils-conditions" 2.18 + 2.19 +# Rules to configure and make the package. 2.20 +compile_rules() 2.21 +{ 2.22 + test -d ${PACKAGE}-${VERSION} \ 2.23 + || make ${PACKAGE}-${VERSION}.orig ${PACKAGE}-${VERSION} 2.24 + cd $src 2.25 + phpize 2.26 + patch -p1 < $stuff/php-auth-pam-Makefile.global0.4.u || exit 1 2.27 + sed -i 's/^function_entry/zend_&/;s/pval /zval /' pam_auth.c # php 5.4 2.28 + 2.29 + ./configure $CONFIGURE_ARGS \ 2.30 + --prefix=/usr && 2.31 + 2.32 + make && make DESTDIR=$DESTDIR install 2.33 +} 2.34 + 2.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.36 +genpkg_rules() 2.37 +{ 2.38 + mkdir -p $fs/usr/share/php 2.39 + cp -a $install/usr/lib/php/extensions/*/*.so $fs/usr/share/php 2.40 +} 2.41 + 2.42 +post_install() 2.43 +{ 2.44 + grep -q ^extension=pam_auth.so $1/etc/php.ini || \ 2.45 + sed -e 's|extension=msql.so|extension=msql.so\nextension=pam_auth.so|' -i $1/etc/php.ini 2.46 + # Start Web server. 2.47 + while read daemon file; do 2.48 + [ -z "$1" ] || continue 2.49 + if [ -z "$1" -a -f "/var/run/$file" ]; then 2.50 + /etc/init.d/$daemon stop 2.51 + sleep 2 2.52 + fi 2.53 + if [ -z "$1" -a -f /etc/init.d/$daemon ]; then 2.54 + /etc/init.d/$daemon start 2.55 + fi 2.56 + done <<EOT 2.57 +apache apache/httpd.pid 2.58 +lighttpd lighttpd.pid 2.59 +EOT 2.60 +} 2.61 + 2.62 +# Pre and post remove commands for Tazpkg. 2.63 +pre_remove() 2.64 +{ 2.65 + sed -i '/.*=pam_auth.so.*/d' /etc/php.ini 2.66 + 2.67 + # Start Web server. 2.68 + while read daemon file; do 2.69 + if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then 2.70 + /etc/init.d/$daemon stop 2.71 + sleep 2 2.72 + /etc/init.d/$daemon start 2.73 + fi 2.74 + done <<EOT 2.75 +apache apache/httpd.pid 2.76 +lighttpd lighttpd.pid 2.77 +EOT 2.78 +} 2.79 + 2.80 + 2.81 +clean_wok() 2.82 +{ 2.83 + test -d ${PACKAGE}-${VERSION} && rm -rf ${PACKAGE}-${VERSION} 2.84 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/php-auth-pam/stuff/php-auth-pam-Makefile.global0.4.u Mon Jun 02 00:34:56 2014 +0200 3.3 @@ -0,0 +1,53 @@ 3.4 +--- php-auth-pam-0.4-ori/Makefile.global Sat May 8 09:06:20 2010 3.5 ++++ php-auth-pam-0.4/Makefile.global Sat May 8 09:07:58 2010 3.6 +@@ -24,7 +24,7 @@ 3.7 + 3.8 + install-sapi: $(OVERALL_TARGET) 3.9 + @echo "Installing PHP SAPI module: $(PHP_SAPI)" 3.10 +- -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) 3.11 ++ -@$(mkinstalldirs) $(DESTDIR)$(INSTALL_ROOT)$(bindir) 3.12 + -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \ 3.13 + for i in 0.0.0 0.0 0; do \ 3.14 + if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ 3.15 +@@ -37,19 +37,19 @@ 3.16 + 3.17 + install-modules: build-modules 3.18 + @test -d modules && \ 3.19 +- $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) 3.20 +- @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" 3.21 ++ $(mkinstalldirs) $(DESTDIR)$(INSTALL_ROOT)$(EXTENSION_DIR) 3.22 ++ @echo "Installing shared extensions: $(DESTDIR)$(INSTALL_ROOT)$(EXTENSION_DIR)/" 3.23 + @rm -f modules/*.la >/dev/null 2>&1 3.24 +- @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) 3.25 ++ @$(INSTALL) modules/* $(DESTDIR)$(INSTALL_ROOT)$(EXTENSION_DIR) 3.26 + 3.27 + install-headers: 3.28 + -@if test "$(INSTALL_HEADERS)"; then \ 3.29 + for i in `echo $(INSTALL_HEADERS)`; do \ 3.30 + i=`$(top_srcdir)/build/shtool path -d $$i`; \ 3.31 +- paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ 3.32 ++ paths="$$paths $(DESTDIR)$(INSTALL_ROOT)$(phpincludedir)/$$i"; \ 3.33 + done; \ 3.34 + $(mkinstalldirs) $$paths && \ 3.35 +- echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ 3.36 ++ echo "Installing header files: $(DESTDIR)$(INSTALL_ROOT)$(phpincludedir)/" && \ 3.37 + for i in `echo $(INSTALL_HEADERS)`; do \ 3.38 + if test "$(PHP_PECL_EXTENSION)"; then \ 3.39 + src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ 3.40 +@@ -57,12 +57,12 @@ 3.41 + src=$$i; \ 3.42 + fi; \ 3.43 + if test -f "$(top_srcdir)/$$src"; then \ 3.44 +- $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ 3.45 ++ $(INSTALL_DATA) $(top_srcdir)/$$src $(DESTDIR)$(INSTALL_ROOT)$(phpincludedir)/$$i; \ 3.46 + elif test -f "$(top_builddir)/$$src"; then \ 3.47 +- $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ 3.48 ++ $(INSTALL_DATA) $(top_builddir)/$$src $(DESTDIR)$(INSTALL_ROOT)$(phpincludedir)/$$i; \ 3.49 + else \ 3.50 +- (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ 3.51 +- cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ 3.52 ++ (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(DESTDIR)$(INSTALL_ROOT)$(phpincludedir)/$$i; \ 3.53 ++ cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(DESTDIR)$(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ 3.54 + fi \ 3.55 + done; \ 3.56 + fi
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/php-auth-sasl/receipt Mon Jun 02 00:34:56 2014 +0200 4.3 @@ -0,0 +1,34 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="php-auth-sasl" 4.7 +VERSION="1.0.4" 4.8 +CATEGORY="development" 4.9 +SHORT_DESC="Abstraction of various SASL mechanism responses for php." 4.10 +MAINTAINER="pascal.bellard@slitaz.org" 4.11 +LICENSE="BSD" 4.12 +WEB_SITE="http://pear.php.net/" 4.13 +SOURCE="Auth_SASL" 4.14 +TARBALL="$SOURCE-$VERSION.tgz" 4.15 +WGET_URL="http://download.pear.php.net/package/$TARBALL" 4.16 + 4.17 +DEPENDS="php-pear" 4.18 +BUILD_DEPENDS="php-pear php-cli" 4.19 + 4.20 +# Rules to configure and make the package. 4.21 +compile_rules() 4.22 +{ 4.23 + cd $src 4.24 + mkdir -p $DESTDIR/usr/share/php 4.25 + tar czf $TARBALL $SOURCE-$VERSION package.xml 4.26 + pear install --offline --installroot=$DESTDIR $TARBALL 4.27 +} 4.28 + 4.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.30 +genpkg_rules() 4.31 +{ 4.32 + cp -a $install/usr $fs 4.33 + rm -rf $fs/usr/share/php/.channels $fs/usr/share/php/.registry/.c* 4.34 + rm -rf $fs/usr/share/php/.f* $fs/usr/share/php/.l* 4.35 + rm -rf $fs/usr/share/php/.dep* 4.36 +} 4.37 +
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/php-cherokee/receipt Mon Jun 02 00:34:56 2014 +0200 5.3 @@ -0,0 +1,55 @@ 5.4 +# SliTaz package receipt. 5.5 + 5.6 +PACKAGE="php-cherokee" 5.7 +VERSION="5.5.13" 5.8 +CATEGORY="development" 5.9 +SHORT_DESC="PHP module for cherokee." 5.10 +MAINTAINER="shann@slitaz.org" 5.11 +LICENSE="BSD" 5.12 +WEB_SITE="http://www.php.net/" 5.13 +WANTED="php" 5.14 +PROVIDE="php:cherokee" 5.15 + 5.16 +DEPENDS="php-common cherokee libxml2 zlib" 5.17 + 5.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 5.19 +genpkg_rules() 5.20 +{ 5.21 + mkdir -p $fs/usr/bin $fs/usr/share/php 5.22 + cp -a $src/sapi/cgi/php-cgi $fs/usr/bin 5.23 +} 5.24 + 5.25 +# Post and pre install commands to stop 5.26 +# and restart Web server if needed. 5.27 +pre_install() 5.28 +{ 5.29 + if [ -z "$1" -a ! -f "/var/run/cherokee.pid" ]; then 5.30 + /etc/init.d/cherokee stop 5.31 + fi 5.32 +} 5.33 + 5.34 +post_install() 5.35 +{ 5.36 + # Enable php 5.37 +# if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 5.38 +# [ -f $1/usr/lib/lighttpd/mod_fastcgi.so ] || \ 5.39 +# tazpkg get-install lighttpd-modules --root=$1/ 5.40 +# sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \ 5.41 +# -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \ 5.42 +# -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \ 5.43 +# -i $1/etc/lighttpd/lighttpd.conf 5.44 +# grep -q mod_fastcgi $1/etc/lighttpd/lighttpd.conf || \ 5.45 +# sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \ 5.46 +# -i $1/etc/lighttpd/lighttpd.conf 5.47 +# grep -q php3 $1/etc/lighttpd/lighttpd.conf || \ 5.48 +# sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \ 5.49 +# -i $1/etc/lighttpd/lighttpd.conf 5.50 +# fi 5.51 + 5.52 + 5.53 + # Start Web server. 5.54 + if [ -z "$1" -a ! -f /var/run/cherokee.pid \ 5.55 + -a -f /etc/init.d/cherokee ]; then 5.56 + /etc/init.d/cherokee start 5.57 + fi 5.58 +}
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/php-cli/receipt Mon Jun 02 00:34:56 2014 +0200 6.3 @@ -0,0 +1,19 @@ 6.4 +# SliTaz package receipt. 6.5 + 6.6 +PACKAGE="php-cli" 6.7 +VERSION="5.5.13" 6.8 +CATEGORY="development" 6.9 +SHORT_DESC="PHP web programming language command line interpreter." 6.10 +MAINTAINER="pascal.bellard@slitaz.org" 6.11 +LICENSE="BSD" 6.12 +WEB_SITE="http://www.php.net/" 6.13 +WANTED="php" 6.14 + 6.15 +DEPENDS="php-common" 6.16 + 6.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 6.18 +genpkg_rules() 6.19 +{ 6.20 + mkdir -p $fs/usr/bin 6.21 + cp -a $install/usr/bin/php $fs/usr/bin 6.22 +}
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/php-common/receipt Mon Jun 02 00:34:56 2014 +0200 7.3 @@ -0,0 +1,43 @@ 7.4 +# SliTaz package receipt. 7.5 + 7.6 +PACKAGE="php-common" 7.7 +VERSION="5.5.13" 7.8 +CATEGORY="development" 7.9 +SHORT_DESC="Common files for PHP modules." 7.10 +MAINTAINER="pascal.bellard@slitaz.org" 7.11 +LICENSE="BSD" 7.12 +WEB_SITE="http://www.php.net/" 7.13 +WANTED="php" 7.14 +CONFIG_FILES="/etc/php.ini" 7.15 + 7.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 7.17 +genpkg_rules() 7.18 +{ 7.19 + mkdir -p $fs/etc \ 7.20 + $fs/usr/share/applications \ 7.21 + $fs/usr/share/pixmaps 7.22 + cp -a $stuff/phpinfo $fs/usr/share 7.23 + cp $stuff/php.desktop $fs/usr/share/applications 7.24 + cp $stuff/php.png $fs/usr/share/pixmaps 7.25 + cp $install/etc/php.ini $fs/etc 7.26 +} 7.27 + 7.28 +# Post and pre install commands 7.29 +pre_install() 7.30 +{ 7.31 + # Backup existing php.ini 7.32 + if [ -f "$1/etc/php.ini" ]; then 7.33 + echo -n "Creating php.ini backup..." 7.34 + cp $1/etc/php.ini $1/etc/php.ini.bak 7.35 + status 7.36 + fi 7.37 +} 7.38 +post_install() 7.39 +{ 7.40 + # Restore original php.ini 7.41 + if [ -f "$1/etc/php.ini.bak" ]; then 7.42 + echo -n "Restoring php.ini backup..." 7.43 + mv -f $1/etc/php.ini.bak $1/etc/php.ini 7.44 + status 7.45 + fi 7.46 +}
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 8.2 +++ b/php-common/stuff/php.desktop Mon Jun 02 00:34:56 2014 +0200 8.3 @@ -0,0 +1,11 @@ 8.4 +[Desktop Entry] 8.5 +Encoding=UTF-8 8.6 +Name=PHP info 8.7 +GenericName=PHP information 8.8 +GenericName[fr]=Informations sur PHP 8.9 +Comment=PHP configuration informations 8.10 +Comment[fr]=Informations de configuration de PHP 8.11 +Exec=browser http://localhost/phpinfo/ 8.12 +Icon=php 8.13 +Type=Application 8.14 +Categories=Development;
9.1 Binary file php-common/stuff/php.png has changed
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 10.2 +++ b/php-common/stuff/phpinfo/index.php Mon Jun 02 00:34:56 2014 +0200 10.3 @@ -0,0 +1,4 @@ 10.4 +<?php 10.5 +phpinfo(); 10.6 +?> 10.7 +
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 11.2 +++ b/php-curl/receipt Mon Jun 02 00:34:56 2014 +0200 11.3 @@ -0,0 +1,74 @@ 11.4 +# SliTaz package receipt. 11.5 + 11.6 +PACKAGE="php-curl" 11.7 +VERSION="5.5.13" 11.8 +CATEGORY="development" 11.9 +SHORT_DESC="curl module for PHP web programming language." 11.10 +MAINTAINER="jozee@slitaz.org" 11.11 +LICENSE="BSD" 11.12 +WEB_SITE="http://www.php.net/" 11.13 +WANTED="php" 11.14 + 11.15 +DEPENDS="curl php" 11.16 + 11.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 11.18 +genpkg_rules() 11.19 +{ 11.20 + mkdir -p $fs/usr/share/php 11.21 + cp $(find $install | grep curl.so) $fs/usr/share/php/ 11.22 +} 11.23 + 11.24 +# Post and pre install commans to stop 11.25 +# and restart Web server if needed. 11.26 +pre_install() 11.27 +{ 11.28 + while read daemon file; do 11.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 11.30 + /etc/init.d/$daemon stop 11.31 + fi 11.32 + done <<EOT 11.33 +apache apache/httpd.pid 11.34 +lighttpd lighttpd.pid 11.35 +EOT 11.36 +} 11.37 + 11.38 +post_install() 11.39 +{ 11.40 + grep -q ^extension=curl.so $1/etc/php.ini || \ 11.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=curl.so|' -i $1/etc/php.ini 11.42 + # Start Web server. 11.43 + while read daemon file; do 11.44 + [ -z "$1" ] || continue 11.45 + if [ -f "/var/run/$file" ]; then 11.46 + /etc/init.d/$daemon stop 11.47 + sleep 2 11.48 + fi 11.49 + if [ -f /etc/init.d/$daemon ]; then 11.50 + /etc/init.d/$daemon start 11.51 + fi 11.52 + done <<EOT 11.53 +apache apache/httpd.pid 11.54 +lighttpd lighttpd.pid 11.55 +EOT 11.56 +} 11.57 + 11.58 +# Pre and post remove commands for Tazpkg. 11.59 +pre_remove() 11.60 +{ 11.61 + sed -i '/.*=curl.so.*/d' /etc/php.ini 11.62 + 11.63 + # Start Web server. 11.64 + while read daemon file; do 11.65 + [ -z "$1" ] || continue 11.66 + if [ -f "/var/run/$file" ]; then 11.67 + /etc/init.d/$daemon stop 11.68 + sleep 2 11.69 + fi 11.70 + if [ -f /etc/init.d/$daemon ]; then 11.71 + /etc/init.d/$daemon start 11.72 + fi 11.73 + done <<EOT 11.74 +apache apache/httpd.pid 11.75 +lighttpd lighttpd.pid 11.76 +EOT 11.77 +}
12.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 12.2 +++ b/php-dba/receipt Mon Jun 02 00:34:56 2014 +0200 12.3 @@ -0,0 +1,72 @@ 12.4 +# SliTaz package receipt. 12.5 + 12.6 +PACKAGE="php-dba" 12.7 +VERSION="5.5.13" 12.8 +CATEGORY="development" 12.9 +SHORT_DESC="dba module for PHP web programming language." 12.10 +MAINTAINER="pascal.bellard@slitaz.org" 12.11 +LICENSE="BSD" 12.12 +WEB_SITE="http://www.php.net/" 12.13 +WANTED="php" 12.14 + 12.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 12.16 +genpkg_rules() 12.17 +{ 12.18 + mkdir -p $fs/usr/share/php 12.19 + cp $(find $install | grep dba.so) $fs/usr/share/php/ 12.20 +} 12.21 + 12.22 +# Post and pre install commans to stop 12.23 +# and restart Web server if needed. 12.24 +pre_install() 12.25 +{ 12.26 + while read daemon file; do 12.27 + if [ -z "$1" -a -f "/var/run/$file" ]; then 12.28 + /etc/init.d/$daemon stop 12.29 + fi 12.30 + done <<EOT 12.31 +apache apache/httpd.pid 12.32 +lighttpd lighttpd.pid 12.33 +EOT 12.34 +} 12.35 + 12.36 +post_install() 12.37 +{ 12.38 + grep -q ^extension=dba.so $1/etc/php.ini || \ 12.39 + sed -e 's|extension=msql.so|extension=msql.so\nextension=dba.so|' -i $1/etc/php.ini 12.40 + # Start Web server. 12.41 + while read daemon file; do 12.42 + [ -z "$1" ] || continue 12.43 + if [ -f "/var/run/$file" ]; then 12.44 + /etc/init.d/$daemon stop 12.45 + sleep 2 12.46 + fi 12.47 + if [ -f /etc/init.d/$daemon ]; then 12.48 + /etc/init.d/$daemon start 12.49 + fi 12.50 + done <<EOT 12.51 +apache apache/httpd.pid 12.52 +lighttpd lighttpd.pid 12.53 +EOT 12.54 +} 12.55 + 12.56 +# Pre and post remove commands for Tazpkg. 12.57 +pre_remove() 12.58 +{ 12.59 + sed -i '/.*=dba.so.*/d' /etc/php.ini 12.60 + 12.61 + # Start Web server. 12.62 + while read daemon file; do 12.63 + [ -z "$1" ] || continue 12.64 + if [ -f "/var/run/$file" ]; then 12.65 + /etc/init.d/$daemon stop 12.66 + sleep 2 12.67 + fi 12.68 + if [ -f /etc/init.d/$daemon ]; then 12.69 + /etc/init.d/$daemon start 12.70 + fi 12.71 + done <<EOT 12.72 +apache apache/httpd.pid 12.73 +lighttpd lighttpd.pid 12.74 +EOT 12.75 +}
13.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 13.2 +++ b/php-dev/receipt Mon Jun 02 00:34:56 2014 +0200 13.3 @@ -0,0 +1,24 @@ 13.4 +# SliTaz package receipt. 13.5 + 13.6 +PACKAGE="php-dev" 13.7 +VERSION="5.5.13" 13.8 +CATEGORY="development" 13.9 +SHORT_DESC="PHP web programming language development files." 13.10 +MAINTAINER="pascal.bellard@slitaz.org" 13.11 +LICENSE="BSD" 13.12 +WEB_SITE="http://www.php.net/" 13.13 +WANTED="php" 13.14 + 13.15 +DEPENDS="php cyrus-sasl libldap libmysqlclient libpng libpostgresqlclient \ 13.16 +libunixODBC mhash openssl jpeg libmcrypt libtool libkrb5 libcomerr3 net-snmp" 13.17 + 13.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 13.19 +genpkg_rules() 13.20 +{ 13.21 + mkdir -p $fs/usr/lib/php $fs/usr/bin 13.22 + cp -a $install/usr/lib/php/extensions $fs/usr/lib/php 13.23 + rm -f $fs/usr/lib/php/*so 13.24 + cp -a $install/usr/lib/php/build $fs/usr/lib/php 13.25 + cp -a $install/usr/include $fs/usr 13.26 + cp -a $install/usr/bin/php-config $install/usr/bin/phpize $fs/usr/bin 13.27 +}
14.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 14.2 +++ b/php-docs-en/receipt Mon Jun 02 00:34:56 2014 +0200 14.3 @@ -0,0 +1,18 @@ 14.4 +# SliTaz package receipt. 14.5 + 14.6 +PACKAGE="php-docs-en" 14.7 +VERSION="5.5.13" 14.8 +CATEGORY="misc" 14.9 +SHORT_DESC="Set of HTML documentation for PHP.(English version)" 14.10 +MAINTAINER="slaxemulator@gmail.com" 14.11 +LICENSE="BSD" 14.12 +WEB_SITE="http://www.php.net/docs.php" 14.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 14.14 +WGET_URL="http://www.php.net/distributions/manual/php_manual_en.tar.gz" 14.15 + 14.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 14.17 +genpkg_rules() 14.18 +{ 14.19 + mkdir -p $fs/usr/share/doc 14.20 + cp -a $src $fs/usr/share/doc/php-en 14.21 +}
15.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 15.2 +++ b/php-docs-fr/receipt Mon Jun 02 00:34:56 2014 +0200 15.3 @@ -0,0 +1,18 @@ 15.4 +# SliTaz package receipt. 15.5 + 15.6 +PACKAGE="php-docs-fr" 15.7 +VERSION="5.5.13" 15.8 +CATEGORY="misc" 15.9 +SHORT_DESC="Set of HTML documentation for PHP.(English version)" 15.10 +MAINTAINER="slaxemulator@gmail.com" 15.11 +LICENSE="BSD" 15.12 +WEB_SITE="http://www.php.net/docs.php" 15.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 15.14 +WGET_URL="http://www.php.net/distributions/manual/php_manual_en.tar.gz" 15.15 + 15.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 15.17 +genpkg_rules() 15.18 +{ 15.19 + mkdir -p $fs/usr/share/doc 15.20 + cp -a $src $fs/usr/share/doc/php-fr 15.21 +}
16.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 16.2 +++ b/php-gd/receipt Mon Jun 02 00:34:56 2014 +0200 16.3 @@ -0,0 +1,76 @@ 16.4 +# SliTaz package receipt. 16.5 + 16.6 +PACKAGE="php-gd" 16.7 +VERSION="5.5.13" 16.8 +CATEGORY="development" 16.9 +SHORT_DESC="gd module for PHP web programming language." 16.10 +MAINTAINER="pascal.bellard@slitaz.org" 16.11 +LICENSE="BSD" 16.12 +WEB_SITE="http://www.php.net/" 16.13 +WANTED="php" 16.14 + 16.15 +DEPENDS="libpng php jpeg libvpx" 16.16 + 16.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 16.18 +genpkg_rules() 16.19 +{ 16.20 + mkdir -p $fs/usr/share/php 16.21 + cp $(find $install | grep gd.so) $fs/usr/share/php/ 16.22 +} 16.23 + 16.24 +# Post and pre install commans to stop 16.25 +# and restart Web server if needed. 16.26 +pre_install() 16.27 +{ 16.28 + while read daemon file; do 16.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 16.30 + /etc/init.d/$daemon stop 16.31 + fi 16.32 + done <<EOT 16.33 +apache apache/httpd.pid 16.34 +lighttpd lighttpd.pid 16.35 +EOT 16.36 +} 16.37 + 16.38 +post_install() 16.39 +{ 16.40 + grep -q ^extension=gd.so $1/etc/php.ini || \ 16.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=gd.so|' -i $1/etc/php.ini 16.42 + # Start Web server. 16.43 + while read daemon file; do 16.44 + [ -z "$1" ] || continue 16.45 + if [ -z "$1" -a -f "/var/run/$file" ]; then 16.46 + /etc/init.d/$daemon stop 16.47 + sleep 2 16.48 + fi 16.49 + if [ -z "$1" -a -f /etc/init.d/$daemon ]; then 16.50 + /etc/init.d/$daemon start 16.51 + fi 16.52 + done <<EOT 16.53 +apache apache/httpd.pid 16.54 +lighttpd lighttpd.pid 16.55 +EOT 16.56 +} 16.57 + 16.58 +# Pre and post remove commands for Tazpkg. 16.59 +pre_remove() 16.60 +{ 16.61 + sed -i '/.*=gd.so.*/d' $1/etc/php.ini 16.62 + 16.63 + # Start Web server. 16.64 + while read daemon file; do 16.65 + if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then 16.66 + [ -z "$1" ] || continue 16.67 + if [ -z "$1" -a -f "/var/run/$file" ]; then 16.68 + /etc/init.d/$daemon stop 16.69 + sleep 2 16.70 + fi 16.71 + if [ -z "$1" -a -f /etc/init.d/$daemon ]; then 16.72 + /etc/init.d/$daemon start 16.73 + fi 16.74 + fi 16.75 + done <<EOT 16.76 +apache apache/httpd.pid 16.77 +lighttpd lighttpd.pid 16.78 +EOT 16.79 +}
17.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 17.2 +++ b/php-imap/receipt Mon Jun 02 00:34:56 2014 +0200 17.3 @@ -0,0 +1,74 @@ 17.4 +# SliTaz package receipt. 17.5 + 17.6 +PACKAGE="php-imap" 17.7 +VERSION="5.5.13" 17.8 +CATEGORY="development" 17.9 +SHORT_DESC="imap module for PHP web programming language." 17.10 +MAINTAINER="pascal.bellard@slitaz.org" 17.11 +LICENSE="BSD" 17.12 +WEB_SITE="http://www.php.net/" 17.13 +WANTED="php" 17.14 + 17.15 +DEPENDS="php openssl" 17.16 + 17.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 17.18 +genpkg_rules() 17.19 +{ 17.20 + mkdir -p $fs/usr/share/php 17.21 + cp $(find $install | grep imap.so) $fs/usr/share/php/ 17.22 +} 17.23 + 17.24 +# Post and pre install commans to stop 17.25 +# and restart Web server if needed. 17.26 +pre_install() 17.27 +{ 17.28 + while read daemon file; do 17.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 17.30 + /etc/init.d/$daemon stop 17.31 + fi 17.32 + done <<EOT 17.33 +apache apache/httpd.pid 17.34 +lighttpd lighttpd.pid 17.35 +EOT 17.36 +} 17.37 + 17.38 +post_install() 17.39 +{ 17.40 + grep -q ^extension=imap.so $1/etc/php.ini || \ 17.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=imap.so|' -i $1/etc/php.ini 17.42 + # Start Web server. 17.43 + while read daemon file; do 17.44 + [ -z "$1" ] || continue 17.45 + if [ -f "/var/run/$file" ]; then 17.46 + /etc/init.d/$daemon stop 17.47 + sleep 2 17.48 + fi 17.49 + if [ -f /etc/init.d/$daemon ]; then 17.50 + /etc/init.d/$daemon start 17.51 + fi 17.52 + done <<EOT 17.53 +apache apache/httpd.pid 17.54 +lighttpd lighttpd.pid 17.55 +EOT 17.56 +} 17.57 + 17.58 +# Pre and post remove commands for Tazpkg. 17.59 +pre_remove() 17.60 +{ 17.61 + sed -i '/.*=imap.so.*/d' /etc/php.ini 17.62 + 17.63 + # Start Web server. 17.64 + while read daemon file; do 17.65 + [ -z "$1" ] || continue 17.66 + if [ -f "/var/run/$file" ]; then 17.67 + /etc/init.d/$daemon stop 17.68 + sleep 2 17.69 + fi 17.70 + if [ -f /etc/init.d/$daemon ]; then 17.71 + /etc/init.d/$daemon start 17.72 + fi 17.73 + done <<EOT 17.74 +apache apache/httpd.pid 17.75 +lighttpd lighttpd.pid 17.76 +EOT 17.77 +}
18.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 18.2 +++ b/php-ldap/receipt Mon Jun 02 00:34:56 2014 +0200 18.3 @@ -0,0 +1,74 @@ 18.4 +# SliTaz package receipt. 18.5 + 18.6 +PACKAGE="php-ldap" 18.7 +VERSION="5.5.13" 18.8 +CATEGORY="development" 18.9 +SHORT_DESC="ldap module for PHP web programming language." 18.10 +MAINTAINER="pascal.bellard@slitaz.org" 18.11 +LICENSE="BSD" 18.12 +WEB_SITE="http://www.php.net/" 18.13 +WANTED="php" 18.14 + 18.15 +DEPENDS="libldap php openssl cyrus-sasl libkrb5 libcomerr3" 18.16 + 18.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 18.18 +genpkg_rules() 18.19 +{ 18.20 + mkdir -p $fs/usr/share/php 18.21 + cp $(find $install | grep ldap.so) $fs/usr/share/php/ 18.22 +} 18.23 + 18.24 +# Post and pre install commans to stop 18.25 +# and restart Web server if needed. 18.26 +pre_install() 18.27 +{ 18.28 + while read daemon file; do 18.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 18.30 + /etc/init.d/$daemon stop 18.31 + fi 18.32 + done <<EOT 18.33 +apache apache/httpd.pid 18.34 +lighttpd lighttpd.pid 18.35 +EOT 18.36 +} 18.37 + 18.38 +post_install() 18.39 +{ 18.40 + grep -q ^extension=ldap.so $1/etc/php.ini || \ 18.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=ldap.so|' -i $1/etc/php.ini 18.42 + # Start Web server. 18.43 + while read daemon file; do 18.44 + [ -z "$1" ] || continue 18.45 + if [ -f "/var/run/$file" ]; then 18.46 + /etc/init.d/$daemon stop 18.47 + sleep 2 18.48 + fi 18.49 + if [ -f /etc/init.d/$daemon ]; then 18.50 + /etc/init.d/$daemon start 18.51 + fi 18.52 + done <<EOT 18.53 +apache apache/httpd.pid 18.54 +lighttpd lighttpd.pid 18.55 +EOT 18.56 +} 18.57 + 18.58 +# Pre and post remove commands for Tazpkg. 18.59 +pre_remove() 18.60 +{ 18.61 + sed -i '/.*=ldap.so.*/d' /etc/php.ini 18.62 + 18.63 + # Start Web server. 18.64 + while read daemon file; do 18.65 + [ -z "$1" ] || continue 18.66 + if [ -f "/var/run/$file" ]; then 18.67 + /etc/init.d/$daemon stop 18.68 + sleep 2 18.69 + fi 18.70 + if [ -f /etc/init.d/$daemon ]; then 18.71 + /etc/init.d/$daemon start 18.72 + fi 18.73 + done <<EOT 18.74 +apache apache/httpd.pid 18.75 +lighttpd lighttpd.pid 18.76 +EOT 18.77 +}
19.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 19.2 +++ b/php-mcrypt/receipt Mon Jun 02 00:34:56 2014 +0200 19.3 @@ -0,0 +1,74 @@ 19.4 +# SliTaz package receipt. 19.5 + 19.6 +PACKAGE="php-mcrypt" 19.7 +VERSION="5.5.13" 19.8 +CATEGORY="development" 19.9 +SHORT_DESC="mcrypt module for PHP web programming language." 19.10 +MAINTAINER="erjo@slitaz.org" 19.11 +LICENSE="BSD" 19.12 +WEB_SITE="http://www.php.net/" 19.13 +WANTED="php" 19.14 + 19.15 +DEPENDS="libmcrypt php libtool" 19.16 + 19.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 19.18 +genpkg_rules() 19.19 +{ 19.20 + mkdir -p $fs/usr/share/php 19.21 + cp $(find $install | grep mcrypt.so) $fs/usr/share/php/ 19.22 +} 19.23 + 19.24 +# Post and pre install commans to stop 19.25 +# and restart Web server if needed. 19.26 +pre_install() 19.27 +{ 19.28 + while read daemon file; do 19.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 19.30 + /etc/init.d/$daemon stop 19.31 + fi 19.32 + done <<EOT 19.33 +apache apache/httpd.pid 19.34 +lighttpd lighttpd.pid 19.35 +EOT 19.36 +} 19.37 + 19.38 +post_install() 19.39 +{ 19.40 + grep -q ^extension=mcrypt.so $1/etc/php.ini || \ 19.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=mcrypt.so|' -i $1/etc/php.ini 19.42 + # Start Web server. 19.43 + while read daemon file; do 19.44 + [ -z "$1" ] || continue 19.45 + if [ -f "/var/run/$file" ]; then 19.46 + /etc/init.d/$daemon stop 19.47 + sleep 2 19.48 + fi 19.49 + if [ -f /etc/init.d/$daemon ]; then 19.50 + /etc/init.d/$daemon start 19.51 + fi 19.52 + done <<EOT 19.53 +apache apache/httpd.pid 19.54 +lighttpd lighttpd.pid 19.55 +EOT 19.56 +} 19.57 + 19.58 +# Pre and post remove commands for Tazpkg. 19.59 +pre_remove() 19.60 +{ 19.61 + sed -i '/.*=mcrypt.so.*/d' /etc/php.ini 19.62 + 19.63 + # Start Web server. 19.64 + while read daemon file; do 19.65 + [ -z "$1" ] || continue 19.66 + if [ -f "/var/run/$file" ]; then 19.67 + /etc/init.d/$daemon stop 19.68 + sleep 2 19.69 + fi 19.70 + if [ -f /etc/init.d/$daemon ]; then 19.71 + /etc/init.d/$daemon start 19.72 + fi 19.73 + done <<EOT 19.74 +apache apache/httpd.pid 19.75 +lighttpd lighttpd.pid 19.76 +EOT 19.77 +}
20.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 20.2 +++ b/php-mysql/receipt Mon Jun 02 00:34:56 2014 +0200 20.3 @@ -0,0 +1,74 @@ 20.4 +# SliTaz package receipt. 20.5 + 20.6 +PACKAGE="php-mysql" 20.7 +VERSION="5.5.13" 20.8 +CATEGORY="development" 20.9 +SHORT_DESC="mysql module for PHP web programming language." 20.10 +MAINTAINER="pascal.bellard@slitaz.org" 20.11 +LICENSE="BSD" 20.12 +WEB_SITE="http://www.php.net/" 20.13 +WANTED="php" 20.14 + 20.15 +DEPENDS="libmysqlclient php" 20.16 + 20.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 20.18 +genpkg_rules() 20.19 +{ 20.20 + mkdir -p $fs/usr/share/php 20.21 + cp $(find $install | grep mysql.so) $fs/usr/share/php/ 20.22 +} 20.23 + 20.24 +# Post and pre install commans to stop 20.25 +# and restart Web server if needed. 20.26 +pre_install() 20.27 +{ 20.28 + while read daemon file; do 20.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 20.30 + /etc/init.d/$daemon stop 20.31 + fi 20.32 + done <<EOT 20.33 +apache apache/httpd.pid 20.34 +lighttpd lighttpd.pid 20.35 +EOT 20.36 +} 20.37 + 20.38 +post_install() 20.39 +{ 20.40 + grep -q ^extension=mysql.so $1/etc/php.ini || \ 20.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=mysql.so|' -i $1/etc/php.ini 20.42 + # Start Web server. 20.43 + while read daemon file; do 20.44 + [ -z "$1" ] || continue 20.45 + if [ -f "/var/run/$file" ]; then 20.46 + /etc/init.d/$daemon stop 20.47 + sleep 2 20.48 + fi 20.49 + if [ -f /etc/init.d/$daemon ]; then 20.50 + /etc/init.d/$daemon start 20.51 + fi 20.52 + done <<EOT 20.53 +apache apache/httpd.pid 20.54 +lighttpd lighttpd.pid 20.55 +EOT 20.56 +} 20.57 + 20.58 +# Pre and post remove commands for Tazpkg. 20.59 +pre_remove() 20.60 +{ 20.61 + sed -i '/.*=mysql.so.*/d' /etc/php.ini 20.62 + 20.63 + # Start Web server. 20.64 + while read daemon file; do 20.65 + [ -z "$1" ] || continue 20.66 + if [ -f "/var/run/$file" ]; then 20.67 + /etc/init.d/$daemon stop 20.68 + sleep 2 20.69 + fi 20.70 + if [ -f /etc/init.d/$daemon ]; then 20.71 + /etc/init.d/$daemon start 20.72 + fi 20.73 + done <<EOT 20.74 +apache apache/httpd.pid 20.75 +lighttpd lighttpd.pid 20.76 +EOT 20.77 +}
21.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 21.2 +++ b/php-mysqli/receipt Mon Jun 02 00:34:56 2014 +0200 21.3 @@ -0,0 +1,74 @@ 21.4 +# SliTaz package receipt. 21.5 + 21.6 +PACKAGE="php-mysqli" 21.7 +VERSION="5.5.13" 21.8 +CATEGORY="development" 21.9 +SHORT_DESC="mysqli module for PHP web programming language." 21.10 +MAINTAINER="pascal.bellard@slitaz.org" 21.11 +LICENSE="BSD" 21.12 +WEB_SITE="http://www.php.net/" 21.13 +WANTED="php" 21.14 + 21.15 +DEPENDS="libmysqlclient php" 21.16 + 21.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 21.18 +genpkg_rules() 21.19 +{ 21.20 + mkdir -p $fs/usr/share/php 21.21 + cp $(find $install | grep mysqli.so) $fs/usr/share/php/ 21.22 +} 21.23 + 21.24 +# Post and pre install commans to stop 21.25 +# and restart Web server if needed. 21.26 +pre_install() 21.27 +{ 21.28 + while read daemon file; do 21.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 21.30 + /etc/init.d/$daemon stop 21.31 + fi 21.32 + done <<EOT 21.33 +apache apache/httpd.pid 21.34 +lighttpd lighttpd.pid 21.35 +EOT 21.36 +} 21.37 + 21.38 +post_install() 21.39 +{ 21.40 + grep -q ^extension=mysqli.so $1/etc/php.ini || \ 21.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=mysqli.so|' -i $1/etc/php.ini 21.42 + # Start Web server. 21.43 + while read daemon file; do 21.44 + [ -z "$1" ] || continue 21.45 + if [ -f "/var/run/$file" ]; then 21.46 + /etc/init.d/$daemon stop 21.47 + sleep 2 21.48 + fi 21.49 + if [ -f /etc/init.d/$daemon ]; then 21.50 + /etc/init.d/$daemon start 21.51 + fi 21.52 + done <<EOT 21.53 +apache apache/httpd.pid 21.54 +lighttpd lighttpd.pid 21.55 +EOT 21.56 +} 21.57 + 21.58 +# Pre and post remove commands for Tazpkg. 21.59 +pre_remove() 21.60 +{ 21.61 + sed -i '/.*=mysqli.so.*/d' /etc/php.ini 21.62 + 21.63 + # Start Web server. 21.64 + while read daemon file; do 21.65 + [ -z "$1" ] || continue 21.66 + if [ -f "/var/run/$file" ]; then 21.67 + /etc/init.d/$daemon stop 21.68 + sleep 2 21.69 + fi 21.70 + if [ -f /etc/init.d/$daemon ]; then 21.71 + /etc/init.d/$daemon start 21.72 + fi 21.73 + done <<EOT 21.74 +apache apache/httpd.pid 21.75 +lighttpd lighttpd.pid 21.76 +EOT 21.77 +}
22.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 22.2 +++ b/php-odbc/receipt Mon Jun 02 00:34:56 2014 +0200 22.3 @@ -0,0 +1,74 @@ 22.4 +# SliTaz package receipt. 22.5 + 22.6 +PACKAGE="php-odbc" 22.7 +VERSION="5.5.13" 22.8 +CATEGORY="development" 22.9 +SHORT_DESC="ODBC module for PHP web programming language." 22.10 +MAINTAINER="pascal.bellard@slitaz.org" 22.11 +LICENSE="BSD" 22.12 +WEB_SITE="http://www.php.net/" 22.13 +WANTED="php" 22.14 + 22.15 +DEPENDS="unixODBC php" 22.16 + 22.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 22.18 +genpkg_rules() 22.19 +{ 22.20 + mkdir -p $fs/usr/share/php 22.21 + cp $(find $install | grep odbc.so) $fs/usr/share/php/ 22.22 +} 22.23 + 22.24 +# Post and pre install commans to stop 22.25 +# and restart Web server if needed. 22.26 +pre_install() 22.27 +{ 22.28 + while read daemon file; do 22.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 22.30 + /etc/init.d/$daemon stop 22.31 + fi 22.32 + done <<EOT 22.33 +apache apache/httpd.pid 22.34 +lighttpd lighttpd.pid 22.35 +EOT 22.36 +} 22.37 + 22.38 +post_install() 22.39 +{ 22.40 + grep -q ^extension=odbc.so $1/etc/php.ini || \ 22.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=odbc.so|' -i $1/etc/php.ini 22.42 + # Start Web server. 22.43 + while read daemon file; do 22.44 + [ -z "$1" ] || continue 22.45 + if [ -f "/var/run/$file" ]; then 22.46 + /etc/init.d/$daemon stop 22.47 + sleep 2 22.48 + fi 22.49 + if [ -f /etc/init.d/$daemon ]; then 22.50 + /etc/init.d/$daemon start 22.51 + fi 22.52 + done <<EOT 22.53 +apache apache/httpd.pid 22.54 +lighttpd lighttpd.pid 22.55 +EOT 22.56 +} 22.57 + 22.58 +# Pre and post remove commands for Tazpkg. 22.59 +pre_remove() 22.60 +{ 22.61 + sed -i '/.*=odbc.so.*/d' /etc/php.ini 22.62 + 22.63 + # Start Web server. 22.64 + while read daemon file; do 22.65 + [ -z "$1" ] || continue 22.66 + if [ -f "/var/run/$file" ]; then 22.67 + /etc/init.d/$daemon stop 22.68 + sleep 2 22.69 + fi 22.70 + if [ -f /etc/init.d/$daemon ]; then 22.71 + /etc/init.d/$daemon start 22.72 + fi 22.73 + done <<EOT 22.74 +apache apache/httpd.pid 22.75 +lighttpd lighttpd.pid 22.76 +EOT 22.77 +}
23.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 23.2 +++ b/php-openssl/receipt Mon Jun 02 00:34:56 2014 +0200 23.3 @@ -0,0 +1,74 @@ 23.4 +# SliTaz package receipt. 23.5 + 23.6 +PACKAGE="php-openssl" 23.7 +VERSION="5.5.13" 23.8 +CATEGORY="development" 23.9 +SHORT_DESC="Openssl module for PHP web programming language." 23.10 +MAINTAINER="pascal.bellard@slitaz.org" 23.11 +LICENSE="BSD" 23.12 +WEB_SITE="http://www.php.net/" 23.13 +WANTED="php" 23.14 + 23.15 +DEPENDS="php openssl" 23.16 + 23.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 23.18 +genpkg_rules() 23.19 +{ 23.20 + mkdir -p $fs/usr/share/php 23.21 + cp $(find $install | grep openssl.so) $fs/usr/share/php/ 23.22 +} 23.23 + 23.24 +# Post and pre install commans to stop 23.25 +# and restart Web server if needed. 23.26 +pre_install() 23.27 +{ 23.28 + while read daemon file; do 23.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 23.30 + /etc/init.d/$daemon stop 23.31 + fi 23.32 + done <<EOT 23.33 +apache apache/httpd.pid 23.34 +lighttpd lighttpd.pid 23.35 +EOT 23.36 +} 23.37 + 23.38 +post_install() 23.39 +{ 23.40 + grep -q ^extension=openssl.so $1/etc/php.ini || \ 23.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=openssl.so|' -i $1/etc/php.ini 23.42 + # Start Web server. 23.43 + while read daemon file; do 23.44 + [ -z "$1" ] || continue 23.45 + if [ -f "/var/run/$file" ]; then 23.46 + /etc/init.d/$daemon stop 23.47 + sleep 2 23.48 + fi 23.49 + if [ -f /etc/init.d/$daemon ]; then 23.50 + /etc/init.d/$daemon start 23.51 + fi 23.52 + done <<EOT 23.53 +apache apache/httpd.pid 23.54 +lighttpd lighttpd.pid 23.55 +EOT 23.56 +} 23.57 + 23.58 +# Pre and post remove commands for Tazpkg. 23.59 +pre_remove() 23.60 +{ 23.61 + sed -i '/.*=openssl.so.*/d' /etc/php.ini 23.62 + 23.63 + # Start Web server. 23.64 + while read daemon file; do 23.65 + [ -z "$1" ] || continue 23.66 + if [ -f "/var/run/$file" ]; then 23.67 + /etc/init.d/$daemon stop 23.68 + sleep 2 23.69 + fi 23.70 + if [ -f /etc/init.d/$daemon ]; then 23.71 + /etc/init.d/$daemon start 23.72 + fi 23.73 + done <<EOT 23.74 +apache apache/httpd.pid 23.75 +lighttpd lighttpd.pid 23.76 +EOT 23.77 +}
24.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 24.2 +++ b/php-pdo-mysql/receipt Mon Jun 02 00:34:56 2014 +0200 24.3 @@ -0,0 +1,74 @@ 24.4 +# SliTaz package receipt. 24.5 + 24.6 +PACKAGE="php-pdo-mysql" 24.7 +VERSION="5.5.13" 24.8 +CATEGORY="development" 24.9 +SHORT_DESC="PDO MySQL module for PHP web programming language." 24.10 +MAINTAINER="pascal.bellard@slitaz.org" 24.11 +LICENSE="BSD" 24.12 +WEB_SITE="http://www.php.net/" 24.13 +WANTED="php" 24.14 + 24.15 +DEPENDS="php php-mysql" 24.16 + 24.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 24.18 +genpkg_rules() 24.19 +{ 24.20 + mkdir -p $fs/usr/share/php 24.21 + cp $(find $install | grep pdo_mysql.so) $fs/usr/share/php/ 24.22 +} 24.23 + 24.24 +# Post and pre install commans to stop 24.25 +# and restart Web server if needed. 24.26 +pre_install() 24.27 +{ 24.28 + while read daemon file; do 24.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 24.30 + /etc/init.d/$daemon stop 24.31 + fi 24.32 + done <<EOT 24.33 +apache apache/httpd.pid 24.34 +lighttpd lighttpd.pid 24.35 +EOT 24.36 +} 24.37 + 24.38 +post_install() 24.39 +{ 24.40 + grep -q ^extension=pdo_mysql.so $1/etc/php.ini || \ 24.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_mysql.so|' -i $1/etc/php.ini 24.42 + # Start Web server. 24.43 + while read daemon file; do 24.44 + [ -z "$1" ] || continue 24.45 + if [ -z "$1" -a -f "/var/run/$file" ]; then 24.46 + /etc/init.d/$daemon stop 24.47 + sleep 2 24.48 + fi 24.49 + if [ -z "$1" -a -f /etc/init.d/$daemon ]; then 24.50 + /etc/init.d/$daemon start 24.51 + fi 24.52 + done <<EOT 24.53 +apache apache/httpd.pid 24.54 +lighttpd lighttpd.pid 24.55 +EOT 24.56 +} 24.57 + 24.58 +# Pre and post remove commands for Tazpkg. 24.59 +pre_remove() 24.60 +{ 24.61 + sed -i '/.*=pdo_mysql.so.*/d' /etc/php.ini 24.62 + 24.63 + # Start Web server. 24.64 + while read daemon file; do 24.65 + [ -z "$1" ] || continue 24.66 + if [ -z "$1" -a -f "/var/run/$file" ]; then 24.67 + /etc/init.d/$daemon stop 24.68 + sleep 2 24.69 + fi 24.70 + if [ -z "$1" -a -f /etc/init.d/$daemon ]; then 24.71 + /etc/init.d/$daemon start 24.72 + fi 24.73 + done <<EOT 24.74 +apache apache/httpd.pid 24.75 +lighttpd lighttpd.pid 24.76 +EOT 24.77 +}
25.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 25.2 +++ b/php-pdo-pgsql/receipt Mon Jun 02 00:34:56 2014 +0200 25.3 @@ -0,0 +1,74 @@ 25.4 +# SliTaz package receipt. 25.5 + 25.6 +PACKAGE="php-pdo-pgsql" 25.7 +VERSION="5.5.13" 25.8 +CATEGORY="development" 25.9 +SHORT_DESC="PDO PgSQL module for PHP web programming language." 25.10 +MAINTAINER="pascal.bellard@slitaz.org" 25.11 +LICENSE="BSD" 25.12 +WEB_SITE="http://www.php.net/" 25.13 +WANTED="php" 25.14 + 25.15 +DEPENDS="php php-mysql libpostgresqlclient" 25.16 + 25.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 25.18 +genpkg_rules() 25.19 +{ 25.20 + mkdir -p $fs/usr/share/php 25.21 + cp $(find $install | grep pdo_pgsql.so) $fs/usr/share/php/ 25.22 +} 25.23 + 25.24 +# Post and pre install commans to stop 25.25 +# and restart Web server if needed. 25.26 +pre_install() 25.27 +{ 25.28 + while read daemon file; do 25.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 25.30 + /etc/init.d/$daemon stop 25.31 + fi 25.32 + done <<EOT 25.33 +apache apache/httpd.pid 25.34 +lighttpd lighttpd.pid 25.35 +EOT 25.36 +} 25.37 + 25.38 +post_install() 25.39 +{ 25.40 + grep -q ^extension=pdo_pgsql.so $1/etc/php.ini || \ 25.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_pgsql.so|' -i $1/etc/php.ini 25.42 + # Start Web server. 25.43 + while read daemon file; do 25.44 + [ -z "$1" ] || continue 25.45 + if [ -z "$1" -a -f "/var/run/$file" ]; then 25.46 + /etc/init.d/$daemon stop 25.47 + sleep 2 25.48 + fi 25.49 + if [ -z "$1" -a -f /etc/init.d/$daemon ]; then 25.50 + /etc/init.d/$daemon start 25.51 + fi 25.52 + done <<EOT 25.53 +apache apache/httpd.pid 25.54 +lighttpd lighttpd.pid 25.55 +EOT 25.56 +} 25.57 + 25.58 +# Pre and post remove commands for Tazpkg. 25.59 +pre_remove() 25.60 +{ 25.61 + sed -i '/.*=pdo_pgsql.so.*/d' /etc/php.ini 25.62 + 25.63 + # Start Web server. 25.64 + while read daemon file; do 25.65 + [ -z "$1" ] || continue 25.66 + if [ -z "$1" -a -f "/var/run/$file" ]; then 25.67 + /etc/init.d/$daemon stop 25.68 + sleep 2 25.69 + fi 25.70 + if [ -z "$1" -a -f /etc/init.d/$daemon ]; then 25.71 + /etc/init.d/$daemon start 25.72 + fi 25.73 + done <<EOT 25.74 +apache apache/httpd.pid 25.75 +lighttpd lighttpd.pid 25.76 +EOT 25.77 +}
26.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 26.2 +++ b/php-pear/receipt Mon Jun 02 00:34:56 2014 +0200 26.3 @@ -0,0 +1,54 @@ 26.4 +# SliTaz package receipt. 26.5 + 26.6 +PACKAGE="php-pear" 26.7 +VERSION="5.5.13" 26.8 +CATEGORY="development" 26.9 +SHORT_DESC="PHP web programming language pear libs." 26.10 +MAINTAINER="pascal.bellard@slitaz.org" 26.11 +LICENSE="BSD" 26.12 +WEB_SITE="http://www.php.net/" 26.13 +WANTED="php" 26.14 + 26.15 +DEPENDS="php-cli" 26.16 + 26.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 26.18 +genpkg_rules() 26.19 +{ 26.20 + mkdir -p $fs/usr/share $fs/usr/bin $fs/etc 26.21 + cp -a $install/usr/share/php $fs/usr/share 26.22 + cp -a $install/etc/pear.conf $fs/etc 26.23 + cp -a $install/usr/bin/pe* $fs/usr/bin 26.24 +} 26.25 + 26.26 +# Pre and post install commands for Tazpkg. 26.27 +pre_install() 26.28 +{ 26.29 + while read daemon file; do 26.30 + if [ -z "$1" -a -f "/var/run/$file" ]; then 26.31 + /etc/init.d/$daemon stop 26.32 + fi 26.33 + done <<EOT 26.34 +apache apache/httpd.pid 26.35 +lighttpd lighttpd.pid 26.36 +EOT 26.37 +} 26.38 + 26.39 +post_install() 26.40 +{ 26.41 + grep ^include_path $1/etc/php.ini 26.42 + sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' $1/etc/php.ini 26.43 + # Restart Web server. 26.44 + while read daemon file; do 26.45 + [ -z "$1" ] || continue 26.46 + if [ -f "/var/run/$file" ]; then 26.47 + /etc/init.d/$daemon stop 26.48 + sleep 2 26.49 + fi 26.50 + if [ -f /etc/init.d/$daemon ]; then 26.51 + /etc/init.d/$daemon start 26.52 + fi 26.53 + done <<EOT 26.54 +apache apache/httpd.pid 26.55 +lighttpd lighttpd.pid 26.56 +EOT 26.57 +}
27.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 27.2 +++ b/php-pgsql/receipt Mon Jun 02 00:34:56 2014 +0200 27.3 @@ -0,0 +1,74 @@ 27.4 +# SliTaz package receipt. 27.5 + 27.6 +PACKAGE="php-pgsql" 27.7 +VERSION="5.5.13" 27.8 +CATEGORY="development" 27.9 +SHORT_DESC="postgresql module for PHP web programming language." 27.10 +MAINTAINER="pascal.bellard@slitaz.org" 27.11 +LICENSE="BSD" 27.12 +WEB_SITE="http://www.php.net/" 27.13 +WANTED="php" 27.14 + 27.15 +DEPENDS="postgresql php" 27.16 + 27.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 27.18 +genpkg_rules() 27.19 +{ 27.20 + mkdir -p $fs/usr/share/php 27.21 + cp $(find $install | grep pgsql.so) $fs/usr/share/php/ 27.22 +} 27.23 + 27.24 +# Post and pre install commans to stop 27.25 +# and restart Web server if needed. 27.26 +pre_install() 27.27 +{ 27.28 + while read daemon file; do 27.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 27.30 + /etc/init.d/$daemon stop 27.31 + fi 27.32 + done <<EOT 27.33 +apache apache/httpd.pid 27.34 +lighttpd lighttpd.pid 27.35 +EOT 27.36 +} 27.37 + 27.38 +post_install() 27.39 +{ 27.40 + grep -q ^extension=pgsql.so $1/etc/php.ini || \ 27.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=pgsql.so|' -i $1/etc/php.ini 27.42 + # Start Web server. 27.43 + while read daemon file; do 27.44 + [ -z "$1" ] || continue 27.45 + if [ -f "/var/run/$file" ]; then 27.46 + /etc/init.d/$daemon stop 27.47 + sleep 2 27.48 + fi 27.49 + if [ -f /etc/init.d/$daemon ]; then 27.50 + /etc/init.d/$daemon start 27.51 + fi 27.52 + done <<EOT 27.53 +apache apache/httpd.pid 27.54 +lighttpd lighttpd.pid 27.55 +EOT 27.56 +} 27.57 + 27.58 +# Pre and post remove commands for Tazpkg. 27.59 +pre_remove() 27.60 +{ 27.61 + sed -i '/.*=pgsql.so.*/d' /etc/php.ini 27.62 + 27.63 + # Start Web server. 27.64 + while read daemon file; do 27.65 + [ -z "$1" ] || continue 27.66 + if [ -f "/var/run/$file" ]; then 27.67 + /etc/init.d/$daemon stop 27.68 + sleep 2 27.69 + fi 27.70 + if [ -f /etc/init.d/$daemon ]; then 27.71 + /etc/init.d/$daemon start 27.72 + fi 27.73 + done <<EOT 27.74 +apache apache/httpd.pid 27.75 +lighttpd lighttpd.pid 27.76 +EOT 27.77 +}
28.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 28.2 +++ b/php-snmp/receipt Mon Jun 02 00:34:56 2014 +0200 28.3 @@ -0,0 +1,74 @@ 28.4 +# SliTaz package receipt. 28.5 + 28.6 +PACKAGE="php-snmp" 28.7 +VERSION="5.5.13" 28.8 +CATEGORY="development" 28.9 +SHORT_DESC="snmp module for PHP web programming language." 28.10 +MAINTAINER="pascal.bellard@slitaz.org" 28.11 +LICENSE="BSD" 28.12 +WEB_SITE="http://www.php.net/" 28.13 +WANTED="php" 28.14 + 28.15 +DEPENDS="net-snmp php libcrypto" 28.16 + 28.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 28.18 +genpkg_rules() 28.19 +{ 28.20 + mkdir -p $fs/usr/share/php 28.21 + cp $(find $install | grep snmp.so) $fs/usr/share/php/ 28.22 +} 28.23 + 28.24 +# Post and pre install commans to stop 28.25 +# and restart Web server if needed. 28.26 +pre_install() 28.27 +{ 28.28 + while read daemon file; do 28.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 28.30 + /etc/init.d/$daemon stop 28.31 + fi 28.32 + done <<EOT 28.33 +apache apache/httpd.pid 28.34 +lighttpd lighttpd.pid 28.35 +EOT 28.36 +} 28.37 + 28.38 +post_install() 28.39 +{ 28.40 + grep -q ^extension=snmp.so $1/etc/php.ini || \ 28.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=snmp.so|' -i $1/etc/php.ini 28.42 + # Start Web server. 28.43 + while read daemon file; do 28.44 + [ -z "$1" ] || continue 28.45 + if [ -f "/var/run/$file" ]; then 28.46 + /etc/init.d/$daemon stop 28.47 + sleep 2 28.48 + fi 28.49 + if [ -f /etc/init.d/$daemon ]; then 28.50 + /etc/init.d/$daemon start 28.51 + fi 28.52 + done <<EOT 28.53 +apache apache/httpd.pid 28.54 +lighttpd lighttpd.pid 28.55 +EOT 28.56 +} 28.57 + 28.58 +# Pre and post remove commands for Tazpkg. 28.59 +pre_remove() 28.60 +{ 28.61 + sed -i '/.*=snmp.so.*/d' /etc/php.ini 28.62 + 28.63 + # Start Web server. 28.64 + while read daemon file; do 28.65 + [ -z "$1" ] || continue 28.66 + if [ -f "/var/run/$file" ]; then 28.67 + /etc/init.d/$daemon stop 28.68 + sleep 2 28.69 + fi 28.70 + if [ -f /etc/init.d/$daemon ]; then 28.71 + /etc/init.d/$daemon start 28.72 + fi 28.73 + done <<EOT 28.74 +apache apache/httpd.pid 28.75 +lighttpd lighttpd.pid 28.76 +EOT 28.77 +}
29.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 29.2 +++ b/php-soap/receipt Mon Jun 02 00:34:56 2014 +0200 29.3 @@ -0,0 +1,74 @@ 29.4 +# SliTaz package receipt. 29.5 + 29.6 +PACKAGE="php-soap" 29.7 +VERSION="5.5.13" 29.8 +CATEGORY="development" 29.9 +SHORT_DESC="soap module for PHP web programming language." 29.10 +MAINTAINER="pascal.bellard@slitaz.org" 29.11 +LICENSE="BSD" 29.12 +WEB_SITE="http://www.php.net/" 29.13 +WANTED="php" 29.14 + 29.15 +DEPENDS="php libxml2" 29.16 + 29.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 29.18 +genpkg_rules() 29.19 +{ 29.20 + mkdir -p $fs/usr/share/php 29.21 + cp $(find $install | grep soap.so) $fs/usr/share/php/ 29.22 +} 29.23 + 29.24 +# Post and pre install commans to stop 29.25 +# and restart Web server if needed. 29.26 +pre_install() 29.27 +{ 29.28 + while read daemon file; do 29.29 + if [ -z "$1" -a -f "/var/run/$file" ]; then 29.30 + /etc/init.d/$daemon stop 29.31 + fi 29.32 + done <<EOT 29.33 +apache apache/httpd.pid 29.34 +lighttpd lighttpd.pid 29.35 +EOT 29.36 +} 29.37 + 29.38 +post_install() 29.39 +{ 29.40 + grep -q ^extension=soap.so $1/etc/php.ini || \ 29.41 + sed -e 's|extension=msql.so|extension=msql.so\nextension=soap.so|' -i $1/etc/php.ini 29.42 + # Start Web server. 29.43 + while read daemon file; do 29.44 + [ -z "$1" ] || continue 29.45 + if [ -f "/var/run/$file" ]; then 29.46 + /etc/init.d/$daemon stop 29.47 + sleep 2 29.48 + fi 29.49 + if [ -f /etc/init.d/$daemon ]; then 29.50 + /etc/init.d/$daemon start 29.51 + fi 29.52 + done <<EOT 29.53 +apache apache/httpd.pid 29.54 +lighttpd lighttpd.pid 29.55 +EOT 29.56 +} 29.57 + 29.58 +# Pre and post remove commands for Tazpkg. 29.59 +pre_remove() 29.60 +{ 29.61 + sed -i '/.*=soap.so.*/d' /etc/php.ini 29.62 + 29.63 + # Start Web server. 29.64 + while read daemon file; do 29.65 + [ -z "$1" ] || continue 29.66 + if [ -f "/var/run/$file" ]; then 29.67 + /etc/init.d/$daemon stop 29.68 + sleep 2 29.69 + fi 29.70 + if [ -f /etc/init.d/$daemon ]; then 29.71 + /etc/init.d/$daemon start 29.72 + fi 29.73 + done <<EOT 29.74 +apache apache/httpd.pid 29.75 +lighttpd lighttpd.pid 29.76 +EOT 29.77 +}
30.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 30.2 +++ b/php-sqlite/receipt Mon Jun 02 00:34:56 2014 +0200 30.3 @@ -0,0 +1,62 @@ 30.4 +# SliTaz package receipt. 30.5 + 30.6 +PACKAGE="php-sqlite" 30.7 +VERSION="5.5.13" 30.8 +CATEGORY="development" 30.9 +SHORT_DESC="sqlite module for PHP web programming language." 30.10 +MAINTAINER="slaxemulator@gmail.com" 30.11 +LICENSE="BSD" 30.12 +WEB_SITE="http://www.php.net/" 30.13 +WANTED="php" 30.14 + 30.15 +DEPENDS="php sqlite" 30.16 + 30.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 30.18 +genpkg_rules() 30.19 +{ 30.20 + mkdir -p $fs/usr/share/php 30.21 + cp $(find $install | grep sqlite.so) $fs/usr/share/php/ 30.22 + cp $(find $install | grep sqlite3.so) $fs/usr/share/php/ 30.23 + cp $(find $install | grep pdo_sqlite.so) $fs/usr/share/php/ 30.24 +} 30.25 + 30.26 +post_install() 30.27 +{ 30.28 + grep -q ^extension=sqlite3.so $1/etc/php.ini || \ 30.29 + sed -e 's|extension=msql.so|extension=msql.so\nextension=sqlite3.so|' -i $1/etc/php.ini 30.30 + # Start Web server. 30.31 + while read daemon file; do 30.32 + [ -z "$1" ] || continue 30.33 + if [ -f "/var/run/$file" ]; then 30.34 + /etc/init.d/$daemon stop 30.35 + sleep 2 30.36 + fi 30.37 + if [ -f /etc/init.d/$daemon ]; then 30.38 + /etc/init.d/$daemon start 30.39 + fi 30.40 + done <<EOT 30.41 +apache apache/httpd.pid 30.42 +lighttpd lighttpd.pid 30.43 +EOT 30.44 +} 30.45 + 30.46 +# Pre and post remove commands for Tazpkg. 30.47 +pre_remove() 30.48 +{ 30.49 + sed -i '/.*=sqlite3.so.*/d' /etc/php.ini 30.50 + 30.51 + # Start Web server. 30.52 + while read daemon file; do 30.53 + [ -z "$1" ] || continue 30.54 + if [ -f "/var/run/$file" ]; then 30.55 + /etc/init.d/$daemon stop 30.56 + sleep 2 30.57 + fi 30.58 + if [ -f /etc/init.d/$daemon ]; then 30.59 + /etc/init.d/$daemon start 30.60 + fi 30.61 + done <<EOT 30.62 +apache apache/httpd.pid 30.63 +lighttpd lighttpd.pid 30.64 +EOT 30.65 +} 30.66 \ No newline at end of file