summaryrefslogtreecommitdiffstats
path: root/perl/perl-Sys-Mmap
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-Sys-Mmap')
-rw-r--r--perl/perl-Sys-Mmap/README3
-rw-r--r--perl/perl-Sys-Mmap/perl-Sys-Mmap.SlackBuild22
-rw-r--r--perl/perl-Sys-Mmap/perl-Sys-Mmap.info4
3 files changed, 21 insertions, 8 deletions
diff --git a/perl/perl-Sys-Mmap/README b/perl/perl-Sys-Mmap/README
index a320862f31..43d3c4ab36 100644
--- a/perl/perl-Sys-Mmap/README
+++ b/perl/perl-Sys-Mmap/README
@@ -2,4 +2,5 @@ perl-Sys-Mmap (uses mmap to map in a file as a Perl variable)
The mmap module uses the POSIX mmap call to map in a file as a Perl
variable. Memory access by mmap may be shared between threads or
-forked processes, and may be a disc file that has been mapped into memory.
+forked processes, and may be a disc file that has been mapped into
+memory.
diff --git a/perl/perl-Sys-Mmap/perl-Sys-Mmap.SlackBuild b/perl/perl-Sys-Mmap/perl-Sys-Mmap.SlackBuild
index 3a97f8508d..cd20611dd1 100644
--- a/perl/perl-Sys-Mmap/perl-Sys-Mmap.SlackBuild
+++ b/perl/perl-Sys-Mmap/perl-Sys-Mmap.SlackBuild
@@ -1,6 +1,7 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for perl-Sys-Mmap
+
# Copyright 2010 V'yacheslav Stetskevych <slava18@gmail.com>
# All rights reserved.
#
@@ -22,11 +23,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-SRCNAM=Sys-Mmap
-PRGNAM=perl-$SRCNAM
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=perl-Sys-Mmap
VERSION=${VERSION:-0.17}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+SRCNAM=Sys-Mmap
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +41,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-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}
@@ -98,4 +110,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
diff --git a/perl/perl-Sys-Mmap/perl-Sys-Mmap.info b/perl/perl-Sys-Mmap/perl-Sys-Mmap.info
index 833fcce4b4..e02e636514 100644
--- a/perl/perl-Sys-Mmap/perl-Sys-Mmap.info
+++ b/perl/perl-Sys-Mmap/perl-Sys-Mmap.info
@@ -6,5 +6,5 @@ MD5SUM="1fc827d67d468c594ab486c58047d57c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Glenn Becker"
-EMAIL="glenn.becker@gmail.com"
+MAINTAINER="orphaned - no maintainer"
+EMAIL="nobody@nowhere.com"