wok-stable view slitaz-tools/receipt @ rev 1062

slitaz-tools, slitaz-boot-scripts, slim: add repack_cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 15 16:06:04 2008 +0000 (2008-07-15)
parents f85039722135
children 8af275409828
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools"
4 VERSION="2.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz tools provide installer and Tinyutils."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="slitaz-boot-scripts dialog"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://download.tuxfamily.org/slitaz/sources/tools/$TARBALL"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 #
15 # This package is all build by genpkg, it provide /usr/share/examples tree,
16 # tazlito, tinyutils, licenses, documentation and artwork. This package
17 # provide also the Firewall deamon/config (/etc/firewall.conf).
18 #
19 genpkg_rules()
20 {
21 mkdir -p \
22 $fs/sbin \
23 $fs/usr/bin \
24 $fs/usr/sbin \
25 $fs/etc/X11 \
26 $fs/var/spool/cron/crontabs \
27 $fs/usr/lib/slitaz \
28 $fs/usr/share/doc/slitaz-tools \
29 $fs/usr/share/slitaz-tools/glade \
30 $fs/usr/share/slitaz-tools/installer
32 # /rootfs/*. Firewall exemples, licenses, pixmaps and desktop files.
33 cp -a $src/rootfs/* $fs
35 # Tinyutils.
36 cp -a $src/tinyutils/tazlocale $fs/sbin
37 touch $fs/etc/locale.conf
38 touch $fs/etc/motd
39 cp -a $src/tinyutils/tazkeymap $fs/sbin
40 touch $fs/etc/keymap.conf
41 touch $fs/etc/TZ
42 cp -a $src/tinyutils/gztazmod.sh $fs/sbin
43 cp -a $src/tinyutils/tazx $fs/usr/bin
44 touch $fs/etc/X11/screen.conf
45 cp -a $src/tinyutils/startx $fs/usr/bin
46 cp -a $src/tinyutils/history $fs/usr/bin
47 cp -a $src/tinyutils/tazdialog $fs/usr/bin
48 cp -a $src/tinyutils/man $fs/usr/bin
49 # Sound config
50 cp -a $src/tinyutils/soundconf $fs/usr/sbin
51 cp -a $src/tinyutils/setmixer $fs/usr/sbin
53 # Gtkdialog boxes
54 cp -a $src/tinyutils/bootfloppybox $fs/usr/bin
55 cp -a $src/tinyutils/burnbox $fs/usr/bin
56 cp -a $src/tinyutils/mountbox $fs/usr/bin
57 cp -a $src/tinyutils/netbox $fs/usr/bin
58 cp -a $src/tinyutils/scpbox $fs/usr/bin
59 cp -a $src/tinyutils/subox $fs/usr/bin
60 cp -a $src/tinyutils/torrentbox $fs/usr/bin
61 cp -a $src/tinyutils/desktopbox $fs/usr/bin
63 # Libs and Glade XML files.
64 cp -a $src/lib/[a-z]* $fs/usr/lib/slitaz
65 cp -a $src/glade/*.glade $fs/usr/share/slitaz-tools/glade
67 # Installer's
68 cp -a $src/installer/slitaz-installer $fs/usr/bin
69 cp -a $src/installer/*.msg $fs/usr/share/slitaz-tools/installer
71 # Tools doc in /usr/share/doc/slitaz-tools
72 cp $src/doc/* $fs/usr/share/doc/slitaz-tools
74 # Gksu fake for pcmanfm
75 cd $fs/usr/bin
76 ln -s subox gksu
77 cd $WOK/$PACKAGE
79 chown -R root.root $fs
80 chmod -R 755 $fs/usr/bin
81 chmod -R 755 $fs/sbin
82 }
84 post_install()
85 {
86 ( cd ./$1 ; cpio -o -H newc | gzip -9 ) > \
87 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
88 etc/TZ
89 etc/motd
90 etc/keymap.conf
91 etc/X11/screen.conf
92 etc/locale.conf
93 etc/firewall.conf
94 EOT
95 }
97 repack_cleanup()
98 {
99 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
100 }