GeoIP python API
from Benoit Lecocq, blq at arcane-labs.net
This commit is contained in:
parent
4ab7f85896
commit
e4f5902c9b
36
net/py-GeoIP/Makefile
Normal file
36
net/py-GeoIP/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/03/08 12:55:58 steven Exp $
|
||||
|
||||
COMMENT = GeoIP Python API
|
||||
|
||||
MODPY_EGG_VERSION = 1.2.4
|
||||
DISTNAME = GeoIP-Python-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-GeoIP-${MODPY_EGG_VERSION}
|
||||
CATEGORIES = net
|
||||
|
||||
HOMEPAGE = http://www.maxmind.com/app/python
|
||||
|
||||
MAINTAINER = Benoit Lecocq <blq@arcane-labs.net>
|
||||
|
||||
# LGPL v2.1
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = http://geolite.maxmind.com/download/geoip/api/python/
|
||||
|
||||
MODULES = lang/python
|
||||
|
||||
LIB_DEPENDS = GeoIP.>=7::net/GeoIP
|
||||
|
||||
EXAMPLEDIR = ${PREFIX}/share/examples/py-GeoIP
|
||||
NO_REGRESS = Yes
|
||||
|
||||
pre-build:
|
||||
@perl -pi -e "s,^\#\!/usr/bin/python,#!${MODPY_BIN}," ${WRKSRC}/test*.py
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/test* ${EXAMPLEDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
5
net/py-GeoIP/distinfo
Normal file
5
net/py-GeoIP/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (GeoIP-Python-1.2.4.tar.gz) = UPgg2FRHbvrzt69zP/5CNg==
|
||||
RMD160 (GeoIP-Python-1.2.4.tar.gz) = lQS+I7mrxJOYkwdudmvrcPeMsAs=
|
||||
SHA1 (GeoIP-Python-1.2.4.tar.gz) = U9tRyGz/HAEGy6oCrTK9WJoVC/w=
|
||||
SHA256 (GeoIP-Python-1.2.4.tar.gz) = B7CzI9807yG52zF1X9Hd+xPPjSXlYQU1vF+8cr65AU0=
|
||||
SIZE (GeoIP-Python-1.2.4.tar.gz) = 14530
|
1
net/py-GeoIP/pkg/DESCR
Normal file
1
net/py-GeoIP/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
GeoIP Python API.
|
9
net/py-GeoIP/pkg/PLIST
Normal file
9
net/py-GeoIP/pkg/PLIST
Normal file
@ -0,0 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/03/08 12:55:58 steven Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/GeoIP.so
|
||||
lib/python${MODPY_VERSION}/site-packages/GeoIP_Python-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
|
||||
share/examples/py-GeoIP/
|
||||
share/examples/py-GeoIP/test.py
|
||||
share/examples/py-GeoIP/test_city.py
|
||||
share/examples/py-GeoIP/test_city_charset.py
|
||||
share/examples/py-GeoIP/test_org.py
|
||||
share/examples/py-GeoIP/test_region.py
|
Loading…
Reference in New Issue
Block a user