wok-next annotate nail/receipt @ rev 5540

nail: fix compile_rules for openssl 1.0
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 13 12:28:22 2010 +0200 (2010-05-13)
parents bee79018e13a
children 02bbaa9d12ba
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"
jozee@4969 15 TAGS="email imap pop3"
sygne@996 16
sygne@996 17 # Rules to configure and make the package.
sygne@996 18 compile_rules()
sygne@996 19 {
sygne@996 20 cd $src
pascal@5540 21 sed -i 's/static int smime/#define STACK STACK_OF(X509_NAME)\n&/' openssl.c
sygne@2034 22
sygne@2034 23 # avoid compiling with kerberos authentification:
sygne@2034 24 make config.h
sygne@2034 25 sed -i -e "/GSSAPI/d" config.h
sygne@2034 26 sed -i -e "/gssapi/d" config.h
sygne@2830 27 sed -i -e "s/-lgssapi_krb5//g" LIBS
sygne@996 28
sygne@996 29 make install UCBINSTALL=/usr/bin/install \
sygne@2034 30 DESTDIR=$PWD/_pkg PREFIX=/usr
sygne@996 31 }
sygne@996 32
sygne@996 33 # Rules to gen a SliTaz package suitable for Tazpkg.
sygne@996 34 genpkg_rules()
sygne@996 35 {
sygne@996 36 mkdir -p $fs/usr
sygne@996 37 cp -r $_pkg/usr/bin $fs/usr
sygne@996 38 strip -s $fs/usr/bin/*
sygne@996 39 mv $fs/usr/bin/mailx $fs/usr/bin/nail
sygne@996 40
sygne@996 41 cp -r $_pkg/etc $fs
sygne@996 42 }
sygne@996 43
sygne@996 44 # Post install commands for Tazpkg.
sygne@996 45 # Check mailx
sygne@996 46 post_install()
sygne@996 47 {
pascal@1137 48 . $1/etc/init.d/rc.functions
sygne@996 49
pascal@1137 50 if [ -e $1/usr/bin/mailx ]; then
sygne@996 51 echo ""
sygne@996 52 echo "/usr/bin/mailx exists"
sygne@996 53 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
sygne@996 54 read anser
sygne@996 55 if [ "$anser" == "y" ]; then
sygne@996 56 echo ""
sygne@996 57 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
pascal@1137 58 rm $1/usr/bin/mailx
pascal@1137 59 ln -s /usr/bin/nail $1/usr/bin/mailx
sygne@996 60 status
sygne@996 61 else
sygne@996 62 echo ""
sygne@996 63 echo "Doing nothing with /usr/bin/mailx"
sygne@996 64 echo ""
sygne@996 65 fi
sygne@996 66 else
sygne@996 67 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
pascal@1137 68 ln -s /usr/bin/nail $1/usr/bin/mailx
sygne@996 69 status
sygne@996 70 fi
sygne@996 71 }