From owner-freebsd-ports Sat Aug 10 23: 0:18 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9035437B400 for ; Sat, 10 Aug 2002 23:00:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D68DF43E6E for ; Sat, 10 Aug 2002 23:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7B602JU004821 for ; Sat, 10 Aug 2002 23:00:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7B602Ww004820; Sat, 10 Aug 2002 23:00:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E29737B400 for ; Sat, 10 Aug 2002 22:59:59 -0700 (PDT) Received: from utopia.leeym.com (utopia.leeym.com [61.218.64.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7B0843E42 for ; Sat, 10 Aug 2002 22:59:58 -0700 (PDT) (envelope-from leeym@utopia.leeym.com) Received: from localhost (localhost [127.0.0.1]) by utopia.leeym.com (Postfix) with ESMTP id 86E8E3E9E1B for ; Sun, 11 Aug 2002 13:59:42 +0800 (CST) Received: by utopia.leeym.com (Postfix, from userid 1000) id 106B93E9E1A; Sun, 11 Aug 2002 13:59:39 +0800 (CST) Message-Id: <20020811055939.106B93E9E1A@utopia.leeym.com> Date: Sun, 11 Aug 2002 13:59:39 +0800 (CST) From: Yen-Ming Lee Reply-To: Yen-Ming Lee To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/41536: new port: misc/GeoIP Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 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 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