# HG changeset patch # User Christophe Lincoln # Date 1197981439 -3600 # Node ID 8d79fbb0f566c031392b9441442a7af12c2b70f3 # Parent 11b6c0dd4a0cd0d9ca8948b5ae03da85125dd523 Add : perl*, php, python diff -r 11b6c0dd4a0c -r 8d79fbb0f566 perl-xml-parser/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perl-xml-parser/receipt Tue Dec 18 13:37:19 2007 +0100 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="perl-xml-parser" +VERSION="2.34" +CATEGORY="extra" +SHORT_DESC="XML::Parser module is a Perl extension interface to XML expat." +MAINTAINER="pankso@slitaz.org" +DEPENDS="perl" +SOURCE="XML-Parser" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://cpan.org/" +WGET_URL="http://cpan.org/authors/id/M/MS/MSERGEANT/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + perl Makefile.PL + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/lib $fs/usr +} + diff -r 11b6c0dd4a0c -r 8d79fbb0f566 perl-xml-simple/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perl-xml-simple/receipt Tue Dec 18 13:37:19 2007 +0100 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="perl-xml-simple" +VERSION="2.18" +CATEGORY="extra" +SHORT_DESC="XML::Simple module is used to read and write XML." +MAINTAINER="pankso@slitaz.org" +DEPENDS="perl" +SOURCE="XML-Simple" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://cpan.org/" +WGET_URL="http://cpan.org/authors/id/G/GR/GRANTM/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + perl Makefile.PL + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/lib $fs/usr +} + diff -r 11b6c0dd4a0c -r 8d79fbb0f566 perl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perl/receipt Tue Dec 18 13:37:19 2007 +0100 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="perl" +VERSION="5.8.8" +CATEGORY="extra" +SHORT_DESC="Full Perl interpreter and modules." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.perl.org/" +WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" + +# Rules to configure and make the package. +# +compile_rules() +{ + cd $src + ./configure.gnu --prefix=/usr + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + strip -s $fs/usr/bin/a2p + strip -s $fs/usr/bin/perl + strip -s $fs/usr/bin/perl5.8.8 +} + +# Pre install commands for Tazpkg. +# Remove perl link to microperl if any. +# +pre_install() +{ + echo "Processing pre-install commands..." + rm -f $1/usr/bin/perl +} diff -r 11b6c0dd4a0c -r 8d79fbb0f566 php/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php/receipt Tue Dec 18 13:37:19 2007 +0100 @@ -0,0 +1,77 @@ +# SliTaz package receipt. + +PACKAGE="php" +VERSION="5.2.4" +CATEGORY="extra" +SHORT_DESC="PHP web programming language." +MAINTAINER="pankso@slitaz.org" +DEPENDS="lighttpd" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.php.net/" +WGET_URL="http://us2.php.net/distributions/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --sysconfdir=/etc \ + --infodir=/usr/share/info --mandir=/usr/share/man \ + $CONFIGURE_ARGS \ + --enable-fastcgi \ + --enable-discard-path \ + --enable-force-cgi-redirect \ + --enable-mbstring \ + --with-config-file-path=/etc \ + --with-zlib \ + --disable-cli + # to get a 2 Mb php-cgi binary. + # + #--disable-libxml \ + #--disable-all + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/etc $fs/usr/share + cp -a $src/sapi/cgi/php-cgi $fs/usr/bin + strip -s $fs/usr/bin/* + # Recommended config file, phpinfo and pixmaps. + cp $src/php.ini-recommended $fs/etc/php.ini + cp -a stuff/phpinfo $fs/usr/share + cp -a stuff/pixmaps $fs/usr/share +} + +# Post and pre install commans to stop +# and restart Web server if needed. +pre_install() +{ + local root + root=$1 + if [ -f "$1/var/run/lighttpd.pid" ]; then + /etc/init.d/lighttpd stop + fi + # Backup existing php.ini + if [ -f "$1/etc/php.ini" ]; then + echo -n "Creating php.ini backup..." + cp $1/etc/php.ini $1/etc/php.ini.bak + status + fi +} +post_install() +{ + local root + root=$1 + # Restore original php.ini + if [ -f "$1/etc/php.ini.bak" ]; then + echo -n "Restoring php.ini backup..." + mv -f $1/etc/php.ini.bak $1/etc/php.ini + status + fi + # Start Web server. + if [ ! -f "/var/run/lighttpd.pid" ]; then + /etc/init.d/lighttpd start + fi +} + diff -r 11b6c0dd4a0c -r 8d79fbb0f566 php/stuff/phpinfo/index.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php/stuff/phpinfo/index.php Tue Dec 18 13:37:19 2007 +0100 @@ -0,0 +1,4 @@ + + diff -r 11b6c0dd4a0c -r 8d79fbb0f566 php/stuff/pixmaps/php.png Binary file php/stuff/pixmaps/php.png has changed diff -r 11b6c0dd4a0c -r 8d79fbb0f566 python-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-dev/receipt Tue Dec 18 13:37:19 2007 +0100 @@ -0,0 +1,20 @@ +# SliTaz package receipt. + +PACKAGE="python-dev" +VERSION="2.5.1" +CATEGORY="extra" +SHORT_DESC="The Python programming language devel files." +MAINTAINER="pankso@slitaz.org" +WANTED="python" +SOURCE="Python" +WEB_SITE="http://www.python.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp -a $WOK/$WANTED/$SOURCE-$VERSION/_pkg/usr/include $fs/usr + cp -a $WOK/$WANTED/$SOURCE-$VERSION/_pkg/usr/bin/*-config $fs/usr/bin + chmod 755 $fs/usr/bin/*-config +} + diff -r 11b6c0dd4a0c -r 8d79fbb0f566 python/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/receipt Tue Dec 18 13:37:19 2007 +0100 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="python" +VERSION="2.5.1" +CATEGORY="extra" +SHORT_DESC="The Python programming language." +MAINTAINER="pankso@slitaz.org" +SOURCE="Python" +TARBALL="$SOURCE-$VERSION.tar.bz2" +WEB_SITE="http://www.python.org/" +WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --enable-shared --with-ncurses \ + --prefix=/usr --infodir=/usr/share/info \ + --mandir=/usr/share/man $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + rm -f $fs/usr/bin/*-config + strip -s $fs/usr/bin/* 2>/dev/null + strip -s $fs/usr/lib/*.so* 2>/dev/null + + # Python can be symlink to python2.5 ??? + #cd $fs/usr/bin + #rm python && ln -s python2.5 python +} +