wok view tazchroot/receipt @ rev 8002

Fixed libtaz, tazchroot, and tazwok-experimental again.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Jan 18 12:47:44 2011 +0000 (2011-01-18)
parents 32cd9732fa86
children bff39e2b1e5a
line source
1 # SliTaz package receipt.
3 PACKAGE="tazchroot"
4 VERSION="0.0.1"
5 CATEGORY="base-system"
6 SHORT_DESC="Slitaz tool to manage chroot"
7 MAINTAINER="gokhlayeh@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.slitaz.org/"
10 #WGET_URL="http://mirror.slitaz.org/sources/base-files/$TARBALL"
11 # using an hg URL because tarball is not avaible at this moment
12 WGET="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
13 TAGS="slitaz"
15 compile_rules()
16 {
17 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
18 tar xzf $SOURCES_REPOSITORY/$TARBALL
19 else
20 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
21 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
22 tar xzf $SOURCES_REPOSITORY/$TARBALL
23 fi
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin $fs/etc/slitaz \
30 $fs/var/lib/tazchroot
31 cp -a $src/tazchroot $fs/usr/bin
32 chmod 755 $fs/usr/bin/tazchroot
33 cp -a $src/tazchroot.conf $fs/etc/slitaz
34 cp -a $src/scripts/* $fs/var/lib/tazchroot
35 }