wok annotate tazchroot/receipt @ rev 8004

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