public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-libs/geoip/files: geoipupdate-r1.sh
@ 2012-08-30  8:05 Sergey Popov (pinkbyte)
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Popov (pinkbyte) @ 2012-08-30  8:05 UTC (permalink / raw
  To: gentoo-commits

pinkbyte    12/08/30 08:05:35

  Added:                geoipupdate-r1.sh
  Log:
  New revision, added IPv6 database for cities wrt bug #429932. Thanks to mva
  
  (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-libs/geoip/files/geoipupdate-r1.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/files/geoipupdate-r1.sh?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/files/geoipupdate-r1.sh?rev=1.1&content-type=text/plain

Index: geoipupdate-r1.sh
===================================================================
#!/bin/sh

GEOIP_MIRROR="http://geolite.maxmind.com/download/geoip/database"
GEOIPDIR=/usr/share/GeoIP
TMPDIR=

DATABASES="GeoLiteCity GeoLiteCountry/GeoIP asnum/GeoIPASNum GeoIPv6 GeoLiteCityv6-beta/GeoLiteCityv6"

if [ -d "${GEOIPDIR}" ]; then
	cd $GEOIPDIR
	if [ -n "${DATABASES}" ]; then
		TMPDIR=$(mktemp -d geoipupdate.XXXXXXXXXX)

		echo "Updating GeoIP databases..."

		for db in $DATABASES; do
			fname=$(basename $db)

			wget --no-verbose -t 3 -T 60 "${GEOIP_MIRROR}/${db}.dat.gz" -O "${TMPDIR}/${fname}.dat.gz"
			gunzip -fdc "${TMPDIR}/${fname}.dat.gz" > "${TMPDIR}/${fname}.dat"
			mv "${TMPDIR}/${fname}.dat" "${GEOIPDIR}/${fname}.dat"
			chmod 0644 "${GEOIPDIR}/${fname}.dat"
		done
		[ -d "${TMPDIR}" ] && rm -rf $TMPDIR
	fi
fi






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-libs/geoip/files: geoipupdate-r1.sh
@ 2014-04-07  0:04 Jeroen Roovers (jer)
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers (jer) @ 2014-04-07  0:04 UTC (permalink / raw
  To: gentoo-commits

jer         14/04/07 00:04:03

  Removed:              geoipupdate-r1.sh
  Log:
  Old.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-07  0:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-07  0:04 [gentoo-commits] gentoo-x86 commit in dev-libs/geoip/files: geoipupdate-r1.sh Jeroen Roovers (jer)
  -- strict thread matches above, loose matches on Subject: below --
2012-08-30  8:05 Sergey Popov (pinkbyte)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox