wok view nail/receipt @ rev 1084
Fix backup for repack_cleanup in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 16 15:42:10 2008 +0000 (2008-07-16) |
parents | |
children | 10710b8535bc |
line source
1 # SliTaz package receipt.
3 PACKAGE="nail"
4 VERSION="12.3"
5 CATEGORY="network"
6 SHORT_DESC="Text mode mail user agent."
7 MAINTAINER="sygne@ombres.eu"
8 DEPENDS=""
9 BUILD_DEPENDS=""
10 WANTED=""
11 SOURCE="mailx"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WEB_SITE="http://heirloom.sourceforge.net/mailx.html"
14 WGET_URL="http://prdownloads.sourceforge.net/heirloom/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 make
22 make install UCBINSTALL=/usr/bin/install \
23 DESTDIR=$PWD/_pkg PREFIX=/usr
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -r $_pkg/usr/bin $fs/usr
35 strip -s $fs/usr/bin/*
36 mv $fs/usr/bin/mailx $fs/usr/bin/nail
38 cp -r $_pkg/etc $fs
39 }
41 # Post install commands for Tazpkg.
42 # Check mailx
43 post_install()
44 {
45 . /etc/init.d/rc.functions
47 if [ -e /usr/bin/mailx ]; then
48 echo ""
49 echo "/usr/bin/mailx exists"
50 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
51 read anser
52 if [ "$anser" == "y" ]; then
53 echo ""
54 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
55 rm /usr/bin/mailx
56 ln -s /usr/bin/nail /usr/bin/mailx
57 status
58 else
59 echo ""
60 echo "Doing nothing with /usr/bin/mailx"
61 echo ""
62 fi
63 else
64 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
65 ln -s /usr/bin/nail /usr/bin/mailx
66 status
67 fi
68 }