wok-current rev 18
Add : perl*, php, python
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Dec 18 13:37:19 2007 +0100 (2007-12-18) |
parents | 11b6c0dd4a0c |
children | 4bd82e9961cb |
files | perl-xml-parser/receipt perl-xml-simple/receipt perl/receipt php/receipt php/stuff/phpinfo/index.php php/stuff/pixmaps/php.png python-dev/receipt python/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/perl-xml-parser/receipt Tue Dec 18 13:37:19 2007 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="perl-xml-parser" 1.7 +VERSION="2.34" 1.8 +CATEGORY="extra" 1.9 +SHORT_DESC="XML::Parser module is a Perl extension interface to XML expat." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="perl" 1.12 +SOURCE="XML-Parser" 1.13 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://cpan.org/" 1.15 +WGET_URL="http://cpan.org/authors/id/M/MS/MSERGEANT/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + perl Makefile.PL 1.22 + make 1.23 + make DESTDIR=$PWD/_pkg install 1.24 +} 1.25 + 1.26 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.27 +genpkg_rules() 1.28 +{ 1.29 + mkdir -p $fs/usr 1.30 + cp -a $_pkg/usr/lib $fs/usr 1.31 +} 1.32 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/perl-xml-simple/receipt Tue Dec 18 13:37:19 2007 +0100 2.3 @@ -0,0 +1,29 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="perl-xml-simple" 2.7 +VERSION="2.18" 2.8 +CATEGORY="extra" 2.9 +SHORT_DESC="XML::Simple module is used to read and write XML." 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +DEPENDS="perl" 2.12 +SOURCE="XML-Simple" 2.13 +TARBALL="$SOURCE-$VERSION.tar.gz" 2.14 +WEB_SITE="http://cpan.org/" 2.15 +WGET_URL="http://cpan.org/authors/id/G/GR/GRANTM/$TARBALL" 2.16 + 2.17 +# Rules to configure and make the package. 2.18 +compile_rules() 2.19 +{ 2.20 + cd $src 2.21 + perl Makefile.PL 2.22 + make 2.23 + make DESTDIR=$PWD/_pkg install 2.24 +} 2.25 + 2.26 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.27 +genpkg_rules() 2.28 +{ 2.29 + mkdir -p $fs/usr 2.30 + cp -a $_pkg/usr/lib $fs/usr 2.31 +} 2.32 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/perl/receipt Tue Dec 18 13:37:19 2007 +0100 3.3 @@ -0,0 +1,40 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="perl" 3.7 +VERSION="5.8.8" 3.8 +CATEGORY="extra" 3.9 +SHORT_DESC="Full Perl interpreter and modules." 3.10 +MAINTAINER="pankso@slitaz.org" 3.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 3.12 +WEB_SITE="http://www.perl.org/" 3.13 +WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" 3.14 + 3.15 +# Rules to configure and make the package. 3.16 +# 3.17 +compile_rules() 3.18 +{ 3.19 + cd $src 3.20 + ./configure.gnu --prefix=/usr 3.21 + make 3.22 + make DESTDIR=$PWD/_pkg install 3.23 +} 3.24 + 3.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.26 +genpkg_rules() 3.27 +{ 3.28 + mkdir -p $fs/usr 3.29 + cp -a $_pkg/usr/bin $fs/usr 3.30 + cp -a $_pkg/usr/lib $fs/usr 3.31 + strip -s $fs/usr/bin/a2p 3.32 + strip -s $fs/usr/bin/perl 3.33 + strip -s $fs/usr/bin/perl5.8.8 3.34 +} 3.35 + 3.36 +# Pre install commands for Tazpkg. 3.37 +# Remove perl link to microperl if any. 3.38 +# 3.39 +pre_install() 3.40 +{ 3.41 + echo "Processing pre-install commands..." 3.42 + rm -f $1/usr/bin/perl 3.43 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/php/receipt Tue Dec 18 13:37:19 2007 +0100 4.3 @@ -0,0 +1,77 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="php" 4.7 +VERSION="5.2.4" 4.8 +CATEGORY="extra" 4.9 +SHORT_DESC="PHP web programming language." 4.10 +MAINTAINER="pankso@slitaz.org" 4.11 +DEPENDS="lighttpd" 4.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 4.13 +WEB_SITE="http://www.php.net/" 4.14 +WGET_URL="http://us2.php.net/distributions/$TARBALL" 4.15 + 4.16 +# Rules to configure and make the package. 4.17 +compile_rules() 4.18 +{ 4.19 + cd $src 4.20 + ./configure --prefix=/usr --sysconfdir=/etc \ 4.21 + --infodir=/usr/share/info --mandir=/usr/share/man \ 4.22 + $CONFIGURE_ARGS \ 4.23 + --enable-fastcgi \ 4.24 + --enable-discard-path \ 4.25 + --enable-force-cgi-redirect \ 4.26 + --enable-mbstring \ 4.27 + --with-config-file-path=/etc \ 4.28 + --with-zlib \ 4.29 + --disable-cli 4.30 + # to get a 2 Mb php-cgi binary. 4.31 + # 4.32 + #--disable-libxml \ 4.33 + #--disable-all 4.34 + make 4.35 +} 4.36 + 4.37 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.38 +genpkg_rules() 4.39 +{ 4.40 + mkdir -p $fs/usr/bin $fs/etc $fs/usr/share 4.41 + cp -a $src/sapi/cgi/php-cgi $fs/usr/bin 4.42 + strip -s $fs/usr/bin/* 4.43 + # Recommended config file, phpinfo and pixmaps. 4.44 + cp $src/php.ini-recommended $fs/etc/php.ini 4.45 + cp -a stuff/phpinfo $fs/usr/share 4.46 + cp -a stuff/pixmaps $fs/usr/share 4.47 +} 4.48 + 4.49 +# Post and pre install commans to stop 4.50 +# and restart Web server if needed. 4.51 +pre_install() 4.52 +{ 4.53 + local root 4.54 + root=$1 4.55 + if [ -f "$1/var/run/lighttpd.pid" ]; then 4.56 + /etc/init.d/lighttpd stop 4.57 + fi 4.58 + # Backup existing php.ini 4.59 + if [ -f "$1/etc/php.ini" ]; then 4.60 + echo -n "Creating php.ini backup..." 4.61 + cp $1/etc/php.ini $1/etc/php.ini.bak 4.62 + status 4.63 + fi 4.64 +} 4.65 +post_install() 4.66 +{ 4.67 + local root 4.68 + root=$1 4.69 + # Restore original php.ini 4.70 + if [ -f "$1/etc/php.ini.bak" ]; then 4.71 + echo -n "Restoring php.ini backup..." 4.72 + mv -f $1/etc/php.ini.bak $1/etc/php.ini 4.73 + status 4.74 + fi 4.75 + # Start Web server. 4.76 + if [ ! -f "/var/run/lighttpd.pid" ]; then 4.77 + /etc/init.d/lighttpd start 4.78 + fi 4.79 +} 4.80 +
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/php/stuff/phpinfo/index.php Tue Dec 18 13:37:19 2007 +0100 5.3 @@ -0,0 +1,4 @@ 5.4 +<?php 5.5 +phpinfo(); 5.6 +?> 5.7 +
6.1 Binary file php/stuff/pixmaps/php.png has changed
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/python-dev/receipt Tue Dec 18 13:37:19 2007 +0100 7.3 @@ -0,0 +1,20 @@ 7.4 +# SliTaz package receipt. 7.5 + 7.6 +PACKAGE="python-dev" 7.7 +VERSION="2.5.1" 7.8 +CATEGORY="extra" 7.9 +SHORT_DESC="The Python programming language devel files." 7.10 +MAINTAINER="pankso@slitaz.org" 7.11 +WANTED="python" 7.12 +SOURCE="Python" 7.13 +WEB_SITE="http://www.python.org/" 7.14 + 7.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 7.16 +genpkg_rules() 7.17 +{ 7.18 + mkdir -p $fs/usr/bin 7.19 + cp -a $WOK/$WANTED/$SOURCE-$VERSION/_pkg/usr/include $fs/usr 7.20 + cp -a $WOK/$WANTED/$SOURCE-$VERSION/_pkg/usr/bin/*-config $fs/usr/bin 7.21 + chmod 755 $fs/usr/bin/*-config 7.22 +} 7.23 +
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 8.2 +++ b/python/receipt Tue Dec 18 13:37:19 2007 +0100 8.3 @@ -0,0 +1,38 @@ 8.4 +# SliTaz package receipt. 8.5 + 8.6 +PACKAGE="python" 8.7 +VERSION="2.5.1" 8.8 +CATEGORY="extra" 8.9 +SHORT_DESC="The Python programming language." 8.10 +MAINTAINER="pankso@slitaz.org" 8.11 +SOURCE="Python" 8.12 +TARBALL="$SOURCE-$VERSION.tar.bz2" 8.13 +WEB_SITE="http://www.python.org/" 8.14 +WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL" 8.15 + 8.16 +# Rules to configure and make the package. 8.17 +compile_rules() 8.18 +{ 8.19 + cd $src 8.20 + ./configure --enable-shared --with-ncurses \ 8.21 + --prefix=/usr --infodir=/usr/share/info \ 8.22 + --mandir=/usr/share/man $CONFIGURE_ARGS 8.23 + make 8.24 + make DESTDIR=$PWD/_pkg install 8.25 +} 8.26 + 8.27 +# Rules to gen a SliTaz package suitable for Tazpkg. 8.28 +genpkg_rules() 8.29 +{ 8.30 + mkdir -p $fs/usr 8.31 + cp -a $_pkg/usr/bin $fs/usr 8.32 + cp -a $_pkg/usr/lib $fs/usr 8.33 + rm -f $fs/usr/bin/*-config 8.34 + strip -s $fs/usr/bin/* 2>/dev/null 8.35 + strip -s $fs/usr/lib/*.so* 2>/dev/null 8.36 + 8.37 + # Python can be symlink to python2.5 ??? 8.38 + #cd $fs/usr/bin 8.39 + #rm python && ln -s python2.5 python 8.40 +} 8.41 +