diff options
Diffstat (limited to 'perl/perl-Geo-IP')
-rw-r--r-- | perl/perl-Geo-IP/README | 6 | ||||
-rw-r--r-- | perl/perl-Geo-IP/perl-Geo-IP.SlackBuild | 16 |
2 files changed, 16 insertions, 6 deletions
diff --git a/perl/perl-Geo-IP/README b/perl/perl-Geo-IP/README index 9f6b831e14..c8b9361e71 100644 --- a/perl/perl-Geo-IP/README +++ b/perl/perl-Geo-IP/README @@ -1,3 +1,3 @@ -Geo::IP perl module can be used to automatically select the geographically -closest mirror, or to analyze your web server logs to determine the -countries of your visiters. +Geo::IP perl module can be used to automatically select the +geographically closest mirror, or to analyze your web server logs to +determine the countries of your visiters. diff --git a/perl/perl-Geo-IP/perl-Geo-IP.SlackBuild b/perl/perl-Geo-IP/perl-Geo-IP.SlackBuild index 642c562d99..4a062f8338 100644 --- a/perl/perl-Geo-IP/perl-Geo-IP.SlackBuild +++ b/perl/perl-Geo-IP/perl-Geo-IP.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware Package Build Script for Geo-IP # Home Page https://metacpan.org/release/Geo-IP @@ -26,10 +26,13 @@ # NEGLIGENCE OR 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-Geo-IP" VERSION=${VERSION:-1.51} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM="$(printf $PRGNAM | cut -d- -f2-)" @@ -41,7 +44,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} @@ -103,4 +113,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 |