diff options
author | lioux <lioux@FreeBSD.org> | 2003-05-02 11:39:19 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2003-05-02 11:39:19 +0800 |
commit | f4009b8578324621bdd3a679351af1db191c85b6 (patch) | |
tree | 776b20941d00c54c80d637b101214047da59c7c8 /net-p2p/freenet05/Makefile | |
parent | f2957143a59075805ac0945e29236840562c899e (diff) | |
download | freebsd-ports-gnome-f4009b8578324621bdd3a679351af1db191c85b6.tar.gz freebsd-ports-gnome-f4009b8578324621bdd3a679351af1db191c85b6.tar.zst freebsd-ports-gnome-f4009b8578324621bdd3a679351af1db191c85b6.zip |
New port freenet version 0.5.2.r1: peer-to-peer network aiming at
anonymity and freedom of speech
Diffstat (limited to 'net-p2p/freenet05/Makefile')
-rw-r--r-- | net-p2p/freenet05/Makefile | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/net-p2p/freenet05/Makefile b/net-p2p/freenet05/Makefile new file mode 100644 index 000000000000..27c70307751c --- /dev/null +++ b/net-p2p/freenet05/Makefile @@ -0,0 +1,69 @@ +# 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 +PORTVERSION= 0.5.2.r1 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-rc/} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= peer-to-peer network aiming at anonymity and freedom of speech + +USE_JAVA= 1.3+ +NO_BUILD= yes +NO_BUILD_DEPENDS_JAVA= yes +WRKSRC= ${WRKDIR}/${PORTNAME} +PLIST_SUB= JAR_DIR=${JAR_DIR} + +JAVAVM= ${LOCALBASE}/bin/javavm +JAR_DIR= share/java/jar/${PORTNAME} +# +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 + +post-patch: + @${SED} -e "s|%%PREFIX%%|${PREFIX}|; \ + s|%%DATA_DIR%%|${DATADIR:S,^${PREFIX}/,,}|; \ + s|%%JAVAVM%%|${JAVAVM}|; \ + s|%%JAR_DIR%%|${JAR_DIR}|; \ + 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 + @${MKDIR} ${PREFIX}/${JAR_DIR} +.for jar in ${JAR_FILES} + @${INSTALL_DATA} ${WRKSRC}/${jar} ${PREFIX}/${JAR_DIR} +.endfor +# wrapper + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L} + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> |