o BUILD_DEPENDS on www/jetty instead of fetching/building it on its
own for every build. Incidently, it gives i2p an updated jetty release. o Bump PORTREVISION since it now uses an updated jetty release
This commit is contained in:
parent
503c332b13
commit
db71196212
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160091
@ -7,13 +7,22 @@
|
||||
|
||||
PORTNAME= i2p
|
||||
PORTVERSION= 0.6.1.16
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-p2p java security
|
||||
MASTER_SITES= http://dev.i2p.net/i2p/
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
COMMENT= An anonymous network
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libgmp.a:${PORTSDIR}/math/libgmp4
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libgmp.a:${PORTSDIR}/math/libgmp4 \
|
||||
${JAVASHAREDIR}/jetty/ext/ant.jar:${PORTSDIR}/www/jetty \
|
||||
${JAVASHAREDIR}/jetty/ext/commons-el.jar:${PORTSDIR}/www/jetty \
|
||||
${JAVASHAREDIR}/jetty/ext/commons-logging.jar:${PORTSDIR}/www/jetty \
|
||||
${JAVASHAREDIR}/jetty/ext/jasper-compiler.jar:${PORTSDIR}/www/jetty \
|
||||
${JAVASHAREDIR}/jetty/ext/jasper-runtime.jar:${PORTSDIR}/www/jetty \
|
||||
${JAVASHAREDIR}/jetty/ext/xercesImpl.jar:${PORTSDIR}/www/jetty \
|
||||
${JAVASHAREDIR}/jetty/lib/javax.servlet.jar:${PORTSDIR}/www/jetty \
|
||||
${JAVASHAREDIR}/jetty/lib/org.mortbay.jetty.jar:${PORTSDIR}/www/jetty
|
||||
RUN_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
||||
|
||||
USE_BZIP2= yes
|
||||
@ -70,6 +79,16 @@ PLIST_FILES= \
|
||||
%%DATADIR%%/i2p.tar.bz2 \
|
||||
%%DATADIR%%/i2pupdate.zip
|
||||
|
||||
JETTY_JAR_FILES= \
|
||||
ext/ant.jar \
|
||||
ext/commons-el.jar \
|
||||
ext/commons-logging.jar \
|
||||
ext/jasper-compiler.jar \
|
||||
ext/jasper-runtime.jar \
|
||||
ext/xercesImpl.jar \
|
||||
lib/javax.servlet.jar \
|
||||
lib/org.mortbay.jetty.jar
|
||||
|
||||
post-patch:
|
||||
@${SED} \
|
||||
-e "s|%%DATADIR%%|${DATADIR}|" \
|
||||
@ -79,6 +98,13 @@ post-patch:
|
||||
-e 's|./i2prouter[[:space:]]+start||' \
|
||||
${WRKSRC}/installer/resources/postinstall.sh
|
||||
|
||||
pre-build:
|
||||
# copy jetty jars instead of fetching/building
|
||||
@${MKDIR} ${WRKSRC}/apps/jetty/jettylib
|
||||
.for file in ${JETTY_JAR_FILES}
|
||||
@${CP} ${JAVASHAREDIR}/jetty/${file} ${WRKSRC}/apps/jetty/jettylib
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
# install
|
||||
|
11
net-p2p/i2p/files/patch-apps__jetty__build.xml
Normal file
11
net-p2p/i2p/files/patch-apps__jetty__build.xml
Normal file
@ -0,0 +1,11 @@
|
||||
--- apps/jetty/build.xml.orig Fri Apr 21 15:31:49 2006
|
||||
+++ apps/jetty/build.xml Fri Apr 21 15:32:09 2006
|
||||
@@ -37,7 +37,7 @@
|
||||
<copy file="jetty-5.1.6/ext/commons-logging-api.jar" tofile="jettylib/commons-logging.jar" />
|
||||
<delete dir="jetty-5.1.6" />
|
||||
</target>
|
||||
- <target name="build" depends="fetchJettylib" />
|
||||
+ <target name="build" />
|
||||
<target name="builddep" />
|
||||
<target name="compile" />
|
||||
<target name="jar" />
|
10
net-p2p/i2p/files/patch-build.xml
Normal file
10
net-p2p/i2p/files/patch-build.xml
Normal file
@ -0,0 +1,10 @@
|
||||
--- build.xml.orig Mon Feb 20 06:27:46 2006
|
||||
+++ build.xml Fri Apr 21 15:02:11 2006
|
||||
@@ -41,7 +41,6 @@
|
||||
<copy file="router/java/build/router.jar" todir="build/" />
|
||||
</target>
|
||||
<target name="buildWEB">
|
||||
- <ant dir="apps/jetty" target="fetchJettylib" />
|
||||
<ant dir="apps/routerconsole/java" target="build" />
|
||||
<copy file="apps/routerconsole/java/build/routerconsole.jar" todir="build/" />
|
||||
<copy file="apps/routerconsole/java/build/routerconsole.war" todir="build/" />
|
Loading…
Reference in New Issue
Block a user