wok-next view nail/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | d43bf7aae921 |
children |
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="devel@slitaz.org"
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 \
26 UCBINSTALL=/usr/bin/install \
27 DESTDIR=$install \
28 PREFIX=/usr \
29 install || return 1
31 mv $install/usr/bin/mailx $install/usr/bin/nail
32 }
34 genpkg_rules() {
35 copy @std
36 DEPENDS="openssl"
37 CONFIG_FILES="/etc/nailrc"
38 TAGS="email imap pop3"
39 }
41 # Check mailx
42 post_install() {
43 . "$1/etc/init.d/rc.functions"
45 if [ -e "$1/usr/bin/mailx" ]; then
46 echo ""
47 echo "/usr/bin/mailx exists"
48 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
49 read -t 30 anser
50 if [ "$anser" == "y" ]; then
51 echo ""
52 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
53 rm "$1/usr/bin/mailx"
54 ln -s /usr/bin/nail "$1/usr/bin/mailx"
55 status
56 else
57 echo ""
58 echo "Doing nothing with /usr/bin/mailx"
59 echo ""
60 fi
61 else
62 action "linking /usr/bin/mailx to /usr/bin/nail"
63 ln -s /usr/bin/nail "$1/usr/bin/mailx"
64 status
65 fi
66 }