summaryrefslogtreecommitdiffstats
path: root/source/n/fetchmail
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/fetchmail')
-rwxr-xr-xsource/n/fetchmail/fetchmail.SlackBuild17
-rw-r--r--source/n/fetchmail/slack-desc12
2 files changed, 19 insertions, 10 deletions
diff --git a/source/n/fetchmail/fetchmail.SlackBuild b/source/n/fetchmail/fetchmail.SlackBuild
index 14c867daa..37944c341 100755
--- a/source/n/fetchmail/fetchmail.SlackBuild
+++ b/source/n/fetchmail/fetchmail.SlackBuild
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/bin/bash
-# Copyright 2008, 2009, 2010, 2011, 2016 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2011, 2016, 2018 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -20,9 +20,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PKGNAM=fetchmail
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-4}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -34,6 +36,14 @@ if [ -z "$ARCH" ]; then
esac
fi
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
+ exit 0
+fi
+
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "s390" ]; then
@@ -46,7 +56,6 @@ fi
NUMJOBS=${NUMJOBS:-" -j7 "}
-CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-fetchmail
diff --git a/source/n/fetchmail/slack-desc b/source/n/fetchmail/slack-desc
index 7be0c1e4b..3a09b1f44 100644
--- a/source/n/fetchmail/slack-desc
+++ b/source/n/fetchmail/slack-desc
@@ -1,18 +1,18 @@
# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
+# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct. It's also
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
fetchmail: fetchmail (mail retrieval and forwarding utility)
fetchmail:
-fetchmail: fetchmail is a mail retrieval and forwarding utility. It fetches
+fetchmail: fetchmail is a mail retrieval and forwarding utility. It fetches
fetchmail: mail from a POP, IMAP, or ETRN-capable remote mailserver and forwards
-fetchmail: it to your local (client) machine's delivery system. You can then
+fetchmail: it to your local (client) machine's delivery system. You can then
fetchmail: handle the retrieved mail using normal mail user agents such as elm,
-fetchmail: pine, or mutt. The fetchmail utility can be run in a daemon mode to
+fetchmail: pine, or mutt. The fetchmail utility can be run in a daemon mode to
fetchmail: repeatedly poll one or more systems at a specified interval.
fetchmail:
fetchmail: fetchmail is probably not secure.