wok annotate nail/receipt @ rev 25083

updated p11-kit and p11-kit-dev (0.23.20 -> 0.24.1)
author Hans-G?nter Theisgen
date Wed Jun 15 17:22:15 2022 +0100 (2022-06-15)
parents 02c70d036ea0
children b0069c845544
rev   line source
sygne@996 1 # SliTaz package receipt.
sygne@996 2
sygne@996 3 PACKAGE="nail"
sygne@1679 4 VERSION="12.4"
sygne@996 5 CATEGORY="network"
sygne@996 6 SHORT_DESC="Text mode mail user agent."
sygne@996 7 MAINTAINER="sygne@ombres.eu"
pascal@15584 8 LICENSE="BSD"
sygne@996 9 SOURCE="mailx"
sygne@996 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
sygne@996 11 WEB_SITE="http://heirloom.sourceforge.net/mailx.html"
sygne@2034 12 WGET_URL="$SF_MIRROR/heirloom/$TARBALL"
sygne@2830 13 CONFIG_FILES="/etc/nailrc"
jozee@4969 14 TAGS="email imap pop3"
sygne@996 15
pascal@15584 16 DEPENDS="openssl"
pascal@15584 17 BUILD_DEPENDS="openssl-dev"
pascal@15584 18
pascal@24402 19 # What is the latest version available today?
pascal@24402 20 current_version()
pascal@24402 21 {
pascal@24402 22 wget -O - https://sourceforge.net/projects/heirloom/files/heirloom-mailx/ 2>/dev/null | \
pascal@24402 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 24 sed '/scope="row/!d;s|.*/heirloom-mailx/||;s|/.*||;q'
pascal@24402 25 }
pascal@24402 26
sygne@996 27 # Rules to configure and make the package.
sygne@996 28 compile_rules()
sygne@996 29 {
sygne@996 30 cd $src
pascal@5540 31 sed -i 's/static int smime/#define STACK STACK_OF(X509_NAME)\n&/' openssl.c
sygne@2034 32
sygne@2034 33 # avoid compiling with kerberos authentification:
sygne@2034 34 make config.h
sygne@2034 35 sed -i -e "/GSSAPI/d" config.h
sygne@2034 36 sed -i -e "/gssapi/d" config.h
sygne@2830 37 sed -i -e "s/-lgssapi_krb5//g" LIBS
sygne@996 38
sygne@996 39 make install UCBINSTALL=/usr/bin/install \
pascal@15584 40 DESTDIR=$DESTDIR PREFIX=/usr
sygne@996 41 }
sygne@996 42
sygne@996 43 # Rules to gen a SliTaz package suitable for Tazpkg.
sygne@996 44 genpkg_rules()
sygne@996 45 {
sygne@996 46 mkdir -p $fs/usr
pascal@15584 47 cp -r $install/usr/bin $fs/usr
sygne@996 48 mv $fs/usr/bin/mailx $fs/usr/bin/nail
sygne@996 49
pascal@15584 50 cp -r $install/etc $fs
sygne@996 51 }
sygne@996 52
sygne@996 53 # Post install commands for Tazpkg.
sygne@996 54 # Check mailx
sygne@996 55 post_install()
sygne@996 56 {
pascal@18730 57 . "$1/etc/init.d/rc.functions"
sygne@996 58
pascal@18730 59 if [ -e "$1/usr/bin/mailx" ]; then
sygne@996 60 echo ""
sygne@996 61 echo "/usr/bin/mailx exists"
sygne@996 62 echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
pascal@14582 63 read -t 30 anser
pascal@20892 64 if [ "$anser" = "y" ]; then
sygne@996 65 echo ""
sygne@996 66 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
pascal@18730 67 rm "$1/usr/bin/mailx"
pascal@18730 68 ln -s /usr/bin/nail "$1/usr/bin/mailx"
sygne@996 69 status
sygne@996 70 else
sygne@996 71 echo ""
sygne@996 72 echo "Doing nothing with /usr/bin/mailx"
sygne@996 73 echo ""
sygne@996 74 fi
sygne@996 75 else
sygne@996 76 echo -n "linking /usr/bin/mailx to /usr/bin/nail"
pascal@18730 77 ln -s /usr/bin/nail "$1/usr/bin/mailx"
sygne@996 78 status
sygne@996 79 fi
sygne@996 80 }