Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2004 16:21:26 +0100 (CET)
From:      Stefan Walter <sw@gegenunendlich.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/63490: [NEW PORT] net/py-GeoIP: Mapping of IP addresses/hostnames to country names in Python
Message-ID:  <20040228152126.884413FB6@kyuzo.dunkelkammer.void>
Resent-Message-ID: <200402281530.i1SFUJ3Z047656@freefall.freebsd.org>

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

>Number:         63490
>Category:       ports
>Synopsis:       [NEW PORT] net/py-GeoIP: Mapping of IP addresses/hostnames to country names in Python
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 28 07:30:19 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Walter
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
Infinity Approximation Task Force
>Environment:
System: FreeBSD kyuzo.dunkelkammer.void 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sat Feb 14 20:59:15 CET 2004
>Description:
Python API to the GeoIP library for obtaining the country, region, city,
latitude, and longitude of any IP address.

Depends on net/GeoIP.

WWW: http://www.maxmind.com/app/python

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:
--- py23-GeoIP-1.2.0.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:
#
#	py-GeoIP
#	py-GeoIP/Makefile
#	py-GeoIP/distinfo
#	py-GeoIP/pkg-descr
#
echo c - py-GeoIP
mkdir -p py-GeoIP > /dev/null 2>&1
echo x - py-GeoIP/Makefile
sed 's/^X//' >py-GeoIP/Makefile << 'END-of-py-GeoIP/Makefile'
X# New ports collection makefile for:	py-GeoIP
X# Date created:		27 February 2004
X# Whom:			Stefan Walter <sw@gegenunendlich.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	GeoIP
XPORTVERSION=	1.2.0
XCATEGORIES=	net python
XMASTER_SITES=	http://www.maxmind.com/download/geoip/api/python/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
XDISTNAME=	${PORTNAME}-Python-${PORTVERSION}
X
XMAINTAINER=	sw@gegenunendlich.de
XCOMMENT=	Mapping of IP addresses/hostnames to country names in Python
X
XLIB_DEPENDS=	GeoIP:${PORTSDIR}/net/GeoIP
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=yes
X
XEXAMPLESDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
XEXAMPLE_FILES=	README test.py test_city.py test_org.py
X
XPLIST_FILES=	%%PYTHON_SITELIBDIR%%/GeoIP.so \
X		%%PORTDOCS%%%%EXAMPLESDIR%%/README \
X		%%PORTDOCS%%%%EXAMPLESDIR%%/test.py \
X		%%PORTDOCS%%%%EXAMPLESDIR%%/test_city.py \
X		%%PORTDOCS%%%%EXAMPLESDIR%%/test_org.py
XPLIST_DIRS=	%%PORTDOCS%%%%EXAMPLESDIR%%
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${EXAMPLESDIR}
X.for file in ${EXAMPLE_FILES}
X	@${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-py-GeoIP/Makefile
echo x - py-GeoIP/distinfo
sed 's/^X//' >py-GeoIP/distinfo << 'END-of-py-GeoIP/distinfo'
XMD5 (GeoIP-Python-1.2.0.tar.gz) = ec40f604fb64971035b1ab72866d8fc1
XSIZE (GeoIP-Python-1.2.0.tar.gz) = 9622
END-of-py-GeoIP/distinfo
echo x - py-GeoIP/pkg-descr
sed 's/^X//' >py-GeoIP/pkg-descr << 'END-of-py-GeoIP/pkg-descr'
XPython API to the GeoIP library for obtaining the country, region, city,
Xlatitude, and longitude of any IP address.
X
XWWW: http://www.maxmind.com/app/python
END-of-py-GeoIP/pkg-descr
exit
--- py23-GeoIP-1.2.0.shar ends here ---

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



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