Import JeoIP, Java access to GeoIP, ok kurt@
This commit is contained in:
parent
daec00aa21
commit
acb0a6b712
43
geo/jeoip/Makefile
Normal file
43
geo/jeoip/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/17 19:20:34 ian Exp $
|
||||
COMMENT= "Java interface to GeoIP database"
|
||||
DISTNAME= jeoip-0.5
|
||||
CATEGORIES= geo net
|
||||
PKG_ARCH= *
|
||||
|
||||
HOMEPAGE= http://www.darwinsys.com/freeware/jeoip.jsp
|
||||
|
||||
MAINTAINER= Ian Darwin <ian@openbsd.org>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM=Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://www.darwinsys.com/freeware/
|
||||
|
||||
MODULES= java
|
||||
MODJAVA_VER= 1.5+
|
||||
MODJAVA_JRERUN= Yes
|
||||
BUILD_DEPENDS= :apache-ant->=1.6.1:devel/apache-ant:\
|
||||
:junit->=3.8.1:java/junit
|
||||
RUN_DEPENDS= :GeoIP-*:net/GeoIP\
|
||||
:javaPathHelper-*:java/javaPathHelper
|
||||
MAKE_ENV= JAVA_HOME=${JAVA_HOME} \
|
||||
CLASSPATH=${LOCALBASE}/share/java/classes/junit-3.8.1/junit.jar
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
WRKDIST= ${WRKDIR}/jeoip
|
||||
|
||||
INSTALLDIR= jeoip
|
||||
|
||||
do-build:
|
||||
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ant jar docs
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/java/${INSTALLDIR}
|
||||
${INSTALL_DATA} ${WRKDIST}/jeoip.jar ${PREFIX}/share/java/${INSTALLDIR}
|
||||
${INSTALL_SCRIPT} ${WRKDIST}/unix/jeoip ${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
4
geo/jeoip/distinfo
Normal file
4
geo/jeoip/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (jeoip-0.5.tar.gz) = a730da884d259aaddc75e2b87cfdf2ca
|
||||
RMD160 (jeoip-0.5.tar.gz) = 8639ad21cbc1c5c36233683e0f8510c6ee425b59
|
||||
SHA1 (jeoip-0.5.tar.gz) = 13d1fd1b430aff3e5e793a7fbc6d757f9e079f61
|
||||
SIZE (jeoip-0.5.tar.gz) = 8855
|
13
geo/jeoip/pkg/DESCR
Normal file
13
geo/jeoip/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
JeoIP is a Java implementation of net/GeoIP, which looks up an IPV4
|
||||
address in a local file and returns the country that it is in.
|
||||
The database is maintained, and the GeoIP code provided, by MaxMind,
|
||||
who sells on subscription more detailed datatabases that identify the
|
||||
sender down to particular regions within a country.
|
||||
See http://www.maxmind.com/
|
||||
|
||||
JeoIP does not use any code from GeoIP but does use its data file.
|
||||
JeoIP was written to make the database accessible from within
|
||||
Java Servlet/JSP web sites without having either to run an
|
||||
external program or to link with "native code".
|
||||
There are functions that return the country name as well as
|
||||
its two- and three-letter ISO-3166 country code.
|
5
geo/jeoip/pkg/PLIST
Normal file
5
geo/jeoip/pkg/PLIST
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/17 19:20:34 ian Exp $
|
||||
bin/jeoip
|
||||
share/java/
|
||||
share/java/jeoip/
|
||||
share/java/jeoip/jeoip.jar
|
Loading…
Reference in New Issue
Block a user