2003-05-02 03:39:19 +00:00
|
|
|
# New ports collection makefile for: freenet
|
|
|
|
# Date created: Thu May 1 20:19:56 UTC 2003
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= freenet
|
2004-11-28 18:46:54 +00:00
|
|
|
PORTVERSION= 0.5.2.1.5100
|
2004-12-31 11:31:58 +00:00
|
|
|
PORTREVISION= 3
|
2003-05-03 02:21:21 +00:00
|
|
|
CATEGORIES= net java security
|
2004-02-28 04:29:18 +00:00
|
|
|
MASTER_SITES= http://freenetproject.org/snapshots/
|
2004-12-31 11:31:58 +00:00
|
|
|
DISTNAME= ${PORTNAME}-20041220
|
2004-02-28 04:29:18 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
2003-05-02 03:39:19 +00:00
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
2003-07-29 13:58:16 +00:00
|
|
|
COMMENT= Peer-to-peer network aiming at anonymity and freedom of speech
|
2003-05-02 03:39:19 +00:00
|
|
|
|
2004-12-31 11:14:19 +00:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.4+
|
2003-05-02 03:39:19 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2004-11-28 18:46:54 +00:00
|
|
|
JAVAVM= ${LOCALBASE}/bin/java
|
2003-05-02 03:39:19 +00:00
|
|
|
#
|
|
|
|
DATA_FILES= seednodes.ref
|
|
|
|
DOC_FILES= README
|
|
|
|
JAR_FILES= freenet.jar freenet-ext.jar
|
|
|
|
# jar startup file
|
|
|
|
JAR_START= freenet.jar
|
|
|
|
# seed file
|
|
|
|
SEED_FILE= seednodes.ref
|
|
|
|
|
2004-04-11 06:17:31 +00:00
|
|
|
PORTDOCS= ${DOC_FILES}
|
|
|
|
|
2004-12-31 11:14:19 +00:00
|
|
|
PLIST_FILES= \
|
|
|
|
bin/${PORTNAME:L} \
|
|
|
|
%%DATADIR%%/seednodes.ref \
|
|
|
|
%%JAVAJARDIR%%/freenet-ext.jar \
|
|
|
|
%%JAVAJARDIR%%/freenet.jar
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
|
2003-05-02 03:39:19 +00:00
|
|
|
post-patch:
|
|
|
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|; \
|
|
|
|
s|%%DATA_DIR%%|${DATADIR:S,^${PREFIX}/,,}|; \
|
2004-12-31 11:14:19 +00:00
|
|
|
s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \
|
2003-05-02 03:39:19 +00:00
|
|
|
s|%%JAVAVM%%|${JAVAVM}|; \
|
2004-12-31 11:14:19 +00:00
|
|
|
s|%%JAVAJARDIR%%|${JAVAJARDIR:S,^${PREFIX}/,,}|; \
|
2003-05-02 03:39:19 +00:00
|
|
|
s|%%JAR_FILES%%|${JAR_FILES}|; \
|
|
|
|
s|%%JAR_START%%|${JAR_START}|; \
|
|
|
|
s|%%SEED_FILE%%|${SEED_FILE}|" \
|
|
|
|
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
# docs
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for doc in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
# data
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
.for file in ${DATA_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
|
|
|
|
.endfor
|
|
|
|
# jar
|
|
|
|
.for jar in ${JAR_FILES}
|
2004-12-31 11:14:19 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${jar} ${JAVAJARDIR}
|
2003-05-02 03:39:19 +00:00
|
|
|
.endfor
|
|
|
|
# wrapper
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|