wok view mailx/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents f7324cde07d7
children
line source
1 # SliTaz package receipt.
3 PACKAGE="mailx"
4 VERSION="12.4"
5 CATEGORY="network"
6 SHORT_DESC="Command-line Mail User Agent derived from Berkeley Mail."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://heirloom.sourceforge.net/mailx.html"
11 WGET_URL="$SF_MIRROR/project/heirloom/heirloom-mailx/$VERSION/$TARBALL"
13 DEPENDS="sendmail"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/heirloom/files/heirloom-mailx/ 2>/dev/null | \
19 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
20 sed '/scope="row/!d;s|.*/heirloom-mailx/||;s|/.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|uname -m|echo i486|' Makefile
27 sed -i 's|STACK|STACK_OF(X509)|' openssl.c
28 make SENDMAIL=/usr/sbin/sendmail &&
29 make PREFIX=/usr UCBINSTALL=/usr/bin/install \
30 DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/etc $fs
38 cp -a $install/usr/bin $fs/usr
39 cd $fs/usr/bin
40 ln -s mailx mail && ln -s mailx nail
41 }