summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
Diffstat (limited to 'network')
-rw-r--r--network/ip2location-c/ip2location-c.SlackBuild12
-rw-r--r--network/ip2location-c/ip2location-c.info6
2 files changed, 12 insertions, 6 deletions
diff --git a/network/ip2location-c/ip2location-c.SlackBuild b/network/ip2location-c/ip2location-c.SlackBuild
index 2bd2be1d16..71249d9c61 100644
--- a/network/ip2location-c/ip2location-c.SlackBuild
+++ b/network/ip2location-c/ip2location-c.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for ip2location-c
-# Copyright 2012 Chris Abela, Malta
+# Copyright 2012, 2013 Chris Abela, Malta
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ip2location-c # Previously known as C-IP2Location
-VERSION=${VERSION:-4.0.2}
+VERSION=${VERSION:-6.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -68,6 +68,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+autoreconf -vif
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -77,18 +79,22 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-libtool-lock \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
+cp -a libIP2Location/libIP2Location_la-IP2Loc_DBInterface.{lo,o} $PKG/usr/lib${LIBDIRSUFFIX}/
+cp -a libIP2Location/IP2Loc_DBInterface.h $PKG/usr/include/
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
# NEWS is empty, so we do not bother to copy it
cp -a \
- AUTHORS COPYING ChangeLog INSTALL IP2LOCATION_PRODUCTS_CATALOG.PDF LICENSE.TXT README \
+ AUTHORS COPYING ChangeLog Developers_Guide.txt INSTALL LICENSE.TXT README \
$PKG/usr/doc/$PRGNAM-$VERSION
chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/network/ip2location-c/ip2location-c.info b/network/ip2location-c/ip2location-c.info
index de6b569a29..ec2b7f3e96 100644
--- a/network/ip2location-c/ip2location-c.info
+++ b/network/ip2location-c/ip2location-c.info
@@ -1,8 +1,8 @@
PRGNAM="ip2location-c"
-VERSION="4.0.2"
+VERSION="6.0.1"
HOMEPAGE="http://www.ip2location.com/c.aspx"
-DOWNLOAD="http://www.ip2location.com/downloads/ip2location-c-4.0.2.tar.gz"
-MD5SUM="cf49b2803a5e37b74b6c77856f2e406b"
+DOWNLOAD="http://www.ip2location.com/downloads/ip2location-c-6.0.1.tar.gz"
+MD5SUM="3992f912f0ca86c1ebb34513475f3f25"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""