wok-4.x view nail/receipt @ rev 4344

mitter: translate desktop file to french
author Christophe Lincoln <pankso@slitaz.org>
date Thu Oct 01 22:03:57 2009 +0200 (2009-10-01)
parents c1550cd1e389
children bee79018e13a
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="openssl"
9 BUILD_DEPENDS="openssl-dev"
10 SOURCE="mailx"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://heirloom.sourceforge.net/mailx.html"
13 WGET_URL="$SF_MIRROR/heirloom/$TARBALL"
14 CONFIG_FILES="/etc/nailrc"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 # avoid compiling with kerberos authentification:
22 make config.h
23 sed -i -e "/GSSAPI/d" config.h
24 sed -i -e "/gssapi/d" config.h
25 sed -i -e "s/-lgssapi_krb5//g" LIBS
27 make install UCBINSTALL=/usr/bin/install \
28 DESTDIR=$PWD/_pkg PREFIX=/usr
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -r $_pkg/usr/bin $fs/usr
36 strip -s $fs/usr/bin/*
37 mv $fs/usr/bin/mailx $fs/usr/bin/nail
39 cp -r $_pkg/etc $fs
40 }
42 # Post install commands for Tazpkg.
43 # Check mailx
44 post_install()
45 {
46 . $1/etc/init.d/rc.functions
48 if [ -e $1/usr/bin/mailx ]; then
49 echo ""
50 echo "/usr/bin/mailx exists"
51 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
52 read anser
53 if [ "$anser" == "y" ]; then
54 echo ""
55 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
56 rm $1/usr/bin/mailx
57 ln -s /usr/bin/nail $1/usr/bin/mailx
58 status
59 else
60 echo ""
61 echo "Doing nothing with /usr/bin/mailx"
62 echo ""
63 fi
64 else
65 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
66 ln -s /usr/bin/nail $1/usr/bin/mailx
67 status
68 fi
69 }