wok-stable view slitaz-tools/receipt @ rev 10831
Add firmware-rt2x00. This provides rt73 firmware and the rest of rt2x00 type firmwares that are in firmware source.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jun 07 10:18:08 2011 +0000 (2011-06-07) |
parents | b9761d32a594 |
children | e1a915ed4086 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools"
4 VERSION="4.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz tools provide installer and utils usable on termnial."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="slitaz-boot-scripts dialog gettext-base slitaz-configs-base"
9 BUILD_DEPENDS="gettext"
10 SUGGESTED="slitaz-tools-boxes"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://www.slitaz.org/"
13 WGET_URL="http://mirror.slitaz.org/sources/tools/$TARBALL"
14 CONFIG_FILES="
15 /etc/TZ
16 /etc/motd
17 /etc/keymap.conf
18 /etc/X11/screen.conf
19 /etc/locale.conf
20 /etc/firewall.conf
21 /etc/slitaz/applications.conf"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 make && make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs
34 cp -a $install/* $fs
35 # Missing tazx in 4.3
36 cp -a $src/tinyutils/tazx $fs/usr/bin
37 chown -R root.root $fs
38 }
40 # Pre install commands.
41 pre_install()
42 {
43 local root
44 root=$1
45 # Backup file to restore with post install
46 echo "Creating backups of configs..."
47 cp $root/etc/TZ $root/etc/TZ.bak 2>/dev/null
48 cp $root/etc/keymap.conf $root/etc/keymap.conf.bak 2>/dev/null
49 cp $root/etc/X11/screen.conf $root/etc/X11/screen.conf.bak 2>/dev/null
50 cp $root/etc/locale.conf $root/etc/locale.conf.bak 2>/dev/null
51 cp $root/etc/firewall.conf $root/etc/firewall.conf.bak 2>/dev/null
52 }
54 # Post install
55 post_install()
56 {
57 echo "Restoring configs backups..."
58 mv -f $root/etc/TZ.bak $root/etc/TZ 2>/dev/null
59 mv -f $root/etc/keymap.conf.bak $root/etc/keymap.conf 2>/dev/null
60 mv -f $root/etc/X11/screen.conf.bak $root/etc/X11/screen.conf 2>/dev/null
61 mv -f $root/etc/locale.conf.bak $root/etc/locale.conf 2>/dev/null
62 mv -f $root/etc/firewall.conf.bak $root/etc/firewall.conf 2>/dev/null
63 # Install boxes package if old slitaz-tools
64 if [ -f $root/usr/bin/mountbox ] && [ ! -d /var/lib/tazpkg/installed/slitaz-tools-boxes ]; then
65 tazpkg get-install slitaz-tools-boxes
66 fi
67 }