wok-stable annotate nail/receipt @ rev 3223
fix : audacity tarball
author | Allan Pinto <allan316@gmail.com> |
---|---|
date | Fri May 29 11:43:34 2009 +0000 (2009-05-29) |
parents | c1550cd1e389 |
children | bee79018e13a |
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@2830 | 8 DEPENDS="openssl" |
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@2830 | 14 CONFIG_FILES="/etc/nailrc" |
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@2034 | 20 |
sygne@2034 | 21 # avoid compiling with kerberos authentification: |
sygne@2034 | 22 make config.h |
sygne@2034 | 23 sed -i -e "/GSSAPI/d" config.h |
sygne@2034 | 24 sed -i -e "/gssapi/d" config.h |
sygne@2830 | 25 sed -i -e "s/-lgssapi_krb5//g" LIBS |
sygne@996 | 26 |
sygne@996 | 27 make install UCBINSTALL=/usr/bin/install \ |
sygne@2034 | 28 DESTDIR=$PWD/_pkg PREFIX=/usr |
sygne@996 | 29 } |
sygne@996 | 30 |
sygne@996 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@996 | 32 genpkg_rules() |
sygne@996 | 33 { |
sygne@996 | 34 mkdir -p $fs/usr |
sygne@996 | 35 cp -r $_pkg/usr/bin $fs/usr |
sygne@996 | 36 strip -s $fs/usr/bin/* |
sygne@996 | 37 mv $fs/usr/bin/mailx $fs/usr/bin/nail |
sygne@996 | 38 |
sygne@996 | 39 cp -r $_pkg/etc $fs |
sygne@996 | 40 } |
sygne@996 | 41 |
sygne@996 | 42 # Post install commands for Tazpkg. |
sygne@996 | 43 # Check mailx |
sygne@996 | 44 post_install() |
sygne@996 | 45 { |
pascal@1137 | 46 . $1/etc/init.d/rc.functions |
sygne@996 | 47 |
pascal@1137 | 48 if [ -e $1/usr/bin/mailx ]; then |
sygne@996 | 49 echo "" |
sygne@996 | 50 echo "/usr/bin/mailx exists" |
sygne@996 | 51 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : " |
sygne@996 | 52 read anser |
sygne@996 | 53 if [ "$anser" == "y" ]; then |
sygne@996 | 54 echo "" |
sygne@996 | 55 echo -n "linking /usr/bin/mailx to /usr/bin/nail" |
pascal@1137 | 56 rm $1/usr/bin/mailx |
pascal@1137 | 57 ln -s /usr/bin/nail $1/usr/bin/mailx |
sygne@996 | 58 status |
sygne@996 | 59 else |
sygne@996 | 60 echo "" |
sygne@996 | 61 echo "Doing nothing with /usr/bin/mailx" |
sygne@996 | 62 echo "" |
sygne@996 | 63 fi |
sygne@996 | 64 else |
sygne@996 | 65 echo -n "linking /usr/bin/mailx to /usr/bin/nail" |
pascal@1137 | 66 ln -s /usr/bin/nail $1/usr/bin/mailx |
sygne@996 | 67 status |
sygne@996 | 68 fi |
sygne@996 | 69 } |