# HG changeset patch # User Pascal Bellard # Date 1243608241 -7200 # Node ID e5347dcfd3a555f2822948fd04593c22c2bdec75 # Parent 4cd615959f41742544dd6489ae4132e3b45e9a13 Add php-snmp diff -r 4cd615959f41 -r e5347dcfd3a5 php-snmp/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php-snmp/receipt Fri May 29 16:44:01 2009 +0200 @@ -0,0 +1,69 @@ +# SliTaz package receipt. + +PACKAGE="php-snmp" +VERSION="5.2.9" +CATEGORY="development" +SHORT_DESC="snmp module for PHP web programming language." +MAINTAINER="pascal.bellard@slitaz.org" +DEPENDS="net-snmp php libcrypto" +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 snmp.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 <