diff options
-rw-r--r-- | net-p2p/javadc/Makefile | 58 | ||||
-rw-r--r-- | net-p2p/javadc/distinfo | 1 | ||||
-rw-r--r-- | net-p2p/javadc/files/manifest | 1 | ||||
-rw-r--r-- | net-p2p/javadc/files/wrapper.sh | 8 | ||||
-rw-r--r-- | net-p2p/javadc/pkg-comment | 1 | ||||
-rw-r--r-- | net-p2p/javadc/pkg-descr | 5 | ||||
-rw-r--r-- | net-p2p/javadc/pkg-plist | 10 | ||||
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/javadc/Makefile | 58 | ||||
-rw-r--r-- | net/javadc/distinfo | 1 | ||||
-rw-r--r-- | net/javadc/files/manifest | 1 | ||||
-rw-r--r-- | net/javadc/files/wrapper.sh | 8 | ||||
-rw-r--r-- | net/javadc/pkg-comment | 1 | ||||
-rw-r--r-- | net/javadc/pkg-descr | 5 | ||||
-rw-r--r-- | net/javadc/pkg-plist | 10 |
15 files changed, 169 insertions, 0 deletions
diff --git a/net-p2p/javadc/Makefile b/net-p2p/javadc/Makefile new file mode 100644 index 000000000000..06276877d0d1 --- /dev/null +++ b/net-p2p/javadc/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: java Direct Connection +# Date created: Mon Nov 19 23:48:51 BRST 2001 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= javadc +PORTVERSION= 0.20 +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 + +WRKSRC= ${WRKDIR}/DirectConnect${PORTVERSION} +BUILD_WRKSRC= ${WRKSRC}/classes +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 ChangeLog INSTALL README + +post-patch: + @${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 ${BUILD_WRKSRC} && ${JAR_CMD} -cmf ${JAR_MANIFEST} ${WRKDIR}/${JAR_FILE} * + +do-install: + @${MKDIR} ${PREFIX}/${JAR_DIR} + @${INSTALL_DATA} ${WRKDIR}/${JAR_FILE} ${PREFIX}/${JAR_DIR} + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L} +.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-p2p/javadc/distinfo b/net-p2p/javadc/distinfo new file mode 100644 index 000000000000..a45c14a0169b --- /dev/null +++ b/net-p2p/javadc/distinfo @@ -0,0 +1 @@ +MD5 (javadc-0.20.tar.gz) = 872aabcfbe431d62d061163e255f2546 diff --git a/net-p2p/javadc/files/manifest b/net-p2p/javadc/files/manifest new file mode 100644 index 000000000000..ad3049d647b2 --- /dev/null +++ b/net-p2p/javadc/files/manifest @@ -0,0 +1 @@ +Main-Class: DCMain diff --git a/net-p2p/javadc/files/wrapper.sh b/net-p2p/javadc/files/wrapper.sh new file mode 100644 index 000000000000..bc546605ffb1 --- /dev/null +++ b/net-p2p/javadc/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-p2p/javadc/pkg-comment b/net-p2p/javadc/pkg-comment new file mode 100644 index 000000000000..1579fb71c6ac --- /dev/null +++ b/net-p2p/javadc/pkg-comment @@ -0,0 +1 @@ +Open source Java DirectConnect (TM) command-line client diff --git a/net-p2p/javadc/pkg-descr b/net-p2p/javadc/pkg-descr new file mode 100644 index 000000000000..6c4c37aeea10 --- /dev/null +++ b/net-p2p/javadc/pkg-descr @@ -0,0 +1,5 @@ +The goal of the project is to open up Direct Connect (Neo-Modus.com) +so that other clients than the currently provided will be available. +More information about Direct Connect can be found on www.neo-modus.com + +WWW: http://sourceforge.net/projects/javadc/ diff --git a/net-p2p/javadc/pkg-plist b/net-p2p/javadc/pkg-plist new file mode 100644 index 000000000000..536a9bf2f136 --- /dev/null +++ b/net-p2p/javadc/pkg-plist @@ -0,0 +1,10 @@ +bin/javadc +%%PORTDOCS%%share/doc/javadc/COPYING +%%PORTDOCS%%share/doc/javadc/ChangeLog +%%PORTDOCS%%share/doc/javadc/INSTALL +%%PORTDOCS%%share/doc/javadc/README +%%JAR_DIR%%/%%JAR_FILE%% +@dirrm %%JAR_DIR%% +%%PORTDOCS%%@dirrm share/doc/javadc +@unexec rmdir %D/share/java/jar 2>/dev/null || true +@unexec rmdir %D/share/java 2>/dev/null || true diff --git a/net/Makefile b/net/Makefile index 6a63663503e4..e051896f5b9a 100644 --- a/net/Makefile +++ b/net/Makefile @@ -171,6 +171,7 @@ SUBDIR += isic SUBDIR += jabber SUBDIR += jags + SUBDIR += javadc SUBDIR += jumpgate SUBDIR += jwhois SUBDIR += kdenetwork2 diff --git a/net/javadc/Makefile b/net/javadc/Makefile new file mode 100644 index 000000000000..06276877d0d1 --- /dev/null +++ b/net/javadc/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: java Direct Connection +# Date created: Mon Nov 19 23:48:51 BRST 2001 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= javadc +PORTVERSION= 0.20 +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 + +WRKSRC= ${WRKDIR}/DirectConnect${PORTVERSION} +BUILD_WRKSRC= ${WRKSRC}/classes +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 ChangeLog INSTALL README + +post-patch: + @${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 ${BUILD_WRKSRC} && ${JAR_CMD} -cmf ${JAR_MANIFEST} ${WRKDIR}/${JAR_FILE} * + +do-install: + @${MKDIR} ${PREFIX}/${JAR_DIR} + @${INSTALL_DATA} ${WRKDIR}/${JAR_FILE} ${PREFIX}/${JAR_DIR} + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L} +.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/javadc/distinfo b/net/javadc/distinfo new file mode 100644 index 000000000000..a45c14a0169b --- /dev/null +++ b/net/javadc/distinfo @@ -0,0 +1 @@ +MD5 (javadc-0.20.tar.gz) = 872aabcfbe431d62d061163e255f2546 diff --git a/net/javadc/files/manifest b/net/javadc/files/manifest new file mode 100644 index 000000000000..ad3049d647b2 --- /dev/null +++ b/net/javadc/files/manifest @@ -0,0 +1 @@ +Main-Class: DCMain diff --git a/net/javadc/files/wrapper.sh b/net/javadc/files/wrapper.sh new file mode 100644 index 000000000000..bc546605ffb1 --- /dev/null +++ b/net/javadc/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/javadc/pkg-comment b/net/javadc/pkg-comment new file mode 100644 index 000000000000..1579fb71c6ac --- /dev/null +++ b/net/javadc/pkg-comment @@ -0,0 +1 @@ +Open source Java DirectConnect (TM) command-line client diff --git a/net/javadc/pkg-descr b/net/javadc/pkg-descr new file mode 100644 index 000000000000..6c4c37aeea10 --- /dev/null +++ b/net/javadc/pkg-descr @@ -0,0 +1,5 @@ +The goal of the project is to open up Direct Connect (Neo-Modus.com) +so that other clients than the currently provided will be available. +More information about Direct Connect can be found on www.neo-modus.com + +WWW: http://sourceforge.net/projects/javadc/ diff --git a/net/javadc/pkg-plist b/net/javadc/pkg-plist new file mode 100644 index 000000000000..536a9bf2f136 --- /dev/null +++ b/net/javadc/pkg-plist @@ -0,0 +1,10 @@ +bin/javadc +%%PORTDOCS%%share/doc/javadc/COPYING +%%PORTDOCS%%share/doc/javadc/ChangeLog +%%PORTDOCS%%share/doc/javadc/INSTALL +%%PORTDOCS%%share/doc/javadc/README +%%JAR_DIR%%/%%JAR_FILE%% +@dirrm %%JAR_DIR%% +%%PORTDOCS%%@dirrm share/doc/javadc +@unexec rmdir %D/share/java/jar 2>/dev/null || true +@unexec rmdir %D/share/java 2>/dev/null || true |