wok-6.x annotate slitaz-tools/receipt @ rev 13481
busybox: use slitaz-base httphelper.sh
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 11 13:43:57 2012 +0200 (2012-10-11) |
parents | 9ba57c7ee2b2 |
children | 717938b0ed14 |
rev | line source |
---|---|
pankso@11 | 1 # SliTaz package receipt. |
pankso@11 | 2 |
pankso@11 | 3 PACKAGE="slitaz-tools" |
pankso@12691 | 4 VERSION="5.0" |
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" |
pankso@2094 | 8 SUGGESTED="slitaz-tools-boxes" |
gokhlayeh@8012 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@11 | 10 WEB_SITE="http://www.slitaz.org/" |
gokhlayeh@8012 | 11 WGET_URL="http://mirror.slitaz.org/sources/tools/$TARBALL" |
pankso@12882 | 12 HOST_ARCH="i486 arm" |
pankso@12882 | 13 |
pankso@12882 | 14 DEPENDS="slitaz-boot-scripts dialog gettext-base slitaz-configs-base" |
pankso@12882 | 15 BUILD_DEPENDS="gettext" |
pankso@12882 | 16 |
pankso@12882 | 17 # Handle multiarch compilation. |
pankso@12882 | 18 case "$ARCH" in |
pankso@12882 | 19 arm) |
pankso@12882 | 20 DEPENDS="slitaz-boot-scripts dialog gettext-base" |
pankso@12882 | 21 BUILD_DEPENDS="" ;; |
pankso@12882 | 22 esac |
pankso@12882 | 23 |
pankso@12882 | 24 # Saved config file by package manager |
pascal@1212 | 25 CONFIG_FILES=" |
pascal@1212 | 26 /etc/TZ |
pascal@1212 | 27 /etc/keymap.conf |
pascal@1212 | 28 /etc/locale.conf |
pankso@2889 | 29 /etc/firewall.conf |
pankso@2889 | 30 /etc/slitaz/applications.conf" |
pankso@11 | 31 |
pankso@5126 | 32 # Rules to configure and make the package. |
pankso@5126 | 33 compile_rules() |
pankso@5126 | 34 { |
pankso@5126 | 35 cd $src |
pankso@10789 | 36 make && make DESTDIR=$DESTDIR install |
pankso@5126 | 37 } |
pankso@5126 | 38 |
pankso@11 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@11 | 40 genpkg_rules() |
pankso@11 | 41 { |
pankso@10789 | 42 mkdir -p $fs |
pankso@10789 | 43 cp -a $install/* $fs |
pankso@12691 | 44 # Makefile bug in 5.0 |
pankso@12691 | 45 cp -a $src/tinyutils/decode $fs/usr/bin |
pankso@10859 | 46 chmod 0644 $fs/usr/share/locale/*/*/*.mo |
pankso@401 | 47 chown -R root.root $fs |
pankso@11 | 48 } |
pascal@1062 | 49 |
pankso@1098 | 50 # Pre install commands. |
pankso@12882 | 51 #pre_install() |
pankso@12882 | 52 #{ |
pankso@1098 | 53 # Backup file to restore with post install |
pankso@12882 | 54 #echo "Creating backups of configs..." |
pankso@12882 | 55 #cp $root/etc/TZ $root/etc/TZ.bak 2>/dev/null |
pankso@12882 | 56 #cp $root/etc/keymap.conf $root/etc/keymap.conf.bak 2>/dev/null |
pankso@12882 | 57 #cp $root/etc/locale.conf $root/etc/locale.conf.bak 2>/dev/null |
pankso@12882 | 58 #cp $root/etc/firewall.conf $root/etc/firewall.conf.bak 2>/dev/null |
pankso@12882 | 59 #} |
pankso@1098 | 60 |
pankso@1098 | 61 # Post install |
pankso@12882 | 62 #post_install() |
pankso@12882 | 63 #{ |
pankso@12882 | 64 #echo "Restoring configs backups..." |
pankso@12882 | 65 #mv -f $root/etc/TZ.bak $root/etc/TZ 2>/dev/null |
pankso@12882 | 66 #mv -f $root/etc/keymap.conf.bak $root/etc/keymap.conf 2>/dev/null |
pankso@12882 | 67 #mv -f $root/etc/locale.conf.bak $root/etc/locale.conf 2>/dev/null |
pankso@12882 | 68 #mv -f $root/etc/firewall.conf.bak $root/etc/firewall.conf 2>/dev/null |
pankso@12882 | 69 #} |