From a83168953a31f794e5061b438c18965efee8a12f Mon Sep 17 00:00:00 2001 From: Grigorios Bouzakis Date: Thu, 13 May 2010 00:37:22 +0200 Subject: network/msmtp: Updated for version 1.4.19 --- network/msmtp/README | 2 +- network/msmtp/doinst.sh | 1 + network/msmtp/msmtp.SlackBuild | 56 ++++++++++++++++++++++++++++-------------- network/msmtp/msmtp.info | 14 ++++++----- network/msmtp/slack-desc | 10 ++++---- 5 files changed, 52 insertions(+), 31 deletions(-) create mode 100644 network/msmtp/doinst.sh (limited to 'network/msmtp') diff --git a/network/msmtp/README b/network/msmtp/README index 5ddec9b8c0..9ba41b184c 100644 --- a/network/msmtp/README +++ b/network/msmtp/README @@ -1,4 +1,4 @@ -msmtp is a simple SMTP client +msmtp is a simple SMTP client. In the default mode, msmtp transmits a mail to an SMTP server (for example, at a free mail provider) which does the delivery. diff --git a/network/msmtp/doinst.sh b/network/msmtp/doinst.sh new file mode 100644 index 0000000000..b7c8257e07 --- /dev/null +++ b/network/msmtp/doinst.sh @@ -0,0 +1 @@ +chroot . /usr/bin/install-info /usr/info/msmtp.info.gz /usr/info/dir 2> /dev/null diff --git a/network/msmtp/msmtp.SlackBuild b/network/msmtp/msmtp.SlackBuild index e5b63bb074..96245e655b 100644 --- a/network/msmtp/msmtp.SlackBuild +++ b/network/msmtp/msmtp.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for msmtp # Copyright 2007 Martin Lefebvre +# Copyright 2009 Grigorios Bouzakis # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,13 +23,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified by the SlackBuilds.org project - PRGNAM=msmtp -VERSION=1.4.13 +VERSION=${VERSION:-1.4.19} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -36,48 +36,66 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $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 . -chmod -R a-s,u+w,go+r-w . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --infodir=/usr/info \ - || exit 1 + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG -make || exit 1 -make install DESTDIR=$PKG || exit 1 +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done ) -gzip -9 $PKG/usr/man/man?/* $PKG/usr/info/*.info -rm $PKG/usr/info/dir +rm -f $PKG/usr/info/dir +gzip -9 $PKG/usr/info/*.info* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README* THANKS \ - doc/*.txt doc/msmtp.html doc/msmtp.pdf doc/msmtprc-system.example \ - doc/msmtprc-user.example $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS doc/*.txt \ + doc/msmtp.html doc/msmtprc-system.example doc/msmtprc-user.example \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/msmtp/msmtp.info b/network/msmtp/msmtp.info index 0e9a6abd75..f4fdf0611a 100644 --- a/network/msmtp/msmtp.info +++ b/network/msmtp/msmtp.info @@ -1,8 +1,10 @@ PRGNAM="msmtp" -VERSION="1.4.13" -HOMEPAGE="http://msmtp.sf.net" -DOWNLOAD="http://downloads.sourceforge.net/msmtp/msmtp-1.4.13.tar.bz2" -MD5SUM="021a91d7145100ad0f00c912c8104e03" -MAINTAINER="Martin Lefebvre" -EMAIL="dadexter@gmail.com" +VERSION="1.4.19" +HOMEPAGE="http://msmtp.sourceforge.net" +DOWNLOAD="http://downloads.sourceforge.net/msmtp/msmtp-1.4.19.tar.bz2" +MD5SUM="f0afdc943bf7c8a3a3bf3fe1a73072c4" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Grigorios Bouzakis" +EMAIL="grbzks@xsmail.com" APPROVED="rworkman" diff --git a/network/msmtp/slack-desc b/network/msmtp/slack-desc index a66686c190..9d6ffccdcd 100644 --- a/network/msmtp/slack-desc +++ b/network/msmtp/slack-desc @@ -7,13 +7,13 @@ |-----handy-ruler------------------------------------------------------| msmtp: msmtp (simple SMTP client) -msmtp: +msmtp: msmtp: In the default mode, msmtp transmits a mail to an SMTP server msmtp: (for example, at a free mail provider) which does the delivery. -msmtp: +msmtp: msmtp: To use this program with your mail user agent (MUA), create a msmtp: configuration file with your mail account(s) and tell your MUA msmtp: to call msmtp instead of /usr/sbin/sendmail. -msmtp: -msmtp: -msmtp: +msmtp: +msmtp: Homepage: http://msmtp.sourceforge.net/ +msmtp: -- cgit v1.2.3-65-gdbad