summaryrefslogtreecommitdiffstats
path: root/network/ipv6calc/ipv6calc.SlackBuild
diff options
context:
space:
mode:
author Jason Graham <jgraham@compukix.net>2019-12-15 09:36:35 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-15 09:36:35 +0700
commit3a0a7eb055345a80d164b41f99841da510a8641c (patch)
treee4818c60469fbe330121a91922cf9681cee68301 /network/ipv6calc/ipv6calc.SlackBuild
parentd05f7c0f65ba02669f8ae7469c4e3036a1dcc83e (diff)
downloadslackbuilds-3a0a7eb055345a80d164b41f99841da510a8641c.tar.gz
slackbuilds-3a0a7eb055345a80d164b41f99841da510a8641c.tar.xz
network/ipv6calc: Updated for version 2.2.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/ipv6calc/ipv6calc.SlackBuild')
-rw-r--r--network/ipv6calc/ipv6calc.SlackBuild28
1 files changed, 20 insertions, 8 deletions
diff --git a/network/ipv6calc/ipv6calc.SlackBuild b/network/ipv6calc/ipv6calc.SlackBuild
index a9ea0bf1d5..31fe671993 100644
--- a/network/ipv6calc/ipv6calc.SlackBuild
+++ b/network/ipv6calc/ipv6calc.SlackBuild
@@ -4,7 +4,7 @@
# Copyright 2012, 2013 Chris Abela, Malta
# Copyright 2014 Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org
-# Copyright 2018 Jason Graham, MD <jgraha8@gmail.com>
+# Copyright 2018-2019 Jason Graham, MD <jgraham@compukix.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ipv6calc
-VERSION=${VERSION:-1.0.0}
+VERSION=${VERSION:-2.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,10 +71,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-unset ENABLE_IP2LOCATION
-unset ENABLE_GEOIP
-unset ENABLE_EXTERNAL
-unset ENABLE_MOD_IPV6CALC
+ENABLE_IP2LOCATION="--disable-ip2location"
+ENABLE_GEOIP="--disable-geoip"
+ENABLE_GEOIP2="--disable-geoip2"
+ENABLE_EXTERNAL="--disable-external"
+ENABLE_MOD_IPV6CALC="--disable-mod_ipv6calc"
if [ "$IP2LOCATION" = "yes" ]; then
ENABLE_IP2LOCATION="--enable-ip2location --with-ip2location-db=/usr/share/IP2Loc"
@@ -84,6 +85,10 @@ if [ "$GEOIP" = "yes" ]; then
ENABLE_GEOIP="--enable-geoip --with-geoip-db=/usr/share/GeoIP"
fi
+if [ "$GEOIP2" = "yes" ]; then
+ ENABLE_GEOIP2="--enable-mmdb --with-geoip-db=/usr/share/GeoIP"
+fi
+
if [ "$EXTERNAL" = "yes" ]; then
ENABLE_EXTERNAL="--enable-external"
fi
@@ -102,7 +107,9 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux \
- $ENABLE_IP2LOCATION $ENABLE_GEOIP $ENABLE_EXTERNAL $ENABLE_MOD_IPV6CALC
+ --disable-dbip \
+ --disable-dbip2 \
+ $ENABLE_IP2LOCATION $ENABLE_GEOIP $ENABLE_GEOIP2 $ENABLE_EXTERNAL $ENABLE_MOD_IPV6CALC
make
make install DESTDIR=$PKG
@@ -115,7 +122,9 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- CHANGES COPYING CREDITS ChangeLog LICENSE README TODO USAGE VERSION \
+ CHANGES COPYING CREDITS ChangeLog INSTALLING LICENSE README README.DBIP \
+ README.DBIP2 README.External README.GeoIP README.GeoIP2 README.IP2Location \
+ README.MaxMindDB TODO USAGE VERSION \
doc/ipv6calc.html \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -125,6 +134,9 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
if [ "$MOD_IPV6CALC" = "yes" ]; then
+ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/mod_ipv6calc
+ cp -a \
+ mod_ipv6calc/README.mod_ipv6calc $PKG/usr/doc/$PRGNAM-$VERSION/mod_ipv6calc
# Move the ipv6calc.conf to the proper location
mkdir -p $PKG/etc/httpd
mv $PKG/etc/{httpd.d,httpd/extra}