network/ip2location-c: Updated for version 7.0.0.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
This commit is contained in:
parent
9157dfd2fb
commit
04d847173a
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for ip2location-c
|
# Slackware build script for ip2location-c
|
||||||
|
|
||||||
|
# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
|
||||||
|
|
||||||
# Copyright 2012, 2013 Chris Abela, Malta
|
# Copyright 2012, 2013 Chris Abela, Malta
|
||||||
# Copyright 2014 Ryan P.C. McQuen, WA, ryan.q@linux.com
|
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -23,7 +24,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=ip2location-c # Previously known as C-IP2Location
|
PRGNAM=ip2location-c # Previously known as C-IP2Location
|
||||||
VERSION=${VERSION:-6.0.2}
|
VERSION=${VERSION:-7.0.0}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -40,6 +41,8 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
DOCS="AUTHORS COPYING Developers_Guide.txt INSTALL LICENSE* NEWS README"
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
|
@ -65,9 +68,9 @@ cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
|
|
||||||
|
@ -81,21 +84,18 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
--disable-libtool-lock \
|
--disable-libtool-lock \
|
||||||
|
--disable-static \
|
||||||
--build=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
cp -a libIP2Location/libIP2Location_la-IP2Loc_DBInterface.{lo,o} $PKG/usr/lib${LIBDIRSUFFIX}/
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
# NEWS is empty, so we do not bother to copy it
|
|
||||||
cp -a \
|
cp -a \
|
||||||
AUTHORS COPYING ChangeLog Developers_Guide.txt INSTALL LICENSE.TXT README \
|
$DOCS \
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
|
chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="ip2location-c"
|
PRGNAM="ip2location-c"
|
||||||
VERSION="6.0.2"
|
VERSION="7.0.0"
|
||||||
HOMEPAGE="http://www.ip2location.com/c.aspx"
|
HOMEPAGE="http://www.ip2location.com/developers/c-7"
|
||||||
DOWNLOAD="http://ponce.cc/slackware/sources/repo/ip2location-c-6.0.2.tar.gz"
|
DOWNLOAD="http://www.ip2location.com/downloads/ip2location-c-7.0.0.tar.gz"
|
||||||
MD5SUM="b4f3944d1b9cd7a177d00799b3a900ea"
|
MD5SUM="4040a07e619fdac51216ee3900b0a2bb"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
Loading…
Reference in New Issue