blob: 3d034da64c4ffcaca3d643103b8477a314678d8a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# New ports collection makefile for: i2p
# Date created: Sun Jan 9 05:05:02 UTC 2005
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= i2p
PORTVERSION= 0.6.1.27
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 \
${LOCALBASE}/sbin/jettyctl:${PORTSDIR}/www/jetty
RUN_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
BROKEN= Does not build
USE_BZIP2= yes
USE_RC_SUBR= i2p.sh
JAVA_BUILD= jdk
USE_JAVA= yes
JAVA_VERSION= 1.4+
JAVA_OS= native
USE_ANT= yes
ALL_TARGET= \
updater \
tarball
.ifndef(NOPORTDOCS)
ALL_TARGET+= javadoc
.endif
JAVADOC_WRKSRC= ${WRKSRC}/build/javadoc
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/g}
DOC_FILES= \
readme.html \
allclasses-frame.html \
allclasses-noframe.html \
constant-values.html \
deprecated-list.html \
help-doc.html \
index.html \
overview-frame.html \
overview-summary.html \
overview-tree.html \
package-list \
packages.html \
serialized-form.html \
stylesheet.css
DOC_DIRS= \
freenet/ \
index-files/ \
net/ \
org/ \
resources/
.ifndef(NOPORTDOCS)
PORTDOCS= ${DOC_FILES} \
${DOC_DIRS}
.endif
PLIST_DIRS= \
%%DATADIR%%
PLIST_FILES= \
sbin/i2prouter \
%%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}|" \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
# postinstall.sh SHOULD only do post installation house keeping
@${REINPLACE_CMD} -E \
-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
@${INSTALL_DATA} ${WRKSRC}/i2p.tar.bz2 \
${DATADIR}/
# update
@${INSTALL_DATA} ${WRKSRC}/i2pupdate.zip \
${DATADIR}/
# wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \
${PREFIX}/sbin/i2prouter
# doc
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/readme.html ${DOCSDIR}
.for doc in ${DOC_FILES}
@if [ -f ${JAVADOC_WRKSRC}/${doc} ]; then \
${INSTALL_DATA} ${JAVADOC_WRKSRC}/${doc} ${DOCSDIR} ; \
fi
.endfor
# line taken from textproc/xerces-j maintained by hq@FreeBSD.org
@cd ${JAVADOC_WRKSRC} && \
${FIND} ${DOC_DIRS} -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
${FIND} ${DOC_DIRS} -not -type d -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
.endif
.include <bsd.port.mk>
|