From 14220dd89fc8ee20206a64d0ba795bdc7cbae5fe Mon Sep 17 00:00:00 2001 From: Vasilis Papavasileiou Date: Tue, 11 May 2010 15:01:27 +0200 Subject: network/esmtp: Initial import --- network/esmtp/README | 11 ++++++++ network/esmtp/esmtp.SlackBuild | 59 ++++++++++++++++++++++++++++++++++++++++++ network/esmtp/esmtp.info | 8 ++++++ network/esmtp/slack-desc | 11 ++++++++ 4 files changed, 89 insertions(+) create mode 100644 network/esmtp/README create mode 100644 network/esmtp/esmtp.SlackBuild create mode 100644 network/esmtp/esmtp.info create mode 100644 network/esmtp/slack-desc (limited to 'network') diff --git a/network/esmtp/README b/network/esmtp/README new file mode 100644 index 0000000000..04252c67f9 --- /dev/null +++ b/network/esmtp/README @@ -0,0 +1,11 @@ +ESMTP is a user-configurable relay-only MTA with a sendmail-compatible syntax, +based on libESMTP and supporting the AUTH (including the CRAM-MD5 and NTLM +SASL mechanisms) and StartTLS SMTP extensions. + +The doinst.sh script will create symlinks from /usr/sbin/sendmail and other +typical sendmail paths to /usr/bin/esmtp if sendmail is not already installed. + +ESMTP requires LibESMTP, also available at SlackBuilds.org + +NOTE: The esmtp package conflicts with the stock sendmail package - you must + uninstall sendmail before installing esmtp. 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 +# 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 diff --git a/network/esmtp/esmtp.info b/network/esmtp/esmtp.info new file mode 100644 index 0000000000..532a4ee835 --- /dev/null +++ b/network/esmtp/esmtp.info @@ -0,0 +1,8 @@ +PRGNAM="esmtp" +VERSION="0.5.1" +HOMEPAGE="http://esmtp.sourceforge.net/" +DOWNLOAD="http://switch.dl.sourceforge.net/sourceforge/esmtp/esmtp-0.5.1.tar.bz2" +MD5SUM="9f0b809e891a548910f099efc4315b02" +MAINTAINER="Vasilis Papavasileiou" +EMAIL="el03020@mail.ntua.gr" +APPROVED="rworkman" diff --git a/network/esmtp/slack-desc b/network/esmtp/slack-desc new file mode 100644 index 0000000000..adc31ece0d --- /dev/null +++ b/network/esmtp/slack-desc @@ -0,0 +1,11 @@ +esmtp: esmtp (A simple relay-only MTA) +esmtp: +esmtp: ESMTP is a user-configurable relay-only MTA with a sendmail-compatible +esmtp: syntax, based on libESMTP and supporting the AUTH (including the +esmtp: CRAM-MD5 and NTLM SASL mechanisms) and StartTLS SMTP extensions. +esmtp: +esmtp: Homepage: http://esmtp.sourceforge.net/ +esmtp: +esmtp: +esmtp: +esmtp: -- cgit v1.2.3