2005-01-11 01:21:19 +00:00
|
|
|
# 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
|
2005-12-22 15:51:13 +00:00
|
|
|
PORTVERSION= 0.6.1.8
|
2005-01-11 01:21:19 +00:00
|
|
|
CATEGORIES= net java security
|
|
|
|
MASTER_SITES= http://dev.i2p.net/i2p/
|
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
COMMENT= An anonymous network
|
|
|
|
|
|
|
|
RUN_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2005-10-10 06:59:09 +00:00
|
|
|
USE_RC_SUBR= yes
|
2005-01-11 01:21:19 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
|
|
|
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/ \
|
2005-04-02 19:12:32 +00:00
|
|
|
org/ \
|
2005-01-11 01:21:19 +00:00
|
|
|
resources/
|
|
|
|
PORTDOCS= ${DOC_FILES} \
|
|
|
|
${DOC_DIRS}
|
|
|
|
|
|
|
|
PLIST_DIRS= \
|
|
|
|
%%DATADIR%%
|
|
|
|
PLIST_FILES= \
|
2005-10-10 06:59:09 +00:00
|
|
|
etc/rc.d/${PORTNAME}.sh \
|
2005-01-11 01:21:19 +00:00
|
|
|
sbin/i2prouter \
|
|
|
|
%%DATADIR%%/i2p.tar.bz2 \
|
|
|
|
%%DATADIR%%/i2pupdate.zip
|
|
|
|
|
|
|
|
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
|
2005-10-10 06:59:09 +00:00
|
|
|
# rc.d
|
|
|
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" \
|
|
|
|
${FILESDIR}/${PORTNAME}.sh > ${WRKDIR}/${PORTNAME}.sh
|
2005-01-11 01:21:19 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
# install
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/i2p.tar.bz2 \
|
|
|
|
${DATADIR}/
|
|
|
|
# update
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/i2pupdate.zip \
|
|
|
|
${DATADIR}/
|
2005-10-10 06:59:09 +00:00
|
|
|
# rc.d
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh \
|
|
|
|
${PREFIX}/etc/rc.d
|
2005-01-11 01:21:19 +00:00
|
|
|
# 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>
|