add new port: devel/geoip-java
MaxMind provides IP intelligence through the GeoIP brand. Over 5,000 companies use GeoIP data to locate their Internet visitors and show them relevant content and ads, perform analytics, enforce digital rights, and efficiently route Internet traffic. Businesses can obtain additional insights into their customers' connection speeds, ISPs, and more using GeoIP data. WWW: http://www.maxmind.com/app/java Sponsored by: Experts-Exchange, LLC.
This commit is contained in:
parent
2f1621bf87
commit
cd57934a70
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300881
@ -477,6 +477,7 @@
|
||||
SUBDIR += generatorrunner
|
||||
SUBDIR += gengetopt
|
||||
SUBDIR += genproto
|
||||
SUBDIR += geoip-java
|
||||
SUBDIR += gettext
|
||||
SUBDIR += gettext-lint
|
||||
SUBDIR += gettext-msghack
|
||||
|
51
devel/geoip-java/Makefile
Normal file
51
devel/geoip-java/Makefile
Normal file
@ -0,0 +1,51 @@
|
||||
# New ports collection makefile for: geoip-java
|
||||
# Date created: 2012-07-12
|
||||
# Whom: Jason Helfman <jgh@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= geoip
|
||||
PORTVERSION= 1.2.8
|
||||
CATEGORIES= devel java
|
||||
MASTER_SITES= http://www.maxmind.com/download/geoip/api/java/
|
||||
DISTNAME= GeoIPJava-${PORTVERSION}
|
||||
|
||||
MAINTAINER= jgh@FreeBSD.org
|
||||
COMMENT= Java bindings for GeoIP API
|
||||
|
||||
LICENSE= LGPL21
|
||||
|
||||
RUN_DEPENDS= GeoIP>=1.4.8:${PORTSDIR}/net/GeoIP
|
||||
|
||||
PKGNAMESUFFIX:= -java
|
||||
USE_ZIP= YES
|
||||
|
||||
USE_JAVA= YES
|
||||
JAVA_VERSION= 1.5+
|
||||
USE_ANT= YES
|
||||
ALL_TARGET= jar
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/maxmind-geoip-${PORTVERSION}.jar
|
||||
PORTDOCS= *
|
||||
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
pre-build:
|
||||
@${CP} ${FILESDIR}/build.xml ${WRKSRC}
|
||||
|
||||
post-build-script:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
cd ${WRKSRC} && \
|
||||
${ANT} javadoc
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/maxmind-geoip.jar ${JAVAJARDIR}/maxmind-geoip-${PORTVERSION}.jar
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} \* ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/geoip-java/distinfo
Normal file
2
devel/geoip-java/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (GeoIPJava-1.2.8.zip) = 7fc252e3fe4615f1451abbaae37af3608c322c817de56409278f717c8a8cef28
|
||||
SIZE (GeoIPJava-1.2.8.zip) = 80281
|
56
devel/geoip-java/files/build.xml
Normal file
56
devel/geoip-java/files/build.xml
Normal file
@ -0,0 +1,56 @@
|
||||
<!-- Found at http://www.benow.ca/misc/geoip/build.xml authored by benow -->
|
||||
|
||||
<project name="maxmind-geoip" default="compile" basedir=".">
|
||||
|
||||
<property name="app.name" value="maxmind-geoip" />
|
||||
<property name="app.version" value="1.0" />
|
||||
<property name="build.home" value="build" />
|
||||
<property name="src.home" value="source" />
|
||||
<property name="doc.home" value="javadoc" />
|
||||
|
||||
|
||||
<path id="compile.classpath">
|
||||
<pathelement path="${build.home}" />
|
||||
</path>
|
||||
|
||||
<target name="all" depends="clean,jar,javadoc" description="Clean build and jar, with javadoc" />
|
||||
|
||||
<target name="clean" description="Delete old build directories">
|
||||
<delete dir="${build.home}" quiet="yes" />
|
||||
<delete dir="${doc.home}" quiet="yes" />
|
||||
<delete quiet="yes">
|
||||
<fileset dir="." includes="**/*~*" defaultexcludes="no" />
|
||||
</delete>
|
||||
|
||||
<!--
|
||||
<delete dir="${dist.home}"/>
|
||||
-->
|
||||
|
||||
</target>
|
||||
|
||||
<target name="compile" description="Compile Java sources">
|
||||
<mkdir dir="${build.home}" />
|
||||
<javac srcdir="${src.home}" destdir="${build.home}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}">
|
||||
<classpath refid="compile.classpath" />
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="clean,compile" description="Create binary distribution">
|
||||
<mkdir dir="${build.home}" />
|
||||
|
||||
<!-- Create application JAR file -->
|
||||
<jar jarfile="${app.name}.jar" basedir="${build.home}"/>
|
||||
</target>
|
||||
|
||||
<target name="javadoc" depends="compile" description="Create Javadoc API documentation">
|
||||
|
||||
<delete dir="${doc.home}" />
|
||||
<mkdir dir="${doc.home}" />
|
||||
<javadoc sourcepath="${src.home}" destdir="${doc.home}" windowtitle="${app.name} Documentation" doctitle="${app.name} Documentation" packagenames="com.*,test.*,org.*">
|
||||
<classpath refid="compile.classpath" />
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
||||
|
7
devel/geoip-java/pkg-descr
Normal file
7
devel/geoip-java/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
MaxMind provides IP intelligence through the GeoIP brand. Over 5,000 companies
|
||||
use GeoIP data to locate their Internet visitors and show them relevant content
|
||||
and ads, perform analytics, enforce digital rights, and efficiently route
|
||||
Internet traffic. Businesses can obtain additional insights into their
|
||||
customers' connection speeds, ISPs, and more using GeoIP data.
|
||||
|
||||
WWW: http://www.maxmind.com/app/java
|
Loading…
Reference in New Issue
Block a user