wok rev 1324

Add php-imap, php-mhash
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 29 07:59:39 2008 +0000 (2008-08-29)
parents 4ef973ba95a4
children cf2ce55f4ea3
files php-imap/receipt php-mhash/receipt php/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/php-imap/receipt	Fri Aug 29 07:59:39 2008 +0000
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="php-imap"
     1.7 +VERSION="5.2.5"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="imap module for PHP web programming language."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +DEPENDS="php openssl"
    1.12 +WEB_SITE="http://www.php.net/"
    1.13 +WANTED="php"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/share/php
    1.19 +	cp $(find $_pkg | grep imap.so) $fs/usr/share/php/
    1.20 +}
    1.21 +
    1.22 +# Post and pre install commans to stop
    1.23 +# and restart Web server if needed.
    1.24 +pre_install()
    1.25 +{
    1.26 +	while read daemon file; do
    1.27 +		if [ -z "$1" -a -f "/var/run/$file" ]; then
    1.28 +			/etc/init.d/$daemon stop
    1.29 +		fi
    1.30 +	done <<EOT
    1.31 +apache apache/httpd.pid
    1.32 +lighttpd lighttpd.pid
    1.33 +EOT
    1.34 +}
    1.35 +
    1.36 +post_install()
    1.37 +{
    1.38 +	grep -q ^extension=msql.so $1/etc/php.ini || \
    1.39 +	    sed -e 's|;.*extension=msql.so|;   extension=msql.so\nextension=imap.so|' -i $1/etc/php.ini
    1.40 +	# Start Web server.
    1.41 +	while read daemon file; do
    1.42 +		if [ -z "$1" -a -f /etc/init.d/$daemon \
    1.43 +			     -a ! -f "/var/run/$file" ]; then
    1.44 +			/etc/init.d/$daemon start
    1.45 +		fi
    1.46 +	done <<EOT
    1.47 +apache apache/httpd.pid
    1.48 +lighttpd lighttpd.pid
    1.49 +EOT
    1.50 +}
    1.51 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/php-mhash/receipt	Fri Aug 29 07:59:39 2008 +0000
     2.3 @@ -0,0 +1,48 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="php-mhash"
     2.7 +VERSION="5.2.5"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="mhash module for PHP web programming language."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +DEPENDS="php mhash"
    2.12 +WEB_SITE="http://www.php.net/"
    2.13 +WANTED="php"
    2.14 +
    2.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.16 +genpkg_rules()
    2.17 +{
    2.18 +	mkdir -p $fs/usr/share/php
    2.19 +	cp $(find $_pkg | grep mhash.so) $fs/usr/share/php/
    2.20 +}
    2.21 +
    2.22 +# Post and pre install commans to stop
    2.23 +# and restart Web server if needed.
    2.24 +pre_install()
    2.25 +{
    2.26 +	while read daemon file; do
    2.27 +		if [ -z "$1" -a -f "/var/run/$file" ]; then
    2.28 +			/etc/init.d/$daemon stop
    2.29 +		fi
    2.30 +	done <<EOT
    2.31 +apache apache/httpd.pid
    2.32 +lighttpd lighttpd.pid
    2.33 +EOT
    2.34 +}
    2.35 +
    2.36 +post_install()
    2.37 +{
    2.38 +	grep -q ^extension=msql.so $1/etc/php.ini || \
    2.39 +	    sed -e 's|;.*extension=msql.so|;   extension=msql.so\nextension=mhash.so|' -i $1/etc/php.ini
    2.40 +	# Start Web server.
    2.41 +	while read daemon file; do
    2.42 +		if [ -z "$1" -a -f /etc/init.d/$daemon \
    2.43 +			     -a ! -f "/var/run/$file" ]; then
    2.44 +			/etc/init.d/$daemon start
    2.45 +		fi
    2.46 +	done <<EOT
    2.47 +apache apache/httpd.pid
    2.48 +lighttpd lighttpd.pid
    2.49 +EOT
    2.50 +}
    2.51 +
     3.1 --- a/php/receipt	Fri Aug 29 07:55:20 2008 +0000
     3.2 +++ b/php/receipt	Fri Aug 29 07:59:39 2008 +0000
     3.3 @@ -6,7 +6,9 @@
     3.4  SHORT_DESC="PHP web programming language."
     3.5  MAINTAINER="pankso@slitaz.org"
     3.6  DEPENDS="php-common lighttpd zlib libxml2 sqlite"
     3.7 -BUILD_DEPENDS="sqlite-dev libxml2-dev zlib-dev mysql-dev postgresql postgresql-dev gettext openssl-dev apache-dev apache"
     3.8 +BUILD_DEPENDS="sqlite-dev libxml2-dev zlib-dev mysql-dev \
     3.9 +postgresql postgresql-dev gettext openssl-dev apache-dev apache \
    3.10 +c-client mhash mhash-dev"
    3.11  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    3.12  WEB_SITE="http://www.php.net/"
    3.13  WGET_URL="http://us2.php.net/distributions/$TARBALL"
    3.14 @@ -28,9 +30,11 @@
    3.15  --with-config-file-path=/etc \
    3.16  --with-zlib \
    3.17  --with-gettext \
    3.18 ---with-mysql=shared,usr \
    3.19 ---with-pgsql=shared,usr \
    3.20 +--with-mysql=shared,/usr \
    3.21 +--with-pgsql=shared,/usr \
    3.22  --with-ldap=shared \
    3.23 +--with-imap=shared --with-imap-ssl \
    3.24 +--with-mhash=shared \
    3.25  --disable-cli"
    3.26  	./configure $COMMON_ARGS $CONFIGURE_ARGS && \
    3.27  	make && make INSTALL_ROOT=$PWD/_pkg install