summaryrefslogtreecommitdiffstats
path: root/perl/perl-Proc-PID-File
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-Proc-PID-File')
-rw-r--r--perl/perl-Proc-PID-File/README9
-rw-r--r--perl/perl-Proc-PID-File/perl-Proc-PID-File.SlackBuild16
2 files changed, 18 insertions, 7 deletions
diff --git a/perl/perl-Proc-PID-File/README b/perl/perl-Proc-PID-File/README
index 7acd31ebee..14cc852942 100644
--- a/perl/perl-Proc-PID-File/README
+++ b/perl/perl-Proc-PID-File/README
@@ -1,4 +1,5 @@
-The Proc::PID::File is useful for writers of daemons and other processes that
-need to tell whether they are already running, in order to prevent multiple
-process instances. The module accomplishes this via *nix-style pidfiles,
-which are files that store a process identifier.
+The Proc::PID::File is useful for writers of daemons and other
+processes that need to tell whether they are already running, in
+order to prevent multiple process instances. The module accomplishes
+this via *nix-style pidfiles, which are files that store a process
+identifier.
diff --git a/perl/perl-Proc-PID-File/perl-Proc-PID-File.SlackBuild b/perl/perl-Proc-PID-File/perl-Proc-PID-File.SlackBuild
index 5f23cc7d41..ed24c59359 100644
--- a/perl/perl-Proc-PID-File/perl-Proc-PID-File.SlackBuild
+++ b/perl/perl-Proc-PID-File/perl-Proc-PID-File.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for perl-Proc-PID-File
@@ -22,15 +22,25 @@
# 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)
+
PRGNAM=perl-Proc-PID-File
VERSION=${VERSION:-1.27}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
ARCH=noarch
-CWD=$(pwd)
+# 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 "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -76,4 +86,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE