wok-4.x annotate tazwok-experimental/receipt @ rev 8725
Up: libtaz 0.0.7.1, tazwok-experimental 0.0.7.1
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Feb 19 02:08:17 2011 +0100 (2011-02-19) |
parents | 73a3ced9a677 |
children | e0de1807ecd7 |
rev | line source |
---|---|
gokhlayeh@7998 | 1 # SliTaz package receipt. |
gokhlayeh@7998 | 2 |
gokhlayeh@7998 | 3 PACKAGE="tazwok-experimental" |
gokhlayeh@8725 | 4 VERSION="0.0.7.1" |
gokhlayeh@7998 | 5 CATEGORY="base-system" |
gokhlayeh@7998 | 6 SHORT_DESC="SliTaz sources and binaries packages cooker." |
gokhlayeh@7998 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
gokhlayeh@7998 | 8 DEPENDS="busybox libtaz" |
gokhlayeh@7998 | 9 SUGGESTED="tazchroot" |
gokhlayeh@8723 | 10 TARBALL="$VERSION.tar.bz2" |
gokhlayeh@7998 | 11 WEB_SITE="http://www.slitaz.org/" |
gokhlayeh@8692 | 12 # Use mercurial until tarball is mirrored. |
gokhlayeh@8628 | 13 #WGET_URL="http://mirror.slitaz.org/sources/$PACKAGE/$TARBALL" |
gokhlayeh@8628 | 14 BUILD_DEPENDS="wget" |
gokhlayeh@8692 | 15 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2" |
gokhlayeh@7998 | 16 CONFIG_FILES="/etc/slitaz/tazwok.conf" |
gokhlayeh@8508 | 17 PROVIDE="tazwok" |
gokhlayeh@7998 | 18 TAGS="slitaz" |
gokhlayeh@7998 | 19 |
gokhlayeh@7998 | 20 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@7998 | 21 genpkg_rules() |
gokhlayeh@7998 | 22 { |
gokhlayeh@7998 | 23 mkdir -p $fs/usr/bin $fs/usr/share/doc/tazwok \ |
gokhlayeh@8724 | 24 $fs/etc/slitaz $fs/usr/share/slitaz/web-bb \ |
gokhlayeh@8724 | 25 $fs/usr/lib/slitaz/chroot-scripts |
gokhlayeh@7998 | 26 # Copy Tazwok, doc and examples. |
gokhlayeh@7998 | 27 cp -a $src/tazwok $fs/usr/bin |
gokhlayeh@8628 | 28 cp -a $src/update-repository $fs/usr/bin |
gokhlayeh@7998 | 29 chmod 755 $fs/usr/bin/tazwok |
gokhlayeh@7998 | 30 cp -a $src/doc/* $fs/usr/share/doc/tazwok |
gokhlayeh@7998 | 31 cp -a $src/applications $fs/usr/share |
gokhlayeh@7998 | 32 # Config file |
gokhlayeh@7998 | 33 cp -a $src/examples/tazwok.conf $fs/etc/slitaz |
gokhlayeh@7998 | 34 cp -a $src/examples/config.site $fs/etc |
gokhlayeh@8628 | 35 # Webserver stuff |
gokhlayeh@8628 | 36 cp -a $src/web/* $fs/usr/share/slitaz/web-bb |
gokhlayeh@8724 | 37 # Chroot scripts |
gokhlayeh@8724 | 38 cp -a $src/chroot-scripts $fs/usr/lib/slitaz/chroot-scripts/tazwok |
gokhlayeh@7998 | 39 } |
gokhlayeh@8000 | 40 |
gokhlayeh@8628 | 41 post_install() |
gokhlayeh@8628 | 42 { |
gokhlayeh@8628 | 43 echo -e "\\033[1;31mWARNING WARNING WARGNING |
gokhlayeh@8724 | 44 You should run update-repository on all repositories you used with \ |
gokhlayeh@8724 | 45 tazwok-experimental until there.This script change sources names, \ |
gokhlayeh@8724 | 46 generate sources.list and modify logs to make you're repository \ |
gokhlayeh@8724 | 47 consistent with last changes. |
gokhlayeh@8628 | 48 |
gokhlayeh@8628 | 49 Usage is: |
gokhlayeh@8628 | 50 update-repository LOCAL_REPOSITORY |
gokhlayeh@8628 | 51 |
gokhlayeh@8628 | 52 Exemple: |
gokhlayeh@8628 | 53 update-repository /home/slitaz/experimental |
gokhlayeh@8628 | 54 |
gokhlayeh@8724 | 55 You should also update you're tazchroot.conf as some path has changed. |
gokhlayeh@8724 | 56 To do that use: |
gokhlayeh@8724 | 57 |
gokhlayeh@8724 | 58 tazwok configure-chroot |
gokhlayeh@8724 | 59 |
gokhlayeh@8724 | 60 You should also update you're tazwok.conf (global and local) if you \ |
gokhlayeh@8724 | 61 to use update-wok function. |
gokhlayeh@8724 | 62 |
gokhlayeh@8724 | 63 To find locals tazwok.conf: |
gokhlayeh@8724 | 64 echo $SLITAZ_DIR/*/tazwok.conf |
gokhlayeh@8724 | 65 |
gokhlayeh@8724 | 66 Add theses variables to the configuration file (change pathes if needed): |
gokhlayeh@8724 | 67 WOK_UPDATE_METHOD=\"hg\" |
gokhlayeh@8724 | 68 TARBALL_WOK=\"http://hg.slitaz.org/wok/archive/tip.tar.bz2\" |
gokhlayeh@8724 | 69 HG_WOK=\"http://hg.slitaz.org/wok\" |
gokhlayeh@8724 | 70 |
gokhlayeh@8724 | 71 Sorry for this ;)\\033[0m" | fold -s |
gokhlayeh@8628 | 72 } |