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

Up: tint2 (0.9)
author Alexander Medvedev <devl547@gmail.com>
date Tue May 11 00:50:12 2010 +0000 (2010-05-11)
parents 8c06182baa15
children 454a730fce46
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"
15 TAGS="email imap pop3"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
22 # avoid compiling with kerberos authentification:
23 make config.h
24 sed -i -e "/GSSAPI/d" config.h
25 sed -i -e "/gssapi/d" config.h
26 sed -i -e "s/-lgssapi_krb5//g" LIBS
28 make install UCBINSTALL=/usr/bin/install \
29 DESTDIR=$PWD/_pkg PREFIX=/usr
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -r $_pkg/usr/bin $fs/usr
37 strip -s $fs/usr/bin/*
38 mv $fs/usr/bin/mailx $fs/usr/bin/nail
40 cp -r $_pkg/etc $fs
41 }
43 # Post install commands for Tazpkg.
44 # Check mailx
45 post_install()
46 {
47 . $1/etc/init.d/rc.functions
49 if [ -e $1/usr/bin/mailx ]; then
50 echo ""
51 echo "/usr/bin/mailx exists"
52 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
53 read anser
54 if [ "$anser" == "y" ]; then
55 echo ""
56 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
57 rm $1/usr/bin/mailx
58 ln -s /usr/bin/nail $1/usr/bin/mailx
59 status
60 else
61 echo ""
62 echo "Doing nothing with /usr/bin/mailx"
63 echo ""
64 fi
65 else
66 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
67 ln -s /usr/bin/nail $1/usr/bin/mailx
68 status
69 fi
70 }