wok-next view 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
line source
1 # SliTaz package receipt v2.
3 PACKAGE="nail"
4 VERSION="12.4"
5 CATEGORY="network"
6 SHORT_DESC="Text mode mail user agent"
7 MAINTAINER="sygne@ombres.eu"
8 LICENSE="BSD"
9 WEB_SITE="http://heirloom.sourceforge.net/mailx.html"
11 TARBALL="mailx-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/heirloom/$TARBALL"
14 BUILD_DEPENDS="openssl-dev"
16 compile_rules() {
17 sed -i 's/static int smime/#define STACK STACK_OF(X509_NAME)\n&/' openssl.c
19 # avoid compiling with kerberos authentification:
20 make config.h
21 sed -i -e "/GSSAPI/d" config.h
22 sed -i -e "/gssapi/d" config.h
23 sed -i -e "s/-lgssapi_krb5//g" LIBS
25 make install UCBINSTALL=/usr/bin/install DESTDIR=$DESTDIR PREFIX=/usr || return 1
27 mv $install/usr/bin/mailx $install/usr/bin/nail
28 }
30 genpkg_rules() {
31 copy @std
32 DEPENDS="openssl"
33 CONFIG_FILES="/etc/nailrc"
34 TAGS="email imap pop3"
35 }
37 # Check mailx
38 post_install() {
39 . "$1/etc/init.d/rc.functions"
41 if [ -e "$1/usr/bin/mailx" ]; then
42 echo ""
43 echo "/usr/bin/mailx exists"
44 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
45 read -t 30 anser
46 if [ "$anser" == "y" ]; then
47 echo ""
48 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
49 rm "$1/usr/bin/mailx"
50 ln -s /usr/bin/nail "$1/usr/bin/mailx"
51 status
52 else
53 echo ""
54 echo "Doing nothing with /usr/bin/mailx"
55 echo ""
56 fi
57 else
58 action "linking /usr/bin/mailx to /usr/bin/nail"
59 ln -s /usr/bin/nail "$1/usr/bin/mailx"
60 status
61 fi
62 }