wok-next annotate nail/receipt @ rev 1990
Fix: xrick CATEGORY
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Jan 06 23:40:55 2009 +0100 (2009-01-06) |
parents | 10710b8535bc |
children | 518c59062c9f |
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" |
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@1679 | 41 # Pre and post install commands for Tazpkg. |
sygne@1679 | 42 pre_install() |
sygne@1679 | 43 { |
sygne@1679 | 44 echo "" |
sygne@1679 | 45 echo "Processing pre_install commands" |
sygne@1679 | 46 echo "" |
sygne@1679 | 47 echo "Moving $1/etc/nail.rc to $1/etc/nail.rc.old" |
sygne@1679 | 48 echo "" |
sygne@1679 | 49 mv $1/etc/nail.rc $1/etc/nail.rc.old |
sygne@1679 | 50 } |
sygne@1679 | 51 |
sygne@996 | 52 # Post install commands for Tazpkg. |
sygne@996 | 53 # Check mailx |
sygne@996 | 54 post_install() |
sygne@996 | 55 { |
pascal@1137 | 56 . $1/etc/init.d/rc.functions |
sygne@996 | 57 |
pascal@1137 | 58 if [ -e $1/usr/bin/mailx ]; then |
sygne@996 | 59 echo "" |
sygne@996 | 60 echo "/usr/bin/mailx exists" |
sygne@996 | 61 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : " |
sygne@996 | 62 read anser |
sygne@996 | 63 if [ "$anser" == "y" ]; then |
sygne@996 | 64 echo "" |
sygne@996 | 65 echo -n "linking /usr/bin/mailx to /usr/bin/nail" |
pascal@1137 | 66 rm $1/usr/bin/mailx |
pascal@1137 | 67 ln -s /usr/bin/nail $1/usr/bin/mailx |
sygne@996 | 68 status |
sygne@996 | 69 else |
sygne@996 | 70 echo "" |
sygne@996 | 71 echo "Doing nothing with /usr/bin/mailx" |
sygne@996 | 72 echo "" |
sygne@996 | 73 fi |
sygne@996 | 74 else |
sygne@996 | 75 echo -n "linking /usr/bin/mailx to /usr/bin/nail" |
pascal@1137 | 76 ln -s /usr/bin/nail $1/usr/bin/mailx |
sygne@996 | 77 status |
sygne@996 | 78 fi |
sygne@996 | 79 } |