wok-stable annotate slitaz-tools/receipt @ rev 10830
Up: tazusb (3.0) - Handle splitted rootfs, bunch of fixes, new style for doc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jun 07 12:28:06 2011 +0200 (2011-06-07) |
parents | b9761d32a594 |
children | e1a915ed4086 |
rev | line source |
---|---|
pankso@11 | 1 # SliTaz package receipt. |
pankso@11 | 2 |
pankso@11 | 3 PACKAGE="slitaz-tools" |
pankso@10789 | 4 VERSION="4.3" |
pankso@194 | 5 CATEGORY="system-tools" |
pankso@2094 | 6 SHORT_DESC="SliTaz tools provide installer and utils usable on termnial." |
pankso@11 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@7805 | 8 DEPENDS="slitaz-boot-scripts dialog gettext-base slitaz-configs-base" |
slaxemulator@6925 | 9 BUILD_DEPENDS="gettext" |
pankso@2094 | 10 SUGGESTED="slitaz-tools-boxes" |
gokhlayeh@8012 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@11 | 12 WEB_SITE="http://www.slitaz.org/" |
gokhlayeh@8012 | 13 WGET_URL="http://mirror.slitaz.org/sources/tools/$TARBALL" |
pascal@1212 | 14 CONFIG_FILES=" |
pascal@1212 | 15 /etc/TZ |
pascal@1212 | 16 /etc/motd |
pascal@1212 | 17 /etc/keymap.conf |
pascal@1212 | 18 /etc/X11/screen.conf |
pascal@1212 | 19 /etc/locale.conf |
pankso@2889 | 20 /etc/firewall.conf |
pankso@2889 | 21 /etc/slitaz/applications.conf" |
pankso@11 | 22 |
pankso@5126 | 23 # Rules to configure and make the package. |
pankso@5126 | 24 compile_rules() |
pankso@5126 | 25 { |
pankso@5126 | 26 cd $src |
pankso@10789 | 27 make && make DESTDIR=$DESTDIR install |
pankso@5126 | 28 } |
pankso@5126 | 29 |
pankso@11 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@11 | 31 genpkg_rules() |
pankso@11 | 32 { |
pankso@10789 | 33 mkdir -p $fs |
pankso@10789 | 34 cp -a $install/* $fs |
pankso@10791 | 35 # Missing tazx in 4.3 |
pankso@10791 | 36 cp -a $src/tinyutils/tazx $fs/usr/bin |
pankso@401 | 37 chown -R root.root $fs |
pankso@11 | 38 } |
pascal@1062 | 39 |
pankso@1098 | 40 # Pre install commands. |
pankso@1098 | 41 pre_install() |
pankso@1098 | 42 { |
pankso@1098 | 43 local root |
pankso@1098 | 44 root=$1 |
pankso@1098 | 45 # Backup file to restore with post install |
pankso@1098 | 46 echo "Creating backups of configs..." |
pankso@1098 | 47 cp $root/etc/TZ $root/etc/TZ.bak 2>/dev/null |
pankso@1098 | 48 cp $root/etc/keymap.conf $root/etc/keymap.conf.bak 2>/dev/null |
pankso@1098 | 49 cp $root/etc/X11/screen.conf $root/etc/X11/screen.conf.bak 2>/dev/null |
pankso@1098 | 50 cp $root/etc/locale.conf $root/etc/locale.conf.bak 2>/dev/null |
pankso@1098 | 51 cp $root/etc/firewall.conf $root/etc/firewall.conf.bak 2>/dev/null |
pankso@1098 | 52 } |
pankso@1098 | 53 |
pankso@1098 | 54 # Post install |
pascal@1062 | 55 post_install() |
pascal@1062 | 56 { |
pankso@1098 | 57 echo "Restoring configs backups..." |
pankso@1098 | 58 mv -f $root/etc/TZ.bak $root/etc/TZ 2>/dev/null |
pankso@1098 | 59 mv -f $root/etc/keymap.conf.bak $root/etc/keymap.conf 2>/dev/null |
pankso@1098 | 60 mv -f $root/etc/X11/screen.conf.bak $root/etc/X11/screen.conf 2>/dev/null |
pankso@1098 | 61 mv -f $root/etc/locale.conf.bak $root/etc/locale.conf 2>/dev/null |
pankso@1098 | 62 mv -f $root/etc/firewall.conf.bak $root/etc/firewall.conf 2>/dev/null |
pankso@2094 | 63 # Install boxes package if old slitaz-tools |
pankso@2094 | 64 if [ -f $root/usr/bin/mountbox ] && [ ! -d /var/lib/tazpkg/installed/slitaz-tools-boxes ]; then |
pascal@2101 | 65 tazpkg get-install slitaz-tools-boxes |
pankso@2094 | 66 fi |
pascal@1062 | 67 } |