# HG changeset patch # User Rohit Joshi # Date 1273509628 14400 # Node ID a9172a0b831d493565a28c2b6849fca0658a85cf # Parent 63221aff137b4cdc0ea92041516df018690daf52 Add php-curl (new depends for enabling themes and plugins in vanilla2 RC1 forum release) diff -r 63221aff137b -r a9172a0b831d php-curl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php-curl/receipt Mon May 10 12:40:28 2010 -0400 @@ -0,0 +1,69 @@ +# SliTaz package receipt. + +PACKAGE="php-curl" +VERSION="5.2.11" +CATEGORY="development" +SHORT_DESC="curl module for PHP web programming language." +MAINTAINER="jozee@slitaz.org" +DEPENDS="curl 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 curl.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 <