From 04d847173a2b51cbd5a00f4739a119cd7693fca7 Mon Sep 17 00:00:00 2001 From: Ryan P.C. McQuen Date: Mon, 6 Apr 2015 15:31:25 -0700 Subject: network/ip2location-c: Updated for version 7.0.0. Signed-off-by: Ryan P.C. McQuen --- network/ip2location-c/ip2location-c.SlackBuild | 22 +++++++++++----------- network/ip2location-c/ip2location-c.info | 8 ++++---- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'network/ip2location-c') diff --git a/network/ip2location-c/ip2location-c.SlackBuild b/network/ip2location-c/ip2location-c.SlackBuild index c743af81ab..85d119ce78 100644 --- a/network/ip2location-c/ip2location-c.SlackBuild +++ b/network/ip2location-c/ip2location-c.SlackBuild @@ -1,8 +1,9 @@ #!/bin/sh - # Slackware build script for ip2location-c + +# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com + # Copyright 2012, 2013 Chris Abela, Malta -# Copyright 2014 Ryan P.C. McQuen, WA, ryan.q@linux.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ip2location-c # Previously known as C-IP2Location -VERSION=${VERSION:-6.0.2} +VERSION=${VERSION:-7.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,6 +41,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +DOCS="AUTHORS COPYING Developers_Guide.txt INSTALL LICENSE* NEWS README" + if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -65,9 +68,9 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -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 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; autoreconf -vif @@ -81,21 +84,18 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-libtool-lock \ + --disable-static \ --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 \ +find $PKG -print0 | xargs -0 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 Developers_Guide.txt INSTALL LICENSE.TXT README \ + $DOCS \ $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 4f51a26cd8..2f29c9e81f 100644 --- a/network/ip2location-c/ip2location-c.info +++ b/network/ip2location-c/ip2location-c.info @@ -1,8 +1,8 @@ PRGNAM="ip2location-c" -VERSION="6.0.2" -HOMEPAGE="http://www.ip2location.com/c.aspx" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/ip2location-c-6.0.2.tar.gz" -MD5SUM="b4f3944d1b9cd7a177d00799b3a900ea" +VERSION="7.0.0" +HOMEPAGE="http://www.ip2location.com/developers/c-7" +DOWNLOAD="http://www.ip2location.com/downloads/ip2location-c-7.0.0.tar.gz" +MD5SUM="4040a07e619fdac51216ee3900b0a2bb" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3