wok-4.x annotate slitaz-tools/receipt @ rev 11
Add : bzip2, slitaz-tools, sqlite-dev, zlib-dev
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Dec 14 21:19:50 2007 +0100 (2007-12-14) |
parents | |
children | ed0383bf9db6 |
rev | line source |
---|---|
pankso@11 | 1 # SliTaz package receipt. |
pankso@11 | 2 |
pankso@11 | 3 PACKAGE="slitaz-tools" |
pankso@11 | 4 VERSION="1.4" |
pankso@11 | 5 CATEGORY="extra" |
pankso@11 | 6 SHORT_DESC="SliTaz tools provide Tazlito and Tinyutils." |
pankso@11 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@11 | 8 DEPENDS="slitaz-boot-scripts dialog" |
pankso@11 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@11 | 10 WEB_SITE="http://www.slitaz.org/" |
pankso@11 | 11 WGET_URL="http://download.tuxfamily.org/slitaz/sources/tools/$TARBALL" |
pankso@11 | 12 |
pankso@11 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@11 | 14 # |
pankso@11 | 15 # This package is all build by genpkg, it provide /usr/share/examples tree, |
pankso@11 | 16 # tazlito, tinyutils, licenses, documentation and artwork. This package |
pankso@11 | 17 # provide also the Firewall deamon/config (/etc/firewall.conf). |
pankso@11 | 18 # |
pankso@11 | 19 genpkg_rules() |
pankso@11 | 20 { |
pankso@11 | 21 mkdir -p $fs/sbin $fs/usr/bin $fs/usr/sbin $fs/var/spool/cron/crontabs |
pankso@11 | 22 |
pankso@11 | 23 # /rootfs/*. Firewall exemples, licenses and pixmaps. |
pankso@11 | 24 cp -a $src/rootfs/* $fs |
pankso@11 | 25 |
pankso@11 | 26 # Tinyutils. |
pankso@11 | 27 # |
pankso@11 | 28 cp -a $src/tinyutils/tazlocale $fs/sbin |
pankso@11 | 29 cp -a $src/tinyutils/tazkmap $fs/sbin |
pankso@11 | 30 cp -a $src/tinyutils/gztazmod.sh $fs/sbin |
pankso@11 | 31 cp -a $src/tinyutils/tazx $fs/usr/bin |
pankso@11 | 32 cp -a $src/tinyutils/startx $fs/usr/bin |
pankso@11 | 33 cp -a $src/tinyutils/mountbox $fs/usr/bin |
pankso@11 | 34 |
pankso@11 | 35 # Sound config |
pankso@11 | 36 cp -a $src/tinyutils/soundconf $fs/usr/sbin |
pankso@11 | 37 |
pankso@11 | 38 # Installer script (beta) |
pankso@11 | 39 cp -a $src/tinyutils/slitaz-installer.sh $fs/usr/bin |
pankso@11 | 40 |
pankso@11 | 41 chown -R root.root $fs |
pankso@11 | 42 chmod -R 755 $fs/usr/bin |
pankso@11 | 43 chmod -R 755 $fs/sbin |
pankso@11 | 44 |
pankso@11 | 45 # Tools doc in /usr/share/doc/slitaz-tools |
pankso@11 | 46 # Cooking info in /usr/share/doc/slitaz with style and images. |
pankso@11 | 47 # |
pankso@11 | 48 mkdir -p $fs/usr/share/doc/slitaz $fs/usr/share/doc/slitaz-tools |
pankso@11 | 49 cp $src/doc/tazx.txt $fs/usr/share/doc/slitaz-tools |
pankso@11 | 50 cp -a $src/doc/images $fs/usr/share/doc/slitaz |
pankso@11 | 51 cp $src/doc/style.css $fs/usr/share/doc/slitaz |
pankso@11 | 52 cp $src/doc/cooking-info.html $fs/usr/share/doc/slitaz |
pankso@11 | 53 } |
pankso@11 | 54 |
pankso@11 | 55 # Remove obsolet file installed with slitaz-tools-1.3 |
pankso@11 | 56 pre_install() |
pankso@11 | 57 { |
pankso@11 | 58 local root |
pankso@11 | 59 root=$1 |
pankso@11 | 60 rm -rf $root/etc/slitaz-tools |
pankso@11 | 61 rm -rf $root/usr/share/doc/slitaz-tools |
pankso@11 | 62 } |