Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Aug 2002 13:59:39 +0800 (CST)
From:      Yen-Ming Lee <leeym@utopia.leeym.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/41536: new port: misc/GeoIP
Message-ID:  <20020811055939.106B93E9E1A@utopia.leeym.com>

next in thread | raw e-mail | index | archive | help

>Number:         41536
>Category:       ports
>Synopsis:       new port: misc/GeoIP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 10 23:00:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 4.6-STABLE FreeBSD 4.6-STABLE #66: Tue Aug 6 05:18:25 CST 2002 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386


	
>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 2002.  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.

This module can be used to automatically select the geographically closest
mirror, to analyze your web server logs to determine the countries of your
visitors, for credit card fraud detection, and for software export controls.

WWW: http://maxmind.com/geoip/

>How-To-Repeat:
	
>Fix:

	

--- GeoIP.shar begins here ---
# 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:
#
#	GeoIP
#	GeoIP/Makefile
#	GeoIP/pkg-comment
#	GeoIP/pkg-descr
#	GeoIP/pkg-plist
#	GeoIP/files
#	GeoIP/files/patch-apps::Makefile.in
#	GeoIP/files/patch-apps::geoipupdate.c
#	GeoIP/distinfo
#
echo c - GeoIP
mkdir -p GeoIP > /dev/null 2>&1
echo x - GeoIP/Makefile
sed 's/^X//' >GeoIP/Makefile << 'END-of-GeoIP/Makefile'
X# New ports collection makefile for:	GeoIP
X# Date created:				10 August 2002
X# Whom:	      				Yen-Ming Lee <leeym@leeym.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	GeoIP
XPORTVERSION=	0.3.0
XCATEGORIES=	misc
XMASTER_SITES=	http://maxmind.com/download/geoip/api/c/
X
XMAINTAINER=	leeym@leeym.com
X
XLIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
X
XUSE_LIBTOOL=	yes
XCONFIGURE_ARGS=	--with-gnu-ld=yes
XINSTALLS_SHLIB=	yes
X
XMAN1=		geoiplookup.1 geoipupdate.1
X
X.include <bsd.port.mk>
END-of-GeoIP/Makefile
echo x - GeoIP/pkg-comment
sed 's/^X//' >GeoIP/pkg-comment << 'END-of-GeoIP/pkg-comment'
XFind the country that any IP address or hostname originates from
END-of-GeoIP/pkg-comment
echo x - GeoIP/pkg-descr
sed 's/^X//' >GeoIP/pkg-descr << 'END-of-GeoIP/pkg-descr'
XGeoIP is a C library that enables the user to find the country that any
XIP address or hostname originates from.  It uses a file based database
Xthat is accurate as of March 2002.  This database simply contains IP blocks
Xas keys, and countries as values.  This database should be more complete and
Xaccurate than using reverse DNS lookups.
X
XThis module can be used to automatically select the geographically closest
Xmirror, to analyze your web server logs to determine the countries of your
Xvisitors, for credit card fraud detection, and for software export controls.
X
XWWW: http://maxmind.com/geoip/
END-of-GeoIP/pkg-descr
echo x - GeoIP/pkg-plist
sed 's/^X//' >GeoIP/pkg-plist << 'END-of-GeoIP/pkg-plist'
Xbin/geoiplookup
Xbin/geoipupdate
Xetc/GeoIP.conf
Xetc/GeoIP.conf.default
Xinclude/GeoIP.h
Xlib/libGeoIP.a
Xlib/libGeoIP.la
Xlib/libGeoIP.so
Xlib/libGeoIP.so.3
Xshare/GeoIP/GeoIP.dat
X@dirrm share/GeoIP
END-of-GeoIP/pkg-plist
echo c - GeoIP/files
mkdir -p GeoIP/files > /dev/null 2>&1
echo x - GeoIP/files/patch-apps::Makefile.in
sed 's/^X//' >GeoIP/files/patch-apps::Makefile.in << 'END-of-GeoIP/files/patch-apps::Makefile.in'
X--- apps/Makefile.in.orig	Sun Aug  4 16:30:35 2002
X+++ apps/Makefile.in	Sat Aug 10 09:34:34 2002
X@@ -83,7 +83,7 @@
X install_sh = @install_sh@
X 
X INCLUDES = \
X-	-I$(top_srcdir)/libGeoIP		\
X+	-I$(top_srcdir)/libGeoIP -I$(includedir) \
X 	-Wall -ansi
X 
X 
END-of-GeoIP/files/patch-apps::Makefile.in
echo x - GeoIP/files/patch-apps::geoipupdate.c
sed 's/^X//' >GeoIP/files/patch-apps::geoipupdate.c << 'END-of-GeoIP/files/patch-apps::geoipupdate.c'
X--- apps/geoipupdate.c.orig	Mon Jul 29 16:05:15 2002
X+++ apps/geoipupdate.c	Sat Aug 10 09:34:34 2002
X@@ -39,7 +39,7 @@
X 	int line_index = 0;
X 	unsigned char *lineptr = malloc(sizeof(char) * n);
X 	char *a_license_key_str, *a_ptr;
X-	char *the_license_key_str;
X+	char *the_license_key_str = NULL;
X 	char c;
X 	int err;
X 
END-of-GeoIP/files/patch-apps::geoipupdate.c
echo x - GeoIP/distinfo
sed 's/^X//' >GeoIP/distinfo << 'END-of-GeoIP/distinfo'
XMD5 (GeoIP-0.3.0.tar.gz) = d6f38e98fe050e767a076a5ac2ba71b1
END-of-GeoIP/distinfo
exit
--- GeoIP.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020811055939.106B93E9E1A>