wok-next annotate nail/receipt @ rev 21636

updated f3 (2.2 -> 7.2)
author Hans-G?nter Theisgen
date Fri Jun 26 11:11:30 2020 +0100 (2020-06-26)
parents d43bf7aae921
children
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"
al@21020 7 MAINTAINER="devel@slitaz.org"
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@21020 25 make \
al@21020 26 UCBINSTALL=/usr/bin/install \
al@21020 27 DESTDIR=$install \
al@21020 28 PREFIX=/usr \
al@21020 29 install || return 1
al@20513 30
al@20513 31 mv $install/usr/bin/mailx $install/usr/bin/nail
sygne@996 32 }
sygne@996 33
al@20513 34 genpkg_rules() {
al@20513 35 copy @std
al@20513 36 DEPENDS="openssl"
al@20513 37 CONFIG_FILES="/etc/nailrc"
al@20513 38 TAGS="email imap pop3"
sygne@996 39 }
sygne@996 40
sygne@996 41 # Check mailx
al@20513 42 post_install() {
pascal@18730 43 . "$1/etc/init.d/rc.functions"
sygne@996 44
pascal@18730 45 if [ -e "$1/usr/bin/mailx" ]; then
sygne@996 46 echo ""
sygne@996 47 echo "/usr/bin/mailx exists"
sygne@996 48 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
pascal@14582 49 read -t 30 anser
sygne@996 50 if [ "$anser" == "y" ]; then
sygne@996 51 echo ""
sygne@996 52 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
pascal@18730 53 rm "$1/usr/bin/mailx"
pascal@18730 54 ln -s /usr/bin/nail "$1/usr/bin/mailx"
sygne@996 55 status
sygne@996 56 else
sygne@996 57 echo ""
sygne@996 58 echo "Doing nothing with /usr/bin/mailx"
sygne@996 59 echo ""
sygne@996 60 fi
sygne@996 61 else
al@20513 62 action "linking /usr/bin/mailx to /usr/bin/nail"
pascal@18730 63 ln -s /usr/bin/nail "$1/usr/bin/mailx"
sygne@996 64 status
sygne@996 65 fi
sygne@996 66 }