# HG changeset patch # User Pascal Bellard # Date 1248881201 -7200 # Node ID 04d5b547a88ef4c668dc3a8f591fe488997abf03 # Parent 2927081919c91b0c0f8c1000757304cc936f1d0b Add php-dba diff -r 2927081919c9 -r 04d5b547a88e php-dba/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php-dba/receipt Wed Jul 29 17:26:41 2009 +0200 @@ -0,0 +1,68 @@ +# SliTaz package receipt. + +PACKAGE="php-dba" +VERSION="5.2.9" +CATEGORY="development" +SHORT_DESC="dba module for PHP web programming language." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.php.net/" +WANTED="php" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/php + cp $(find $_pkg | grep dba.so) $fs/usr/share/php/ +} + +# Post and pre install commans to stop +# and restart Web server if needed. +pre_install() +{ + while read daemon file; do + if [ -z "$1" -a -f "/var/run/$file" ]; then + /etc/init.d/$daemon stop + fi + done <