wok-6.x rev 8776
Up: tazwok (4.0) - New function, improvement and use each time a clean chroot to build package
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 22 13:00:23 2011 +0100 (2011-02-22) |
parents | ca57e8529d1c |
children | 978398096ad8 |
files | tazwok-experimental/receipt tazwok/receipt |
line diff
1.1 --- a/tazwok-experimental/receipt Mon Feb 21 19:48:39 2011 +0100 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,72 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="tazwok-experimental" 1.7 -VERSION="0.0.7.2" 1.8 -CATEGORY="base-system" 1.9 -SHORT_DESC="SliTaz sources and binaries packages cooker." 1.10 -MAINTAINER="gokhlayeh@slitaz.org" 1.11 -DEPENDS="busybox libtaz" 1.12 -SUGGESTED="tazchroot" 1.13 -TARBALL="$VERSION.tar.bz2" 1.14 -WEB_SITE="http://www.slitaz.org/" 1.15 -# Use mercurial until tarball is mirrored. 1.16 -#WGET_URL="http://mirror.slitaz.org/sources/$PACKAGE/$TARBALL" 1.17 -BUILD_DEPENDS="wget" 1.18 -WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2" 1.19 -CONFIG_FILES="/etc/slitaz/tazwok.conf" 1.20 -PROVIDE="tazwok" 1.21 -TAGS="slitaz" 1.22 - 1.23 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.24 -genpkg_rules() 1.25 -{ 1.26 - mkdir -p $fs/usr/bin $fs/usr/share/doc/tazwok \ 1.27 - $fs/etc/slitaz $fs/usr/share/slitaz/web-bb \ 1.28 - $fs/usr/lib/slitaz/chroot-scripts 1.29 - # Copy Tazwok, doc and examples. 1.30 - cp -a $src/tazwok $fs/usr/bin 1.31 - cp -a $src/update-repository $fs/usr/bin 1.32 - chmod 755 $fs/usr/bin/tazwok 1.33 - cp -a $src/doc/* $fs/usr/share/doc/tazwok 1.34 - cp -a $src/applications $fs/usr/share 1.35 - # Config file 1.36 - cp -a $src/examples/tazwok.conf $fs/etc/slitaz 1.37 - cp -a $src/examples/config.site $fs/etc 1.38 - # Webserver stuff 1.39 - cp -a $src/web/* $fs/usr/share/slitaz/web-bb 1.40 - # Chroot scripts 1.41 - cp -a $src/chroot-scripts $fs/usr/lib/slitaz/chroot-scripts/tazwok 1.42 -} 1.43 - 1.44 -post_install() 1.45 -{ 1.46 - echo -e "\\033[1;31mWARNING WARNING WARGNING 1.47 -You should run update-repository on all repositories you used with \ 1.48 -tazwok-experimental until there.This script change sources names, \ 1.49 -generate sources.list and modify logs to make you're repository \ 1.50 -consistent with last changes. 1.51 - 1.52 -Usage is: 1.53 -update-repository LOCAL_REPOSITORY 1.54 - 1.55 -Exemple: 1.56 -update-repository /home/slitaz/experimental 1.57 - 1.58 -You should also update you're tazchroot.conf as some path has changed. 1.59 -To do that use: 1.60 - 1.61 -tazwok configure-chroot 1.62 - 1.63 -You should also update you're tazwok.conf (global and local) if you \ 1.64 -to use update-wok function. 1.65 - 1.66 -To find locals tazwok.conf: 1.67 -echo $SLITAZ_DIR/*/tazwok.conf 1.68 - 1.69 -Add theses variables to the configuration file (change pathes if needed): 1.70 -WOK_UPDATE_METHOD=\"hg\" 1.71 -TARBALL_WOK=\"http://hg.slitaz.org/wok/archive/tip.tar.bz2\" 1.72 -HG_WOK=\"http://hg.slitaz.org/wok\" 1.73 - 1.74 -Sorry for this ;)\\033[0m" | fold -s 1.75 -}
2.1 --- a/tazwok/receipt Mon Feb 21 19:48:39 2011 +0100 2.2 +++ b/tazwok/receipt Tue Feb 22 13:00:23 2011 +0100 2.3 @@ -1,11 +1,13 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="tazwok" 2.7 -VERSION="3.2.1" 2.8 +VERSION="4.0" 2.9 CATEGORY="base-system" 2.10 SHORT_DESC="SliTaz sources and binaries packages cooker." 2.11 MAINTAINER="pankso@slitaz.org" 2.12 TARBALL="$PACKAGE-$VERSION.tar.gz" 2.13 +DEPENDS="busybox tazchroot" 2.14 +SUGGESTED="tazchroot" 2.15 WEB_SITE="http://www.slitaz.org/" 2.16 WGET_URL="http://mirror.slitaz.org/sources/tazwok/$TARBALL" 2.17 TAGS="slitaz" 2.18 @@ -13,13 +15,19 @@ 2.19 # Rules to gen a SliTaz package suitable for Tazpkg. 2.20 genpkg_rules() 2.21 { 2.22 - mkdir -p $fs/usr/bin \ 2.23 - $fs/usr/share/doc/tazwok $fs/etc 2.24 + mkdir -p $fs/usr/bin $fs/usr/share/doc/tazwok \ 2.25 + $fs/etc/slitaz $fs/usr/share/slitaz/web-bb \ 2.26 + $fs/usr/lib/slitaz/chroot-scripts 2.27 # Copy Tazwok, doc and examples. 2.28 cp -a $src/tazwok $fs/usr/bin 2.29 chmod 755 $fs/usr/bin/tazwok 2.30 cp -a $src/doc/* $fs/usr/share/doc/tazwok 2.31 cp -a $src/applications $fs/usr/share 2.32 # Config file 2.33 - cp -a $src/examples/tazwok.conf $fs/etc 2.34 + cp -a $src/examples/tazwok.conf $fs/etc/slitaz 2.35 + cp -a $src/examples/config.site $fs/etc 2.36 + # Webserver stuff 2.37 + cp -a $src/web/* $fs/usr/share/slitaz/web-bb 2.38 + # Chroot scripts 2.39 + cp -a $src/chroot-scripts $fs/usr/lib/slitaz/chroot-scripts/tazwok 2.40 }