wok view nail/receipt @ rev 24768
libwebkit: bison 3 fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 19 12:46:44 2022 +0000 (2022-03-19) |
parents | 02c70d036ea0 |
children | b0069c845544 |
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/heirloom/files/heirloom-mailx/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/heirloom-mailx/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cd $src
31 sed -i 's/static int smime/#define STACK STACK_OF(X509_NAME)\n&/' openssl.c
33 # avoid compiling with kerberos authentification:
34 make config.h
35 sed -i -e "/GSSAPI/d" config.h
36 sed -i -e "/gssapi/d" config.h
37 sed -i -e "s/-lgssapi_krb5//g" LIBS
39 make install UCBINSTALL=/usr/bin/install \
40 DESTDIR=$DESTDIR PREFIX=/usr
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
47 cp -r $install/usr/bin $fs/usr
48 mv $fs/usr/bin/mailx $fs/usr/bin/nail
50 cp -r $install/etc $fs
51 }
53 # Post install commands for Tazpkg.
54 # Check mailx
55 post_install()
56 {
57 . "$1/etc/init.d/rc.functions"
59 if [ -e "$1/usr/bin/mailx" ]; then
60 echo ""
61 echo "/usr/bin/mailx exists"
62 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
63 read -t 30 anser
64 if [ "$anser" = "y" ]; then
65 echo ""
66 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
67 rm "$1/usr/bin/mailx"
68 ln -s /usr/bin/nail "$1/usr/bin/mailx"
69 status
70 else
71 echo ""
72 echo "Doing nothing with /usr/bin/mailx"
73 echo ""
74 fi
75 else
76 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
77 ln -s /usr/bin/nail "$1/usr/bin/mailx"
78 status
79 fi
80 }