# HG changeset patch # User Pascal Bellard # Date 1344944352 -7200 # Node ID e63e58bfd4120cc44df29727682fe51e91c203f9 # Parent eb36f0d250b48cb436c1ab1895c1d5058bd1e380 Move from undigest: phpsysinfo diff -r eb36f0d250b4 -r e63e58bfd412 phpsysinfo/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phpsysinfo/receipt Tue Aug 14 13:39:12 2012 +0200 @@ -0,0 +1,77 @@ +# SliTaz package receipt. + +PACKAGE="phpsysinfo" +VERSION="3.0.18" +CATEGORY="misc" +SHORT_DESC="Displays information about your system nicely." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://phpsysinfo.sourceforge.net/" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" +CONFIG_FILES="/etc/phpsysinfo.conf" + +DEPENDS="php pcre-dev" +BUILD_DEPENDS="" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + # SliTazisation from http://enira.net/?p=61 + sed -i "s/'-q'/'-a | grep -i pts -c'/" includes/os/class.Linux.inc.php + grep -i slitaz data/distros.ini || cat >> data/distros.ini < "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpsysinfo/" => "/usr/share/phpsysinfo/",|g' -i $1/etc/lighttpd/lighttpd.conf + if [ -z "$1" ]; then + # Start Web server. + /etc/init.d/lighttpd stop + /etc/init.d/lighttpd start + fi + fi + fi + # Configure apache server + if [ -f $1/etc/apache/httpd.conf ]; then + if [ ! -f $1/etc/apache/conf.d/phpsysinfo ]; then + cat > $1/etc/apache/conf.d/phpsysinfo < + Alias /phpsysinfo /usr/share/phpsysinfo + + + DirectoryIndex index.php + Options +FollowSymLinks + AllowOverride None + Order allow,deny + Allow from all + +EOT + if [ -z "$1" ]; then + # Start Web server. + /etc/init.d/apache stop + /etc/init.d/apache start + fi + fi + fi +}