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