Skip to content

Commit 7a3198a

Browse files
committed
Added supports for DB25.
1 parent 8c0fd77 commit 7a3198a

File tree

14 files changed

+136
-52
lines changed

14 files changed

+136
-52
lines changed

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 IP2Location.com
3+
Copyright (c) 2021 IP2Location.com
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Developers_Guide.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ When IP2Location_clear_memory() function is called, and if any other process(es)
7272
After calling IP2Location_clear_memory(), the next call to IP2Location_set_lookup_mode() with IP2LOCATION_SHARED_MEMORY option will result in a new shared memory and will not reuse the old one if one exists and used by any other process. Please refer shm_open and shm_unlink man pages for more info.
7373

7474

75-
Version 8.3.1 09/11/2020
75+
Version 8.4.0 20/05/2021

LICENSE.TXT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 IP2Location.com
3+
Copyright (c) 2021 IP2Location.com
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
IP2Location is a C library that enables the user to find the country, region, city, latitude, longitude,
44
zip code, time zone, ISP, domain name, connection type, area code, weather, mobile network, elevation,
5-
usage type by IP address or hostname originates from. The library reads the geo location information
5+
usage type, address type and category by IP address or hostname originates from. The library reads the geo location information
66
from **IP2Location BIN data** file.
77

88
Supported IPv4 and IPv6 address.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
IP2Location is a C library that enables the user to find the country, region, city, latitude, longitude,
44
zip code, time zone, ISP, domain name, connection type, area code, weather, mobile network, elevation,
5-
usage type by IP address or hostname originates from. The library reads the geo location information
5+
usage type, address type and category by IP address or hostname originates from. The library reads the geo location information
66
from **IP2Location BIN data** file.
77

88
Supported IPv4 and IPv6 address.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AC_PREREQ(2.59)
2-
AC_INIT([IP2Loc], [8.3.1], [[email protected]])
2+
AC_INIT([IP2Loc], [8.4.0], [[email protected]])
33
AM_INIT_AUTOMAKE([ subdir-objects ])
44

55
AM_CONFIG_HEADER([config.h])

contrib/IP2Location.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%define version 8.3.1
1+
%define version 8.4.0
22

33
Name: IP2Location
44
Summary: C library for mapping IP address to geolocation information
@@ -122,6 +122,9 @@ install -p data/IPV6-COUNTRY.BIN %{buildroot}%{_datadir}/%{name}/IPV6-COUNTRY.SA
122122

123123

124124
%changelog
125+
* Thu May 20 2021 IP2Location <[email protected]> - 8.4.0
126+
- added supports for DB25 to display address type and category fields
127+
125128
* Mon Nov 09 2020 IP2Location <[email protected]> - 8.3.1-1
126129
- fixed version number
127130

contrib/IP2Location.spec.in

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ BuildRequires: perl(Math::BigInt)
1414
%description
1515
IP2Location C library enables the user to get the country, region, city,
1616
coordinates, ZIP code, time zone, ISP, domain name, connection type,
17-
area code, weather info, mobile carrier, elevation and usage type from any IP
18-
address or hostname. This library has been optimized for speed and memory
19-
utilization. The library contains API to query all IP2Location LITE and
20-
commercial binary databases.
17+
area code, weather info, mobile carrier, elevation, usage type, address type
18+
and category from any IP address or hostname. This library has been optimized
19+
for speed and memory utilization. The library contains API to query all IP2Location
20+
LITE and commercial binary databases.
2121

2222
Users can download the latest LITE database from IP2Location web site using e.g.
2323
the included downloader.
@@ -31,10 +31,10 @@ Provides: %{name}-devel = %{version}-%{release}
3131
%description devel
3232
IP2Location C library enables the user to get the country, region, city,
3333
coordinates, ZIP code, time zone, ISP, domain name, connection type,
34-
area code, weather info, mobile carrier, elevation and usage type from any IP
35-
address or hostname. This library has been optimized for speed and memory
36-
utilization. The library contains API to query all IP2Location LITE and
37-
commercial binary databases.
34+
area code, weather info, mobile carrier, elevation, usage type, address type
35+
and category from any IP address or hostname. This library has been optimized
36+
for speed and memory utilization. The library contains API to query all IP2Location
37+
LITE and commercial binary databases.
3838

3939
This package contains the development files for the IP2Location library.
4040

@@ -46,10 +46,10 @@ Requires: %{name} = %{version}-%{release}
4646
%description data-sample
4747
IP2Location C library enables the user to get the country, region, city,
4848
coordinates, ZIP code, time zone, ISP, domain name, connection type,
49-
area code, weather info, mobile carrier, elevation and usage type from any IP
50-
address or hostname. This library has been optimized for speed and memory
51-
utilization. The library contains API to query all IP2Location LITE and
52-
commercial binary databases.
49+
area code, weather info, mobile carrier, elevation, usage type, address type
50+
and category from any IP address or hostname. This library has been optimized
51+
for speed and memory utilization. The library contains API to query all IP2Location
52+
LITE and commercial binary databases.
5353

5454
This package contains the sample data files for testing the library.
5555

@@ -122,6 +122,18 @@ install -p data/IPV6-COUNTRY.BIN %{buildroot}%{_datadir}/%{name}/IPV6-COUNTRY.SA
122122

123123

124124
%changelog
125+
* Thu May 20 2021 IP2Location <[email protected]> - 8.4.0
126+
- added supports for DB25 to display address type and category fields
127+
128+
* Mon Nov 09 2020 IP2Location <[email protected]> - 8.3.1-1
129+
- fixed version number
130+
131+
* Tue Nov 03 2020 IP2Location <[email protected]> - 8.3.1
132+
- included ip2location lookup
133+
134+
* Fri Oct 30 2020 IP2Location <[email protected]> - 8.3.0
135+
- added new interface "IP2Location_bin_version" to display BIN database version
136+
125137
* Thu Oct 01 2020 IP2Location <[email protected]> - 8.2.0
126138
- reverted changes based on 8.0.9
127139

debian/copyright

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Upstream-Contact: IP2Location <[email protected]>
44
Source: https://github.com/chrislim2888/IP2Location-C-Library.git
55

66
Files: *
7-
Copyright: 2020 IP2Location <[email protected]>
7+
Copyright: 2021 IP2Location <[email protected]>
88
License: MIT
99

1010
Files: debian/*
11-
Copyright: 2020 IP2Location <[email protected]>
11+
Copyright: 2021 IP2Location <[email protected]>
1212
License: MIT
1313

1414
License: MIT

ip2location.1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ Query an IP address and display the country_short and city result
8383
\- mobile_brand
8484
\- elevation
8585
\- usage_type
86+
\- address_type
87+
\- category
8688

8789
\-n, \-\no-heading
8890
Suppress the heading display.
@@ -91,6 +93,6 @@ Query an IP address and display the country_short and city result
9193
This tool was created by IP2Location (http://www.ip2location.com).
9294

9395
.SH [COPYRIGHT AND LICENSE]
94-
Copyright 2001\-2020 IP2Location.com
96+
Copyright 2001\-2021 IP2Location.com
9597

9698
This tool is licensed under MIT.

0 commit comments

Comments
 (0)