wok-4.x view nail/receipt @ rev 7347

Removed some more kernel modules repeated in other packages.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Nov 21 19:10:30 2010 +0000 (2010-11-21)
parents bee79018e13a
children 02bbaa9d12ba
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 strip -s $fs/usr/bin/*
39 mv $fs/usr/bin/mailx $fs/usr/bin/nail
41 cp -r $_pkg/etc $fs
42 }
44 # Post install commands for Tazpkg.
45 # Check mailx
46 post_install()
47 {
48 . $1/etc/init.d/rc.functions
50 if [ -e $1/usr/bin/mailx ]; then
51 echo ""
52 echo "/usr/bin/mailx exists"
53 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
54 read anser
55 if [ "$anser" == "y" ]; then
56 echo ""
57 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
58 rm $1/usr/bin/mailx
59 ln -s /usr/bin/nail $1/usr/bin/mailx
60 status
61 else
62 echo ""
63 echo "Doing nothing with /usr/bin/mailx"
64 echo ""
65 fi
66 else
67 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
68 ln -s /usr/bin/nail $1/usr/bin/mailx
69 status
70 fi
71 }