# HG changeset patch # User Pascal Bellard # Date 1219996779 0 # Node ID 0db2ef809433b2422f0693e01e2a3c6f137e1a93 # Parent 4ef973ba95a4c3a17183bb58c346e3bf973af49a Add php-imap, php-mhash diff -r 4ef973ba95a4 -r 0db2ef809433 php-imap/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php-imap/receipt Fri Aug 29 07:59:39 2008 +0000 @@ -0,0 +1,48 @@ +# SliTaz package receipt. + +PACKAGE="php-imap" +VERSION="5.2.5" +CATEGORY="development" +SHORT_DESC="imap module for PHP web programming language." +MAINTAINER="pascal.bellard@slitaz.org" +DEPENDS="php openssl" +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 imap.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 <