download and install GeoIP city database
authorScott Baker <smbaker@gmail.com>
Tue, 15 Apr 2014 06:51:04 +0000 (23:51 -0700)
committerScott Baker <smbaker@gmail.com>
Tue, 15 Apr 2014 06:51:04 +0000 (23:51 -0700)
opencloud.spec

index 256a190..3420bdf 100644 (file)
@@ -53,6 +53,10 @@ easy_install google_api_python_client
 
 wget -P /usr/lib/python2.7/site-packages/suit/static/suit/js http://code.jquery.com/jquery-1.9.1.min.js
 
+rm -f /usr/share/GeoIP/GeoLiteCity*
+wget -P /usr/share/GeoIP http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
+gzip -d /usr/share/GeoIP/GeoLiteCity*.gz
+
 %install
 rm -rf %{buildroot}
 mkdir -p  %{buildroot}