# HG changeset patch # User Pascal Bellard # Date 1222243852 0 # Node ID 12531da22255bd07bd5df70c1e80c619677a0689 # Parent bd6a02acbdf99f4b74e4f505a4b5c7a61100cd9c Add php-cups diff -r bd6a02acbdf9 -r 12531da22255 php-cups/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php-cups/receipt Wed Sep 24 08:10:52 2008 +0000 @@ -0,0 +1,48 @@ +# SliTaz package receipt." + +PACKAGE="php-cups" +VERSION="1.3.7" +CATEGORY="development" +SHORT_DESC="Common UNIX Printing System bindings for php." +MAINTAINER="pascal.bellard@slitaz.org" +DEPENDS="cups" +WANTED="cups" +WEB_SITE="http://www.cups.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/php + cp $(find $_pkg | grep phpcups.so) $fs/usr/share/php/cups.so +} + +# 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 <