diff options
author | lioux <lioux@FreeBSD.org> | 2001-11-20 12:45:29 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-11-20 12:45:29 +0800 |
commit | 6d41bab170bbfb7217d7827b6e6de3f137093530 (patch) | |
tree | f8d0e7f5c2e1624e9b57d9e7fdd7c18ae3b96561 | |
parent | 589a8122ede64d9c7e08f705a37e32c906eb35e3 (diff) | |
download | freebsd-ports-gnome-6d41bab170bbfb7217d7827b6e6de3f137093530.tar.gz freebsd-ports-gnome-6d41bab170bbfb7217d7827b6e6de3f137093530.tar.zst freebsd-ports-gnome-6d41bab170bbfb7217d7827b6e6de3f137093530.zip |
New port jiFT version 0.8: A Java interface to FastTrack (TM)
virtually replacing giFT
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/jift/Makefile | 60 | ||||
-rw-r--r-- | net/jift/distinfo | 1 | ||||
-rw-r--r-- | net/jift/files/manifest | 1 | ||||
-rw-r--r-- | net/jift/files/wrapper.sh | 8 | ||||
-rw-r--r-- | net/jift/pkg-comment | 1 | ||||
-rw-r--r-- | net/jift/pkg-descr | 6 | ||||
-rw-r--r-- | net/jift/pkg-plist | 8 |
8 files changed, 86 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index e4d2e8bb0aec..2dc943f88ccc 100644 --- a/net/Makefile +++ b/net/Makefile @@ -172,6 +172,7 @@ SUBDIR += jabber SUBDIR += jags SUBDIR += javadc + SUBDIR += jift SUBDIR += jumpgate SUBDIR += jwhois SUBDIR += kdenetwork2 diff --git a/net/jift/Makefile b/net/jift/Makefile new file mode 100644 index 000000000000..11f19a947ac2 --- /dev/null +++ b/net/jift/Makefile @@ -0,0 +1,60 @@ +# New ports collection makefile for: jiFT +# Date created: Mon Nov 19 23:48:51 BRST 2001 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= jiFT +PORTVERSION= 0.8 +CATEGORIES= net java +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= lioux@FreeBSD.org + +BUILD_DEPENDS= ${LOCALBASE}/jdk${JDK_VERSION}/bin/jar:${PORTSDIR}/java/jdk12-beta +RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/javavmwrapper \ + ${LOCALBASE}/etc/javavms:${PORTSDIR}/java/jre \ + ${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk12-beta + +USE_ZIP= yes +NO_WRKSUBDIR= yes +PLIST_SUB= JAR_DIR=${JAR_DIR} \ + JAR_FILE=${JAR_FILE} + +JDK_VERSION= 1.2.2 +JAR_CMD= ${LOCALBASE}/jdk${JDK_VERSION}/bin/jar +JAVAVM= ${LOCALBASE}/bin/javavm +JAR_DIR= share/java/jar/${PORTNAME} +JAR_MANIFEST= ${FILESDIR}/manifest + +DOC_FILES= copying.txt readme.txt + +post-patch: +# remove trailing ^M + @${PERL} -pi -ne 's!\r\n!\n!' ${WRKSRC}/*.txt + @${SED} -e "s|%%JAR_DIR%%|${JAR_DIR}|;s|%%JAR_FILE%%|${JAR_FILE}|; \ + s|%%JAVAVM%%|${JAVAVM}|;s|%%PREFIX%%|${PREFIX}|" \ + ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh + +# as far as build goes... ;) +do-build: + cd ${WRKSRC} && ${JAR_CMD} -cmf ${JAR_MANIFEST} ${WRKDIR}/${JAR_FILE} net + +do-install: + @${MKDIR} ${PREFIX}/${JAR_DIR} + @${INSTALL_DATA} ${WRKDIR}/${JAR_FILE} ${PREFIX}/${JAR_DIR} + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME} +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for doc in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.pre.mk> + +JAR_FILE= ${PORTNAME}.jar + +.include <bsd.port.post.mk> diff --git a/net/jift/distinfo b/net/jift/distinfo new file mode 100644 index 000000000000..67c139e5460b --- /dev/null +++ b/net/jift/distinfo @@ -0,0 +1 @@ +MD5 (jiFT-0.8.zip) = 304cf1c963691b90da67556745914827 diff --git a/net/jift/files/manifest b/net/jift/files/manifest new file mode 100644 index 000000000000..0423d486d7f3 --- /dev/null +++ b/net/jift/files/manifest @@ -0,0 +1 @@ +Main-Class: net/sourceforge/jift/Search diff --git a/net/jift/files/wrapper.sh b/net/jift/files/wrapper.sh new file mode 100644 index 000000000000..aab757cc6841 --- /dev/null +++ b/net/jift/files/wrapper.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +PREFIX="%%PREFIX%%" +JAVAVM="%%JAVAVM%%" +JAR_DIR="%%JAR_DIR%%" +JAR_FILE="%%JAR_FILE%%" + +${JAVAVM} -jar ${PREFIX}/${JAR_DIR}/${JAR_FILE} $* diff --git a/net/jift/pkg-comment b/net/jift/pkg-comment new file mode 100644 index 000000000000..ac2456b65e57 --- /dev/null +++ b/net/jift/pkg-comment @@ -0,0 +1 @@ +A Java interface to FastTrack (TM) virtually replacing giFT diff --git a/net/jift/pkg-descr b/net/jift/pkg-descr new file mode 100644 index 000000000000..370bd42559cf --- /dev/null +++ b/net/jift/pkg-descr @@ -0,0 +1,6 @@ +jiFT - The Java interface to FastTrack (TM) or "jiFT isn't FastTrack". +We port the giFT daemon from C to Java. jiFT will be a platform +independent 'daemon' to Kazaa/Morpheus and behave identically at +the protocol level, so replacing giFT is a matter of minutes + +WWW: http://sourceforge.net/projects/jift/ diff --git a/net/jift/pkg-plist b/net/jift/pkg-plist new file mode 100644 index 000000000000..00eb55033740 --- /dev/null +++ b/net/jift/pkg-plist @@ -0,0 +1,8 @@ +bin/jiFT +%%PORTDOCS%%share/doc/jiFT/copying.txt +%%PORTDOCS%%share/doc/jiFT/readme.txt +%%JAR_DIR%%/%%JAR_FILE%% +@dirrm %%JAR_DIR%% +%%PORTDOCS%%@dirrm share/doc/jiFT +@unexec rmdir %D/share/java/jar 2>/dev/null || true +@unexec rmdir %D/share/java 2>/dev/null || true |