wok view nail/receipt @ rev 2563

lxpanel: add CONFIG_FILES
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 29 12:01:27 2009 +0000 (2009-03-29)
parents 518c59062c9f
children 8c06182baa15
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 libkrb5"
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"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
20 # avoid compiling with kerberos authentification:
21 make config.h
22 sed -i -e "/GSSAPI/d" config.h
23 sed -i -e "/gssapi/d" config.h
25 make install UCBINSTALL=/usr/bin/install \
26 DESTDIR=$PWD/_pkg PREFIX=/usr
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -r $_pkg/usr/bin $fs/usr
34 strip -s $fs/usr/bin/*
35 mv $fs/usr/bin/mailx $fs/usr/bin/nail
37 cp -r $_pkg/etc $fs
38 }
40 # Pre and post install commands for Tazpkg.
41 pre_install()
42 {
43 echo ""
44 echo "Processing pre_install commands"
45 echo ""
46 echo "Moving $1/etc/nail.rc to $1/etc/nail.rc.old"
47 echo ""
48 mv $1/etc/nail.rc $1/etc/nail.rc.old
49 }
51 # Post install commands for Tazpkg.
52 # Check mailx
53 post_install()
54 {
55 . $1/etc/init.d/rc.functions
57 if [ -e $1/usr/bin/mailx ]; then
58 echo ""
59 echo "/usr/bin/mailx exists"
60 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
61 read anser
62 if [ "$anser" == "y" ]; then
63 echo ""
64 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
65 rm $1/usr/bin/mailx
66 ln -s /usr/bin/nail $1/usr/bin/mailx
67 status
68 else
69 echo ""
70 echo "Doing nothing with /usr/bin/mailx"
71 echo ""
72 fi
73 else
74 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
75 ln -s /usr/bin/nail $1/usr/bin/mailx
76 status
77 fi
78 }