# HG changeset patch # User Christophe Lincoln # Date 1298376023 -3600 # Node ID 38db9b49ee7185df3390c80e0e3870606bd0d5f5 # Parent ca57e8529d1cb47dfe2bc63d48394d0ab7d3a8e9 Up: tazwok (4.0) - New function, improvement and use each time a clean chroot to build package diff -r ca57e8529d1c -r 38db9b49ee71 tazwok-experimental/receipt --- a/tazwok-experimental/receipt Mon Feb 21 19:48:39 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="tazwok-experimental" -VERSION="0.0.7.2" -CATEGORY="base-system" -SHORT_DESC="SliTaz sources and binaries packages cooker." -MAINTAINER="gokhlayeh@slitaz.org" -DEPENDS="busybox libtaz" -SUGGESTED="tazchroot" -TARBALL="$VERSION.tar.bz2" -WEB_SITE="http://www.slitaz.org/" -# Use mercurial until tarball is mirrored. -#WGET_URL="http://mirror.slitaz.org/sources/$PACKAGE/$TARBALL" -BUILD_DEPENDS="wget" -WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2" -CONFIG_FILES="/etc/slitaz/tazwok.conf" -PROVIDE="tazwok" -TAGS="slitaz" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/bin $fs/usr/share/doc/tazwok \ - $fs/etc/slitaz $fs/usr/share/slitaz/web-bb \ - $fs/usr/lib/slitaz/chroot-scripts - # Copy Tazwok, doc and examples. - cp -a $src/tazwok $fs/usr/bin - cp -a $src/update-repository $fs/usr/bin - chmod 755 $fs/usr/bin/tazwok - cp -a $src/doc/* $fs/usr/share/doc/tazwok - cp -a $src/applications $fs/usr/share - # Config file - cp -a $src/examples/tazwok.conf $fs/etc/slitaz - cp -a $src/examples/config.site $fs/etc - # Webserver stuff - cp -a $src/web/* $fs/usr/share/slitaz/web-bb - # Chroot scripts - cp -a $src/chroot-scripts $fs/usr/lib/slitaz/chroot-scripts/tazwok -} - -post_install() -{ - echo -e "\\033[1;31mWARNING WARNING WARGNING -You should run update-repository on all repositories you used with \ -tazwok-experimental until there.This script change sources names, \ -generate sources.list and modify logs to make you're repository \ -consistent with last changes. - -Usage is: -update-repository LOCAL_REPOSITORY - -Exemple: -update-repository /home/slitaz/experimental - -You should also update you're tazchroot.conf as some path has changed. -To do that use: - -tazwok configure-chroot - -You should also update you're tazwok.conf (global and local) if you \ -to use update-wok function. - -To find locals tazwok.conf: -echo $SLITAZ_DIR/*/tazwok.conf - -Add theses variables to the configuration file (change pathes if needed): -WOK_UPDATE_METHOD=\"hg\" -TARBALL_WOK=\"http://hg.slitaz.org/wok/archive/tip.tar.bz2\" -HG_WOK=\"http://hg.slitaz.org/wok\" - -Sorry for this ;)\\033[0m" | fold -s -} diff -r ca57e8529d1c -r 38db9b49ee71 tazwok/receipt --- a/tazwok/receipt Mon Feb 21 19:48:39 2011 +0100 +++ b/tazwok/receipt Tue Feb 22 13:00:23 2011 +0100 @@ -1,11 +1,13 @@ # SliTaz package receipt. PACKAGE="tazwok" -VERSION="3.2.1" +VERSION="4.0" CATEGORY="base-system" SHORT_DESC="SliTaz sources and binaries packages cooker." MAINTAINER="pankso@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" +DEPENDS="busybox tazchroot" +SUGGESTED="tazchroot" WEB_SITE="http://www.slitaz.org/" WGET_URL="http://mirror.slitaz.org/sources/tazwok/$TARBALL" TAGS="slitaz" @@ -13,13 +15,19 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/bin \ - $fs/usr/share/doc/tazwok $fs/etc + mkdir -p $fs/usr/bin $fs/usr/share/doc/tazwok \ + $fs/etc/slitaz $fs/usr/share/slitaz/web-bb \ + $fs/usr/lib/slitaz/chroot-scripts # Copy Tazwok, doc and examples. cp -a $src/tazwok $fs/usr/bin chmod 755 $fs/usr/bin/tazwok cp -a $src/doc/* $fs/usr/share/doc/tazwok cp -a $src/applications $fs/usr/share # Config file - cp -a $src/examples/tazwok.conf $fs/etc + cp -a $src/examples/tazwok.conf $fs/etc/slitaz + cp -a $src/examples/config.site $fs/etc + # Webserver stuff + cp -a $src/web/* $fs/usr/share/slitaz/web-bb + # Chroot scripts + cp -a $src/chroot-scripts $fs/usr/lib/slitaz/chroot-scripts/tazwok }