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