wok-stable view nail/receipt @ rev 1962

Lbreakout2: update depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 31 16:16:07 2008 +0000 (2008-12-31)
parents 10710b8535bc
children 518c59062c9f
line source
1 # SliTaz package receipt.
3 PACKAGE="nail"
4 VERSION="12.4"
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 # Pre and post install commands for Tazpkg.
42 pre_install()
43 {
44 echo ""
45 echo "Processing pre_install commands"
46 echo ""
47 echo "Moving $1/etc/nail.rc to $1/etc/nail.rc.old"
48 echo ""
49 mv $1/etc/nail.rc $1/etc/nail.rc.old
50 }
52 # Post install commands for Tazpkg.
53 # Check mailx
54 post_install()
55 {
56 . $1/etc/init.d/rc.functions
58 if [ -e $1/usr/bin/mailx ]; then
59 echo ""
60 echo "/usr/bin/mailx exists"
61 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
62 read anser
63 if [ "$anser" == "y" ]; then
64 echo ""
65 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
66 rm $1/usr/bin/mailx
67 ln -s /usr/bin/nail $1/usr/bin/mailx
68 status
69 else
70 echo ""
71 echo "Doing nothing with /usr/bin/mailx"
72 echo ""
73 fi
74 else
75 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
76 ln -s /usr/bin/nail $1/usr/bin/mailx
77 status
78 fi
79 }