network/GeoIP: Updated for version 1.4.5
This commit is contained in:
parent
27bfeb10fd
commit
73bec45e99
|
@ -4,10 +4,11 @@
|
|||
# Written by Yalla-One <yallaone@gmail.com>
|
||||
|
||||
PRGNAM=GeoIP
|
||||
VERSION=1.4.3
|
||||
VERSION=1.4.5
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -19,6 +20,8 @@ if [ "$ARCH" = "i486" ]; then
|
|||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -27,7 +30,7 @@ rm -rf $PKG
|
|||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
@ -38,13 +41,15 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--disable-static \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# Let's not clobber config files
|
||||
mv $PKG/etc/GeoIP.conf.default $PKG/etc/GeoIP.conf.default.new
|
||||
mv $PKG/etc/GeoIP.conf $PKG/etc/GeoIP.conf.new
|
||||
|
||||
( cd $PKG
|
||||
|
@ -52,7 +57,7 @@ mv $PKG/etc/GeoIP.conf $PKG/etc/GeoIP.conf.new
|
|||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
( cd $PKG/usr/man
|
||||
( cd $PKG/usr/man || exit 1
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="GeoIP"
|
||||
VERSION="1.4.3"
|
||||
VERSION="1.4.5"
|
||||
HOMEPAGE="http://www.maxmind.com/app/c"
|
||||
DOWNLOAD="http://www.maxmind.com/download/geoip/api/c/GeoIP-1.4.3.tar.gz"
|
||||
MD5SUM="d364ec127a1092749d589a79001f2d8c"
|
||||
DOWNLOAD="http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.5.tar.gz"
|
||||
MD5SUM="d95c34cf8ebd48e357b1812db5d75cf1"
|
||||
MAINTAINER="Yalla-One"
|
||||
EMAIL="yallaone@gmail.com"
|
||||
APPROVED="rworkman"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
GeoIP - GeoIP API and database
|
||||
|
||||
GeoIP is the proprietary technology that drives MaxMind's IP
|
||||
geolocation data and services. GeoIP provides businesses with a
|
||||
non-invasive way to determine geographical and other information
|
||||
|
|
|
@ -11,6 +11,5 @@ config() {
|
|||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/GeoIP.conf.default.new
|
||||
config etc/GeoIP.conf.new
|
||||
|
||||
|
|
Loading…
Reference in New Issue