wok-6.x view nail/receipt @ rev 14577

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