diff --git a/Geo-db-LiteCountry.spec b/Geo-db-LiteCountry.spec new file mode 100644 index 0000000..cdd1f5a --- /dev/null +++ b/Geo-db-LiteCountry.spec @@ -0,0 +1,61 @@ +Name: Geo-db-LiteCountry +Version: 20080803 +Release: 2mamba +Summary: GeoLite LiteCountry - Country database for GeoIP +Group: Applications/Databases +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.maxmind.com/app/geolitecountry +Source0: http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz +Source1: http://www.maxmind.com/download/geoip/database/LICENSE.txt +License: OPEN DATA LICENSE +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +GeoIP is a C library that enables the user to find the country that +any IP address or hostname originates from. It uses a file based +database that is accurate as of March 2003. This database simply +contains IP blocks as keys, and countries as values. This database +should be more complete and accurate than using reverse DNS lookups. + +GeoLite Country is similar to the GeoIP Country database, but is slightly less accurate. +Should you require greater accuracy, GeoIP Country is a drop-in replacement for GeoLite Country. +We also offer a free geolocation database on a city level. + +Under the license agreement, all advertising materials and documentation mentioning features +or use of this database must display the following acknowledgment: +"This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/." + +%prep + +%setup -q -c -T +cp %{SOURCE0} . +cp %{SOURCE1} . +gunzip GeoIP.dat.gz + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d %{buildroot}%{_datadir}/GeoIP + +install GeoIP.dat %{buildroot}%{_datadir}/GeoIP + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(644,root,root,755) +%dir %{_datadir}/GeoIP +%{_datadir}/GeoIP/*.dat +%doc *.txt + +%changelog +* Thu Aug 22 2013 Automatic Build System 20080803-2mamba +- automatic rebuild by autodist + +* Thu Aug 21 2008 gil 20080801CSV-1mamba +- package created by autospec diff --git a/GeoIP.dat.gz b/GeoIP.dat.gz new file mode 100644 index 0000000..e77376e Binary files /dev/null and b/GeoIP.dat.gz differ diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..24fadd1 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,39 @@ +There are two licenses, one for the C library software, and one for +the database. + +SOFTWARE LICENSE (C library) + +The GeoIP C Library is licensed under the LGPL. For details see +the COPYING file. + +OPEN DATA LICENSE (GeoLite Country and GeoLite City databases) + +Copyright (c) 2007 MaxMind LLC. All Rights Reserved. + +All advertising materials and documentation mentioning features or use of +this database must display the following acknowledgment: +"This product includes GeoLite data created by MaxMind, available from +http://maxmind.com/" + +Redistribution and use with or without modification, are permitted provided +that the following conditions are met: +1. Redistributions must retain the above copyright notice, this list of +conditions and the following disclaimer in the documentation and/or other +materials provided with the distribution. +2. All advertising materials and documentation mentioning features or use of +this database must display the following acknowledgement: +"This product includes GeoLite data created by MaxMind, available from +http://maxmind.com/" +3. "MaxMind" may not be used to endorse or promote products derived from this +database without specific prior written permission. + +THIS DATABASE IS PROVIDED BY MAXMIND.COM ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL MAXMIND.COM BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +DATABASE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index a4b5604..2853d2d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ # Geo-db-LiteCountry +GeoIP is a C library that enables the user to find the country that +any IP address or hostname originates from. It uses a file based +database that is accurate as of March 2003. This database simply +contains IP blocks as keys, and countries as values. This database +should be more complete and accurate than using reverse DNS lookups. + +GeoLite Country is similar to the GeoIP Country database, but is slightly less accurate. +Should you require greater accuracy, GeoIP Country is a drop-in replacement for GeoLite Country. +We also offer a free geolocation database on a city level. + +Under the license agreement, all advertising materials and documentation mentioning features +or use of this database must display the following acknowledgment: +"This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/." +