wok-next annotate nail/receipt @ rev 20761

dillo: up (3.0.5)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jun 05 12:11:44 2018 +0300 (2018-06-05)
parents 9e01bc6321ea
children d5aab818505e
rev   line source
al@20513 1 # SliTaz package receipt v2.
sygne@996 2
sygne@996 3 PACKAGE="nail"
sygne@1679 4 VERSION="12.4"
sygne@996 5 CATEGORY="network"
al@20513 6 SHORT_DESC="Text mode mail user agent"
sygne@996 7 MAINTAINER="sygne@ombres.eu"
pascal@15584 8 LICENSE="BSD"
sygne@996 9 WEB_SITE="http://heirloom.sourceforge.net/mailx.html"
al@20513 10
al@20513 11 TARBALL="mailx-$VERSION.tar.bz2"
sygne@2034 12 WGET_URL="$SF_MIRROR/heirloom/$TARBALL"
sygne@996 13
pascal@15584 14 BUILD_DEPENDS="openssl-dev"
pascal@15584 15
al@20513 16 compile_rules() {
pascal@5540 17 sed -i 's/static int smime/#define STACK STACK_OF(X509_NAME)\n&/' openssl.c
sygne@2034 18
al@20513 19 # avoid compiling with kerberos authentification:
sygne@2034 20 make config.h
sygne@2034 21 sed -i -e "/GSSAPI/d" config.h
sygne@2034 22 sed -i -e "/gssapi/d" config.h
sygne@2830 23 sed -i -e "s/-lgssapi_krb5//g" LIBS
al@20513 24
al@20513 25 make install UCBINSTALL=/usr/bin/install DESTDIR=$DESTDIR PREFIX=/usr || return 1
al@20513 26
al@20513 27 mv $install/usr/bin/mailx $install/usr/bin/nail
sygne@996 28 }
sygne@996 29
al@20513 30 genpkg_rules() {
al@20513 31 copy @std
al@20513 32 DEPENDS="openssl"
al@20513 33 CONFIG_FILES="/etc/nailrc"
al@20513 34 TAGS="email imap pop3"
sygne@996 35 }
sygne@996 36
sygne@996 37 # Check mailx
al@20513 38 post_install() {
pascal@18730 39 . "$1/etc/init.d/rc.functions"
sygne@996 40
pascal@18730 41 if [ -e "$1/usr/bin/mailx" ]; then
sygne@996 42 echo ""
sygne@996 43 echo "/usr/bin/mailx exists"
sygne@996 44 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
pascal@14582 45 read -t 30 anser
sygne@996 46 if [ "$anser" == "y" ]; then
sygne@996 47 echo ""
sygne@996 48 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
pascal@18730 49 rm "$1/usr/bin/mailx"
pascal@18730 50 ln -s /usr/bin/nail "$1/usr/bin/mailx"
sygne@996 51 status
sygne@996 52 else
sygne@996 53 echo ""
sygne@996 54 echo "Doing nothing with /usr/bin/mailx"
sygne@996 55 echo ""
sygne@996 56 fi
sygne@996 57 else
al@20513 58 action "linking /usr/bin/mailx to /usr/bin/nail"
pascal@18730 59 ln -s /usr/bin/nail "$1/usr/bin/mailx"
sygne@996 60 status
sygne@996 61 fi
sygne@996 62 }