libraries/libesmtp: Updated for version 1.0.6.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2017-04-11 18:41:47 +07:00
parent 20ea4e193d
commit 279ee7a305
3 changed files with 19 additions and 18 deletions

View file

@ -7,13 +7,13 @@
# Modified by the SlackBuilds.org project
PRGNAM=libesmtp
VERSION=${VERSION:-1.0.4}
VERSION=${VERSION:-1.0.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -26,8 +26,8 @@ OUTPUT=${OUTPUT:-/tmp}
DOCS="AUTHORS ChangeLog COPYING* INSTALL NEWS Notes README TODO examples"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -40,31 +40,32 @@ else
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
cd $PRGNAM-$VERSION || exit 1
tar -xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-static=no \
|| exit 1
--enable-static=no
make || exit 1
make install DESTDIR=$PKG || exit 1
make
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,8 +1,8 @@
PRGNAM="libesmtp"
VERSION="1.0.4"
HOMEPAGE="http://www.stafford.uklinux.net/libesmtp/"
DOWNLOAD="http://www.stafford.uklinux.net/libesmtp/libesmtp-1.0.4.tar.bz2"
MD5SUM="8b4e8a794adc46268f0c6a0b3fb79486"
VERSION="1.0.6"
HOMEPAGE="http://freecode.com/projects/libesmtp/"
DOWNLOAD="https://ftp.osuosl.org/pub/blfs/svn/l/libesmtp-1.0.6.tar.bz2"
MD5SUM="bf3915e627fd8f35524a8fdfeed979c8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -15,5 +15,5 @@ libesmtp: (MUA) or another program that must be able to post electronic mail
libesmtp: but where mail functionality is not the program's primary purpose.
libesmtp: LibESMTP is not intended to be used as part of a program that
libesmtp: implements a Mail Transport Agent.
libesmtp: Homepage: http://www.stafford.uklinux.net/libesmtp/
libesmtp: Homepage: http://freecode.com/projects/libesmtp/
libesmtp: