# HG changeset patch # User Eric Joseph-Alexandre # Date 1240235623 -7200 # Node ID 0ba9952c06ab4930c2be0f3e3c9738ae8e00c00f # Parent 67aee837278b0d341f0245b9d4784fde7c892b74 Add openssl support for PHP + php-openssl diff -r 67aee837278b -r 0ba9952c06ab php-openssl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php-openssl/receipt Mon Apr 20 15:53:43 2009 +0200 @@ -0,0 +1,69 @@ +# SliTaz package receipt. + +PACKAGE="php-openssl" +VERSION="5.2.9" +CATEGORY="development" +SHORT_DESC="Openssl 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 openssl.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 <