wok annotate nail/receipt @ rev 996

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