diff options
author | lioux <lioux@FreeBSD.org> | 2003-05-02 16:09:29 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2003-05-02 16:09:29 +0800 |
commit | 3f289cb0047cdb4e2286a19edd9a1aa5886bcc1b (patch) | |
tree | 965c6053989216eeb3448f9b05a1feb27bf44c7f | |
parent | 787589c8fe46c852a06541fefe45198f9292ff09 (diff) | |
download | freebsd-ports-gnome-3f289cb0047cdb4e2286a19edd9a1aa5886bcc1b.tar.gz freebsd-ports-gnome-3f289cb0047cdb4e2286a19edd9a1aa5886bcc1b.tar.zst freebsd-ports-gnome-3f289cb0047cdb4e2286a19edd9a1aa5886bcc1b.zip |
New port frost version 1.2: File-sharing tool for FreeNet with
Usenet like forum support
-rw-r--r-- | net-p2p/frost/Makefile | 54 | ||||
-rw-r--r-- | net-p2p/frost/distinfo | 1 | ||||
-rw-r--r-- | net-p2p/frost/files/wrapper.sh | 15 | ||||
-rw-r--r-- | net-p2p/frost/pkg-descr | 7 | ||||
-rw-r--r-- | net-p2p/frost/pkg-plist | 10 | ||||
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/frost/Makefile | 54 | ||||
-rw-r--r-- | net/frost/distinfo | 1 | ||||
-rw-r--r-- | net/frost/files/wrapper.sh | 15 | ||||
-rw-r--r-- | net/frost/pkg-descr | 7 | ||||
-rw-r--r-- | net/frost/pkg-plist | 10 |
11 files changed, 175 insertions, 0 deletions
diff --git a/net-p2p/frost/Makefile b/net-p2p/frost/Makefile new file mode 100644 index 000000000000..946621f6a661 --- /dev/null +++ b/net-p2p/frost/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: frost +# Date created: Fri May 2 05:35:53 UTC 2003 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= frost +PORTVERSION= 1.2 +CATEGORIES= net java +#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +#MASTER_SITE_SUBDIR= jtcfrost +MASTER_SITES= http://jtcfrost.sourceforge.net/ +DISTNAME= ${PORTNAME} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= File-sharing tool for FreeNet with Usenet like forum support + +USE_JAVA= 1.4+ +USE_ZIP= yes +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} +JAR_FILE= frost.jar + +DOC_FILES= doc/Frost.tex doc/authors.txt doc/gpl.txt doc/notes.txt \ + help/faq.txt help/history.txt + +post-patch: + @${SED} -e "s|%%PREFIX%%|${PREFIX}|; \ + s|%%JAVAVM%%|${JAVAVM}|; \ + s|%%JAR_DIR%%|${JAR_DIR}|; \ + s|%%JAR_FILE%%|${JAR_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 +# jar + @${MKDIR} ${PREFIX}/${JAR_DIR} + @${INSTALL_DATA} ${WRKSRC}/${JAR_FILE} ${PREFIX}/${JAR_DIR} +# wrapper + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L} + +.include <bsd.port.mk> diff --git a/net-p2p/frost/distinfo b/net-p2p/frost/distinfo new file mode 100644 index 000000000000..a07130d9e366 --- /dev/null +++ b/net-p2p/frost/distinfo @@ -0,0 +1 @@ +MD5 (frost.zip) = 420da830fcb40877417119d2bdfa500c diff --git a/net-p2p/frost/files/wrapper.sh b/net-p2p/frost/files/wrapper.sh new file mode 100644 index 000000000000..e4dd1b7628d1 --- /dev/null +++ b/net-p2p/frost/files/wrapper.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +PREFIX="%%PREFIX%%" +JAVAVM="%%JAVAVM%%" +JAR_DIR="%%JAR_DIR%%" +JAR_FILE="%%JAR_FILE%%" +HOME_DIR=${HOME}/.frost + +if [ ! -d ${HOME_DIR} ] +then + mkdir -p ${HOME_DIR} +fi + +cd ${HOME_DIR} && + exec ${JAVAVM} -jar ${PREFIX}/${JAR_DIR}/${JAR_FILE} "${@}" diff --git a/net-p2p/frost/pkg-descr b/net-p2p/frost/pkg-descr new file mode 100644 index 000000000000..9d9054b9ef6d --- /dev/null +++ b/net-p2p/frost/pkg-descr @@ -0,0 +1,7 @@ +[ excerpt from FreeNet website ] + +Frost is a file-sharing tool for FreeNet. It also has chat forums +which allow people to chat anonymously over FreeNet. It now supports +FEC (which makes downloads more reliable) + +WWW: http://jtcfrost.sourceforge.net/ diff --git a/net-p2p/frost/pkg-plist b/net-p2p/frost/pkg-plist new file mode 100644 index 000000000000..6cc5f49e9845 --- /dev/null +++ b/net-p2p/frost/pkg-plist @@ -0,0 +1,10 @@ +bin/frost +%%PORTDOCS%%%%DOCSDIR%%/Frost.tex +%%PORTDOCS%%%%DOCSDIR%%/authors.txt +%%PORTDOCS%%%%DOCSDIR%%/faq.txt +%%PORTDOCS%%%%DOCSDIR%%/gpl.txt +%%PORTDOCS%%%%DOCSDIR%%/history.txt +%%PORTDOCS%%%%DOCSDIR%%/notes.txt +@dirrm share/java/jar/frost +@unexec rmdir %D/share/java/jar 2>/dev/null || true +%%PORTDOCS%%@dirrm %%DOCSDIR%% diff --git a/net/Makefile b/net/Makefile index d06a9f84abc4..8910b27ffac4 100644 --- a/net/Makefile +++ b/net/Makefile @@ -153,6 +153,7 @@ SUBDIR += freeradius SUBDIR += freevrrpd SUBDIR += freewais-sf + SUBDIR += frost SUBDIR += fspclient SUBDIR += fspd SUBDIR += fugu diff --git a/net/frost/Makefile b/net/frost/Makefile new file mode 100644 index 000000000000..946621f6a661 --- /dev/null +++ b/net/frost/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: frost +# Date created: Fri May 2 05:35:53 UTC 2003 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= frost +PORTVERSION= 1.2 +CATEGORIES= net java +#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +#MASTER_SITE_SUBDIR= jtcfrost +MASTER_SITES= http://jtcfrost.sourceforge.net/ +DISTNAME= ${PORTNAME} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= File-sharing tool for FreeNet with Usenet like forum support + +USE_JAVA= 1.4+ +USE_ZIP= yes +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} +JAR_FILE= frost.jar + +DOC_FILES= doc/Frost.tex doc/authors.txt doc/gpl.txt doc/notes.txt \ + help/faq.txt help/history.txt + +post-patch: + @${SED} -e "s|%%PREFIX%%|${PREFIX}|; \ + s|%%JAVAVM%%|${JAVAVM}|; \ + s|%%JAR_DIR%%|${JAR_DIR}|; \ + s|%%JAR_FILE%%|${JAR_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 +# jar + @${MKDIR} ${PREFIX}/${JAR_DIR} + @${INSTALL_DATA} ${WRKSRC}/${JAR_FILE} ${PREFIX}/${JAR_DIR} +# wrapper + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L} + +.include <bsd.port.mk> diff --git a/net/frost/distinfo b/net/frost/distinfo new file mode 100644 index 000000000000..a07130d9e366 --- /dev/null +++ b/net/frost/distinfo @@ -0,0 +1 @@ +MD5 (frost.zip) = 420da830fcb40877417119d2bdfa500c diff --git a/net/frost/files/wrapper.sh b/net/frost/files/wrapper.sh new file mode 100644 index 000000000000..e4dd1b7628d1 --- /dev/null +++ b/net/frost/files/wrapper.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +PREFIX="%%PREFIX%%" +JAVAVM="%%JAVAVM%%" +JAR_DIR="%%JAR_DIR%%" +JAR_FILE="%%JAR_FILE%%" +HOME_DIR=${HOME}/.frost + +if [ ! -d ${HOME_DIR} ] +then + mkdir -p ${HOME_DIR} +fi + +cd ${HOME_DIR} && + exec ${JAVAVM} -jar ${PREFIX}/${JAR_DIR}/${JAR_FILE} "${@}" diff --git a/net/frost/pkg-descr b/net/frost/pkg-descr new file mode 100644 index 000000000000..9d9054b9ef6d --- /dev/null +++ b/net/frost/pkg-descr @@ -0,0 +1,7 @@ +[ excerpt from FreeNet website ] + +Frost is a file-sharing tool for FreeNet. It also has chat forums +which allow people to chat anonymously over FreeNet. It now supports +FEC (which makes downloads more reliable) + +WWW: http://jtcfrost.sourceforge.net/ diff --git a/net/frost/pkg-plist b/net/frost/pkg-plist new file mode 100644 index 000000000000..6cc5f49e9845 --- /dev/null +++ b/net/frost/pkg-plist @@ -0,0 +1,10 @@ +bin/frost +%%PORTDOCS%%%%DOCSDIR%%/Frost.tex +%%PORTDOCS%%%%DOCSDIR%%/authors.txt +%%PORTDOCS%%%%DOCSDIR%%/faq.txt +%%PORTDOCS%%%%DOCSDIR%%/gpl.txt +%%PORTDOCS%%%%DOCSDIR%%/history.txt +%%PORTDOCS%%%%DOCSDIR%%/notes.txt +@dirrm share/java/jar/frost +@unexec rmdir %D/share/java/jar 2>/dev/null || true +%%PORTDOCS%%@dirrm %%DOCSDIR%% |