wok annotate nail/receipt @ rev 2756

glibc: Remove duplicate glibc-extra-samba files in glibc-locale
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 26 21:06:51 2009 +0200 (2009-04-26)
parents 518c59062c9f
children 8c06182baa15
rev   line source
sygne@996 1 # SliTaz package receipt.
sygne@996 2
sygne@996 3 PACKAGE="nail"
sygne@1679 4 VERSION="12.4"
sygne@996 5 CATEGORY="network"
sygne@996 6 SHORT_DESC="Text mode mail user agent."
sygne@996 7 MAINTAINER="sygne@ombres.eu"
pascal@2495 8 DEPENDS="openssl libkrb5"
sygne@2034 9 BUILD_DEPENDS="openssl-dev"
sygne@996 10 SOURCE="mailx"
sygne@996 11 TARBALL="$SOURCE-$VERSION.tar.bz2"
sygne@996 12 WEB_SITE="http://heirloom.sourceforge.net/mailx.html"
sygne@2034 13 WGET_URL="$SF_MIRROR/heirloom/$TARBALL"
sygne@996 14
sygne@996 15 # Rules to configure and make the package.
sygne@996 16 compile_rules()
sygne@996 17 {
sygne@996 18 cd $src
sygne@2034 19
sygne@2034 20 # avoid compiling with kerberos authentification:
sygne@2034 21 make config.h
sygne@2034 22 sed -i -e "/GSSAPI/d" config.h
sygne@2034 23 sed -i -e "/gssapi/d" config.h
sygne@996 24
sygne@996 25 make install UCBINSTALL=/usr/bin/install \
sygne@2034 26 DESTDIR=$PWD/_pkg PREFIX=/usr
sygne@996 27 }
sygne@996 28
sygne@996 29 # Rules to gen a SliTaz package suitable for Tazpkg.
sygne@996 30 genpkg_rules()
sygne@996 31 {
sygne@996 32 mkdir -p $fs/usr
sygne@996 33 cp -r $_pkg/usr/bin $fs/usr
sygne@996 34 strip -s $fs/usr/bin/*
sygne@996 35 mv $fs/usr/bin/mailx $fs/usr/bin/nail
sygne@996 36
sygne@996 37 cp -r $_pkg/etc $fs
sygne@996 38 }
sygne@996 39
sygne@1679 40 # Pre and post install commands for Tazpkg.
sygne@1679 41 pre_install()
sygne@1679 42 {
sygne@1679 43 echo ""
sygne@1679 44 echo "Processing pre_install commands"
sygne@1679 45 echo ""
sygne@1679 46 echo "Moving $1/etc/nail.rc to $1/etc/nail.rc.old"
sygne@1679 47 echo ""
sygne@1679 48 mv $1/etc/nail.rc $1/etc/nail.rc.old
sygne@1679 49 }
sygne@1679 50
sygne@996 51 # Post install commands for Tazpkg.
sygne@996 52 # Check mailx
sygne@996 53 post_install()
sygne@996 54 {
pascal@1137 55 . $1/etc/init.d/rc.functions
sygne@996 56
pascal@1137 57 if [ -e $1/usr/bin/mailx ]; then
sygne@996 58 echo ""
sygne@996 59 echo "/usr/bin/mailx exists"
sygne@996 60 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
sygne@996 61 read anser
sygne@996 62 if [ "$anser" == "y" ]; then
sygne@996 63 echo ""
sygne@996 64 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
pascal@1137 65 rm $1/usr/bin/mailx
pascal@1137 66 ln -s /usr/bin/nail $1/usr/bin/mailx
sygne@996 67 status
sygne@996 68 else
sygne@996 69 echo ""
sygne@996 70 echo "Doing nothing with /usr/bin/mailx"
sygne@996 71 echo ""
sygne@996 72 fi
sygne@996 73 else
sygne@996 74 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
pascal@1137 75 ln -s /usr/bin/nail $1/usr/bin/mailx
sygne@996 76 status
sygne@996 77 fi
sygne@996 78 }