diff options
author | Petr Kletecka <petr@kle.cz> | 2017-06-21 22:25:33 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-06-24 08:32:19 +0700 |
commit | 96f47475f9a1b9ac9c0dfcdb52d58df7e2e9a498 (patch) | |
tree | 3c5cc81799b544d344edab65f1cd2a9aef23c317 /network/swaks/swaks.SlackBuild | |
parent | b2c81e749c0793d3f814b61dec2e0c34a9269c2b (diff) |
network/swaks: Added (Swiss Army Knife for SMTP).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/swaks/swaks.SlackBuild')
-rw-r--r-- | network/swaks/swaks.SlackBuild | 46 |
1 files changed, 46 insertions, 0 deletions
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} |