# HG changeset patch # User Pascal Bellard # Date 1291750580 -3600 # Node ID 60c1bda8273085e1a7fb05e5ca0151d2422adaf4 # Parent e685446dbf9ad04bfcb665ca4ae862faf64fe49c Add php-dbase diff -r e685446dbf9a -r 60c1bda82730 php-dbase/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php-dbase/receipt Tue Dec 07 20:36:20 2010 +0100 @@ -0,0 +1,68 @@ +# SliTaz package receipt. + +PACKAGE="php-dbase" +VERSION="5.2.14" +CATEGORY="development" +SHORT_DESC="dbase 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 dbase.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 <