From 96f47475f9a1b9ac9c0dfcdb52d58df7e2e9a498 Mon Sep 17 00:00:00 2001 From: Petr Kletecka Date: Wed, 21 Jun 2017 22:25:33 +0700 Subject: network/swaks: Added (Swiss Army Knife for SMTP). Signed-off-by: Willy Sudiarto Raharjo --- network/swaks/swaks.SlackBuild | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 network/swaks/swaks.SlackBuild (limited to 'network/swaks/swaks.SlackBuild') diff --git a/network/swaks/swaks.SlackBuild b/network/swaks/swaks.SlackBuild new file mode 100644 index 0000000000000..9109cf9072c6e --- /dev/null +++ b/network/swaks/swaks.SlackBuild @@ -0,0 +1,46 @@ +#!/bin/sh + +# Slackware build script for swaks + +# Petr Kletecka petr@kle.cz <2017> + +PRGNAM=swaks +VERSION=${VERSION:-20170101.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=noarch + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz +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 {} \; + +mkdir -p $PKG/usr/bin +cat swaks > $PKG/usr/bin/swaks +chmod oug+x $PKG/usr/bin/swaks + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README LICENSE doc/* $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.${PKGTYPE:-tgz} -- cgit v1.2.3