wok annotate nail/receipt @ rev 21935

soundtouch: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 06 18:10:58 2019 +0200 (2019-10-06)
parents 9e01bc6321ea
children afae00265386
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@15584 8 LICENSE="BSD"
sygne@996 9 SOURCE="mailx"
sygne@996 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
sygne@996 11 WEB_SITE="http://heirloom.sourceforge.net/mailx.html"
sygne@2034 12 WGET_URL="$SF_MIRROR/heirloom/$TARBALL"
sygne@2830 13 CONFIG_FILES="/etc/nailrc"
jozee@4969 14 TAGS="email imap pop3"
sygne@996 15
pascal@15584 16 DEPENDS="openssl"
pascal@15584 17 BUILD_DEPENDS="openssl-dev"
pascal@15584 18
sygne@996 19 # Rules to configure and make the package.
sygne@996 20 compile_rules()
sygne@996 21 {
sygne@996 22 cd $src
pascal@5540 23 sed -i 's/static int smime/#define STACK STACK_OF(X509_NAME)\n&/' openssl.c
sygne@2034 24
sygne@2034 25 # avoid compiling with kerberos authentification:
sygne@2034 26 make config.h
sygne@2034 27 sed -i -e "/GSSAPI/d" config.h
sygne@2034 28 sed -i -e "/gssapi/d" config.h
sygne@2830 29 sed -i -e "s/-lgssapi_krb5//g" LIBS
sygne@996 30
sygne@996 31 make install UCBINSTALL=/usr/bin/install \
pascal@15584 32 DESTDIR=$DESTDIR PREFIX=/usr
sygne@996 33 }
sygne@996 34
sygne@996 35 # Rules to gen a SliTaz package suitable for Tazpkg.
sygne@996 36 genpkg_rules()
sygne@996 37 {
sygne@996 38 mkdir -p $fs/usr
pascal@15584 39 cp -r $install/usr/bin $fs/usr
sygne@996 40 mv $fs/usr/bin/mailx $fs/usr/bin/nail
sygne@996 41
pascal@15584 42 cp -r $install/etc $fs
sygne@996 43 }
sygne@996 44
sygne@996 45 # Post install commands for Tazpkg.
sygne@996 46 # Check mailx
sygne@996 47 post_install()
sygne@996 48 {
pascal@18730 49 . "$1/etc/init.d/rc.functions"
sygne@996 50
pascal@18730 51 if [ -e "$1/usr/bin/mailx" ]; then
sygne@996 52 echo ""
sygne@996 53 echo "/usr/bin/mailx exists"
sygne@996 54 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
pascal@14582 55 read -t 30 anser
pascal@20892 56 if [ "$anser" = "y" ]; then
sygne@996 57 echo ""
sygne@996 58 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
pascal@18730 59 rm "$1/usr/bin/mailx"
pascal@18730 60 ln -s /usr/bin/nail "$1/usr/bin/mailx"
sygne@996 61 status
sygne@996 62 else
sygne@996 63 echo ""
sygne@996 64 echo "Doing nothing with /usr/bin/mailx"
sygne@996 65 echo ""
sygne@996 66 fi
sygne@996 67 else
sygne@996 68 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
pascal@18730 69 ln -s /usr/bin/nail "$1/usr/bin/mailx"
sygne@996 70 status
sygne@996 71 fi
sygne@996 72 }