# SliTaz package receipt. PACKAGE="mailx" VERSION="12.4" CATEGORY="network" SHORT_DESC="Command-line Mail User Agent derived from Berkeley Mail." MAINTAINER="pankso@slitaz.org" LICENSE="BSD" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://heirloom.sourceforge.net/mailx.html" WGET_URL="$SF_MIRROR/project/heirloom/heirloom-mailx/$VERSION/$TARBALL" DEPENDS="sendmail" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/heirloom/files/heirloom-mailx/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/heirloom-mailx/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { sed -i 's|uname -m|echo i486|' Makefile sed -i 's|STACK|STACK_OF(X509)|' openssl.c make SENDMAIL=/usr/sbin/sendmail && make PREFIX=/usr UCBINSTALL=/usr/bin/install \ DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/etc $fs cp -a $install/usr/bin $fs/usr cd $fs/usr/bin ln -s mailx mail && ln -s mailx nail }