wok 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 | 05a5d0f07cb3 |
children | 9de6b694763c |
files | nail/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nail/receipt Sun Jul 06 16:43:13 2008 +0200 1.3 @@ -0,0 +1,68 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="nail" 1.7 +VERSION="12.3" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Text mode mail user agent." 1.10 +MAINTAINER="sygne@ombres.eu" 1.11 +DEPENDS="" 1.12 +BUILD_DEPENDS="" 1.13 +WANTED="" 1.14 +SOURCE="mailx" 1.15 +TARBALL="$SOURCE-$VERSION.tar.bz2" 1.16 +WEB_SITE="http://heirloom.sourceforge.net/mailx.html" 1.17 +WGET_URL="http://prdownloads.sourceforge.net/heirloom/$TARBALL" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + cd $src 1.23 + 1.24 + make 1.25 + make install UCBINSTALL=/usr/bin/install \ 1.26 + DESTDIR=$PWD/_pkg PREFIX=/usr 1.27 + 1.28 + 1.29 + 1.30 + 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr 1.37 + cp -r $_pkg/usr/bin $fs/usr 1.38 + strip -s $fs/usr/bin/* 1.39 + mv $fs/usr/bin/mailx $fs/usr/bin/nail 1.40 + 1.41 + cp -r $_pkg/etc $fs 1.42 +} 1.43 + 1.44 +# Post install commands for Tazpkg. 1.45 +# Check mailx 1.46 +post_install() 1.47 +{ 1.48 + . /etc/init.d/rc.functions 1.49 + 1.50 + if [ -e /usr/bin/mailx ]; then 1.51 + echo "" 1.52 + echo "/usr/bin/mailx exists" 1.53 + echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : " 1.54 + read anser 1.55 + if [ "$anser" == "y" ]; then 1.56 + echo "" 1.57 + echo -n "linking /usr/bin/mailx to /usr/bin/nail" 1.58 + rm /usr/bin/mailx 1.59 + ln -s /usr/bin/nail /usr/bin/mailx 1.60 + status 1.61 + else 1.62 + echo "" 1.63 + echo "Doing nothing with /usr/bin/mailx" 1.64 + echo "" 1.65 + fi 1.66 + else 1.67 + echo -n "linking /usr/bin/mailx to /usr/bin/nail" 1.68 + ln -s /usr/bin/nail /usr/bin/mailx 1.69 + status 1.70 + fi 1.71 +}