summaryrefslogtreecommitdiff
path: root/network/esmtp/esmtp.SlackBuild
diff options
context:
space:
mode:
authorVasilis Papavasileiou <el03020@mail.ntua.gr>2010-05-11 15:01:27 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 15:01:27 +0200
commit14220dd89fc8ee20206a64d0ba795bdc7cbae5fe (patch)
treefdcf48fb8f674d01ae00a9032d9f400992a93c3b /network/esmtp/esmtp.SlackBuild
parent0489ac2dab7283952218ddf4704163f431a88caf (diff)
downloadslackbuilds-14220dd89fc8ee20206a64d0ba795bdc7cbae5fe.tar.gz
network/esmtp: Initial import
Diffstat (limited to 'network/esmtp/esmtp.SlackBuild')
-rw-r--r--network/esmtp/esmtp.SlackBuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/network/esmtp/esmtp.SlackBuild b/network/esmtp/esmtp.SlackBuild
new file mode 100644
index 0000000000..f8644562b6
--- /dev/null
+++ b/network/esmtp/esmtp.SlackBuild
@@ -0,0 +1,59 @@
+#!/bin/sh
+
+# Slackware build script for esmtp
+# Written by Vasilis Papavasileiou <el03020 at mail dot ntua dot gr>
+# Modified by the SlackBuilds.org project
+
+PRGNAM=esmtp
+VERSION=0.5.1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS="AUTHORS COPYING INSTALL NEWS README TODO sample.esmtprc"
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf $PRGNAM-$VERSION
+tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
+cd $PRGNAM-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ || exit 1
+
+make || exit 1
+make install DESTDIR=$PKG || exit 1
+
+( cd $PKG
+ find . | xargs file | grep "executable" | 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
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $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
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz