Bug 195420 - [NEW PORT] net/ip2location - C library to find user's location
Summary: [NEW PORT] net/ip2location - C library to find user's location
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-26 18:45 UTC by Gasol Wu
Modified: 2014-12-13 18:01 UTC (History)
1 user (show)

See Also:


Attachments
shell archive (2.27 KB, text/plain)
2014-11-26 18:45 UTC, Gasol Wu
no flags Details
shell archive (2.28 KB, text/plain)
2014-11-26 18:54 UTC, Gasol Wu
no flags Details
testport log (22.29 KB, text/plain)
2014-11-26 19:05 UTC, Gasol Wu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gasol Wu 2014-11-26 18:45:00 UTC
Created attachment 149898 [details]
shell archive

IP2Location is a C library that enables the user to find the country, region,
city, latitude, longitude, zip code, time zone, ISP, domain name, connection
type, area code, weather, mobile network, elevation, usage type by IP address
or hostname originates from.  It contains a demo IP2Location IP-COUNTRY BIN
database which consists of real data for IP address range 0.0.0.0 to 99.255.
255.255.  This database contains IP address blocks as key and countries as
values.

WWW: http://www.ip2location.com/c.aspx
Comment 1 Gasol Wu 2014-11-26 18:52:34 UTC
Comment on attachment 149898 [details]
shell archive

># This is a shell archive.  Save it in a file, remove anything before
># this line, and then unpack it by entering "sh file".  Note, it may
># create directories; files and directories will be owned by you and
># have default permissions.
>#
># This archive contains:
>#
>#	ip2location/
>#	ip2location//distinfo
>#	ip2location//Makefile
>#	ip2location//pkg-descr
>#	ip2location//pkg-plist
>#
>echo c - ip2location/
>mkdir -p ip2location/ > /dev/null 2>&1
>echo x - ip2location//distinfo
>sed 's/^X//' >ip2location//distinfo << 'END-of-ip2location//distinfo'
>XSHA256 (ip2location-c-6.0.3.tar.gz) = 3bd2a46544c7a433c55f96b602bc35a9f7782e2b0addfdbe9eb8ecaa717f7f10
>XSIZE (ip2location-c-6.0.3.tar.gz) = 3145564
>END-of-ip2location//distinfo
>echo x - ip2location//Makefile
>sed 's/^X//' >ip2location//Makefile << 'END-of-ip2location//Makefile'
>X# Created by: Gasol Wu <gasol.wu@gmail.com>
>X# $FreeBSD$
>X
>XPORTNAME=	ip2location
>XPORTVERSION=	6.0.3
>XCATEGORIES=	net
>XMASTER_SITES=	http://www.ip2location.com/downloads/
>XDISTNAME=	${PORTNAME}-c-${PORTVERSION}
>X
>XMAINTAINER=	gasol.wu@gmail.com
>XCOMMENT=	C library to find user\'s location
>X
>XLICENSE=	LGPL3
>X
>XUSES=		libtool:keepla perl5
>XHAS_CONFIGURE=	yes
>XINSTALL_TARGET=	install-strip
>X
>Xpost-configure:
>X	(cd $(WRKSRC)/data && $(MAKE) convert)
>X
>X.include <bsd.port.mk>
>END-of-ip2location//Makefile
>echo x - ip2location//pkg-descr
>sed 's/^X//' >ip2location//pkg-descr << 'END-of-ip2location//pkg-descr'
>XIP2Location is a C library that enables the user to find the country, region,
>Xcity, latitude, longitude, zip code, time zone, ISP, domain name, connection
>Xtype, area code, weather, mobile network, elevation, usage type by IP address
>Xor hostname originates from.  It contains a demo IP2Location IP-COUNTRY BIN
>Xdatabase which consists of real data for IP address range 0.0.0.0 to 99.255.
>X255.255.  This database contains IP address blocks as key and countries as
>Xvalues.
>X
>XWWW: http://www.ip2location.com/c.aspx
>END-of-ip2location//pkg-descr
>echo x - ip2location//pkg-plist
>sed 's/^X//' >ip2location//pkg-plist << 'END-of-ip2location//pkg-plist'
>Xinclude/IP2Loc_DBInterface.h
>Xinclude/IP2Location.h
>Xlib/libIP2Location.a
>Xlib/libIP2Location.la
>Xlib/libIP2Location.so
>Xlib/libIP2Location.so.1
>Xlib/libIP2Location.so.1.0.0
>Xshare/IP2Loc/IP-COUNTRY.BIN
>Xshare/IP2Loc/IPV6-COUNTRY.BIN
>END-of-ip2location//pkg-plist
>exit
>
Comment 2 Gasol Wu 2014-11-26 18:54:54 UTC
Created attachment 149899 [details]
shell archive
Comment 3 Gasol Wu 2014-11-26 19:05:07 UTC
Created attachment 149903 [details]
testport log
Comment 4 commit-hook freebsd_committer 2014-12-13 18:01:07 UTC
A commit references this bug:

Author: pawel
Date: Sat Dec 13 18:00:12 UTC 2014
New revision: 374667
URL: https://svnweb.freebsd.org/changeset/ports/374667

Log:
  IP2Location is a C library that enables the user to find the country, region,
  city, latitude, longitude, zip code, time zone, ISP, domain name, connection
  type, area code, weather, mobile network, elevation, usage type by IP address
  or hostname originates from.  It contains a demo IP2Location IP-COUNTRY BIN
  database which consists of real data for IP address range 0.0.0.0 to 99.255.
  255.255.  This database contains IP address blocks as key and countries as
  values.

  WWW: http://www.ip2location.com/c.aspx

  PR:		195420
  Submitted by:	Gasol Wu <gasol.wu@gmail.com>

Changes:
  head/net/Makefile
  head/net/ip2location/
  head/net/ip2location/Makefile
  head/net/ip2location/distinfo
  head/net/ip2location/pkg-descr
  head/net/ip2location/pkg-plist