diff options
author | sem <sem@FreeBSD.org> | 2006-10-01 05:46:33 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2006-10-01 05:46:33 +0800 |
commit | b05b56d2ca64ba6aa25e83c1c20427a61b5bb30d (patch) | |
tree | ef08e752ef6565c337dfb5fbd5b0bce7ee782252 /net | |
parent | 4118194cb03281b08081e8cdcd8a3057cc14145a (diff) | |
download | freebsd-ports-gnome-b05b56d2ca64ba6aa25e83c1c20427a61b5bb30d.tar.gz freebsd-ports-gnome-b05b56d2ca64ba6aa25e83c1c20427a61b5bb30d.tar.zst freebsd-ports-gnome-b05b56d2ca64ba6aa25e83c1c20427a61b5bb30d.zip |
Jakarta Commons Net implements the client side of many basic Internet
protocols. The purpose of the library is to provide fundamental protocol
access.
WWW: http://jakarta.apache.org/commons/net/
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/jakarta-commons-net/Makefile | 55 | ||||
-rw-r--r-- | net/jakarta-commons-net/distinfo | 3 | ||||
-rw-r--r-- | net/jakarta-commons-net/files/patch-TelnetClientTest.java | 18 | ||||
-rw-r--r-- | net/jakarta-commons-net/pkg-descr | 21 |
5 files changed, 98 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index d44fc20d595d..5768ce1b65fe 100644 --- a/net/Makefile +++ b/net/Makefile @@ -220,6 +220,7 @@ SUBDIR += iwi-firmware SUBDIR += iwi-firmware-kmod SUBDIR += jags + SUBDIR += jakarta-commons-net SUBDIR += java-beepcore SUBDIR += jcifs SUBDIR += jffnms diff --git a/net/jakarta-commons-net/Makefile b/net/jakarta-commons-net/Makefile new file mode 100644 index 000000000000..45d417da438c --- /dev/null +++ b/net/jakarta-commons-net/Makefile @@ -0,0 +1,55 @@ +# Ports collection makefile for: Jakarta Commons Net +# Date created: 1 Oct 2006 +# Whom: Sergey Matveychuk <sem@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= commons-net +PORTVERSION= 1.4.1 +CATEGORIES= net java +MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA} +MASTER_SITE_SUBDIR= commons/net/source +PKGNAMEPREFIX= jakarta- +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= sem@FreeBSD.org +COMMENT= Collection of network protocol implementations for Java + +BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \ + ${JAVAJARDIR}/jakarta-regexp.jar:${PORTSDIR}/java/jakarta-regexp +RUN_DEPENDS= ${JAVAJARDIR}/jakarta-regexp.jar:${PORTSDIR}/java/jakarta-regexp + +USE_JAVA= yes +JAVA_VERSION= 1.3+ +USE_ANT= yes + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +MAKE_ARGS= -cp ${JAVALIBDIR}/junit.jar +ALL_TARGET= dist +PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar + +.if !defined(NOPORTDOCS) +PORTDOCS= LICENSE.txt NOTICE.txt api +ALL_TARGET+= javadoc +.endif + +do-install: + @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..." + @${INSTALL_DATA} ${WRKSRC}/target/${PORTNAME}-${PORTVERSION}.jar \ + ${JAVAJARDIR}/${PORTNAME}.jar + + @${ECHO_MSG} " [DONE]" +.if !defined(NOPORTDOCS) + @${ECHO_MSG} -n ">> Installing documentation..." + @${MKDIR} ${DOCSDIR} + @cd ${WRKSRC}/dist/docs && ${FIND} api \ + | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1 + @${INSTALL_DATA} ${WRKSRC}/LICENSE.txt \ + ${DOCSDIR}/ + @${INSTALL_DATA} ${WRKSRC}/NOTICE.txt \ + ${DOCSDIR}/ + @${ECHO_MSG} " [DONE]" +.endif + +.include <bsd.port.mk> diff --git a/net/jakarta-commons-net/distinfo b/net/jakarta-commons-net/distinfo new file mode 100644 index 000000000000..352d9d1e8e0c --- /dev/null +++ b/net/jakarta-commons-net/distinfo @@ -0,0 +1,3 @@ +MD5 (commons-net-1.4.1-src.tar.gz) = ccbb3f67b55e8a7a676499db4386673c +SHA256 (commons-net-1.4.1-src.tar.gz) = fdea779f261f70b9bbec40121c830b11e3e63b6188f662f95505045ff8d44add +SIZE (commons-net-1.4.1-src.tar.gz) = 229198 diff --git a/net/jakarta-commons-net/files/patch-TelnetClientTest.java b/net/jakarta-commons-net/files/patch-TelnetClientTest.java new file mode 100644 index 000000000000..00446eddecdb --- /dev/null +++ b/net/jakarta-commons-net/files/patch-TelnetClientTest.java @@ -0,0 +1,18 @@ +--- src/test/org/apache/commons/net/telnet/TelnetClientTest.java.orig Sat Sep 30 23:40:24 2006 ++++ src/test/org/apache/commons/net/telnet/TelnetClientTest.java Sat Sep 30 23:40:36 2006 +@@ -784,7 +784,7 @@ + os1.flush(); + os1.write("A".getBytes()); + os1.flush(); +- Thread.sleep(1000); ++// Thread.sleep(1000); + InputStream instr = NOREAD.client.getInputStream(); + byte[] buff = new byte[4]; + int ret_read = 0; +@@ -879,4 +879,4 @@ + } + } + +-} +\ No newline at end of file ++} diff --git a/net/jakarta-commons-net/pkg-descr b/net/jakarta-commons-net/pkg-descr new file mode 100644 index 000000000000..380f6cfcbc2b --- /dev/null +++ b/net/jakarta-commons-net/pkg-descr @@ -0,0 +1,21 @@ +Jakarta Commons Net implements the client side of many basic Internet +protocols. The purpose of the library is to provide fundamental protocol +access. + +Supported protocols are: + + * FTP + * NNTP + * SMTP + * POP3 + * Telnet + * TFTP + * Finger + * Whois + * rexec/rcmd/rlogin + * Time (rdate) and Daytime + * Echo + * Discard + * NTP/SNTP + +WWW: http://jakarta.apache.org/commons/net/ |