# HG changeset patch # User Pascal Bellard # Date 1228929485 0 # Node ID 8c915f6623951467a59754e7b6cb34296161dda2 # Parent 48f3aae6576913afae053eda2cb8c48abf3e2d8f Add php-odbc diff -r 48f3aae65769 -r 8c915f662395 php-odbc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php-odbc/receipt Wed Dec 10 17:18:05 2008 +0000 @@ -0,0 +1,69 @@ +# SliTaz package receipt. + +PACKAGE="php-odbc" +VERSION="5.2.5" +CATEGORY="development" +SHORT_DESC="ODBC module for PHP web programming language." +MAINTAINER="pascal.bellard@slitaz.org" +DEPENDS="unixODBC php" +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 odbc.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 <