[NEW PORT] net/tn5250j: A 5250 terminal emulator for the AS/400 written in Java

A feature-rich graphical Telnet 5250 emulator written in Java.

	WWW:    http://tn5250j.sourceforge.net/

PR:		ports/124537
Submitted by:	Marcin Cieslak <saper@system.pl>
This commit is contained in:
Edwin Groothuis 2008-06-13 02:37:00 +00:00
parent f5f3051212
commit ec53678d3a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214734
7 changed files with 180 additions and 0 deletions

View file

@ -931,6 +931,7 @@
SUBDIR += tinyfugue
SUBDIR += tinyldap
SUBDIR += tn5250
SUBDIR += tn5250j
SUBDIR += tptest
SUBDIR += traceroute
SUBDIR += traff

58
net/tn5250j/Makefile Normal file
View file

@ -0,0 +1,58 @@
# New ports collection makefile for: tn5250j
# Date created: 2008-06-12
# Whom: Marcin Cieslak <saper@SYSTEM.PL>
#
# $FreeBSD$
#
PORTNAME= tn5250j
PORTVERSION= 0.6.0
CATEGORIES= net java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= saper@SYSTEM.PL
COMMENT= A 5250 terminal emulator for the AS/400 written in Java
BUILD_DEPENDS= ${JAVAJARDIR}/mail.jar:${PORTSDIR}/java/javamail \
${JYTHON_JAR}:${PORTSDIR}/lang/jython \
${JAVAJARDIR}/jt400.jar:${PORTSDIR}/sysutils/jtopen
RUN_DEPENDS= ${JAVAJARDIR}/itext.jar:${PORTSDIR}/devel/itext \
${JAVAJARDIR}/log4j.jar:${PORTSDIR}/devel/log4j
USE_ZIP= yes
USE_ANT= yes
USE_JAVA= 1.3+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_DOS2UNIX= build.xml
ALL_TARGET= package
MAKE_ENV+= CLASSPATH=${JYTHON_PREFIX}
MAKE_ARGS+= -Dlib.dir=${JAVALIBDIR}
JYTHON_VER?= 22
JYTHON_PREFIX?= ${LOCALBASE}/lib/jython${JYTHON_VER}
JYTHON_JAR= ${JYTHON_PREFIX}/jython.jar
DOC_FILES= CHANGELOG.txt applet.txt filetransfers.txt readme.txt antbuild.txt\
e-mail.txt macros.txt scripting.txt
SUB_FILES= tn5250j
SUB_LIST= JYTHON_JAR=${JYTHON_JAR}
.include <bsd.port.pre.mk>
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/tn5250j ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/build/tn5250j.jar ${JAVAJARDIR}
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for d in ${DOC_FILES}
${INSTALL_MAN} ${WRKSRC}/src/${d} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>

3
net/tn5250j/distinfo Normal file
View file

@ -0,0 +1,3 @@
MD5 (tn5250j-0.6.0-src.zip) = 3f85dbf5dd669ab9f6ffc37e2de27c5d
SHA256 (tn5250j-0.6.0-src.zip) = a24610b7e8fa0dde30f3d001509164e8e51ea8afb68ce741fc6490fdfb081e6b
SIZE (tn5250j-0.6.0-src.zip) = 634458

View file

@ -0,0 +1,100 @@
--- build.xml.orig 2008-06-12 17:53:31.850966916 +0200
+++ build.xml 2008-06-12 17:55:27.789182054 +0200
@@ -345,97 +345,8 @@
<delete file="${dist.dir}/${dist.src.name}.tar"/>
</target>
- <!-- Creates an installer for tn5250j -->
- <target name="generate-installer" depends="dist" description="Creates installer using IzPack">
- <!-- Allows us to use the IzPack Ant task -->
- <taskdef name="izpack" classpath="${basedir}/lib/compiler.jar"
- classname="com.izforge.izpack.ant.IzPackTask"/>
- <!-- Copies the files to the dist directory -->
- <echo message="Copies the image of the distribution to ${dist.dir}"/>
- <delete dir="${dist.dir}/installer"/>
- <mkdir dir="${dist.dir}/installer"/>
- <copy todir="${dist.dir}/installer" includeEmptyDirs="yes">
- <!--fileset dir="${basedir}">
- <include name="bin/**"/>
- <include name="lib/*.jar"/>
- </fileset-->
- <fileset dir="${build.dir}">
- <include name="${jarname}" />
- </fileset>
- <fileset dir="${dist.dir}/${dist.base.name}/src/installer/">
- <include name="**"/>
- </fileset>
- <fileset dir="${dist.dir}/${dist.base.name}/src/">
- <include name="readme.txt"/>
- <include name="COPYING"/>
- <include name="tn5250jSplash.jpg"/>
- <include name="tnicon.jpg"/>
- </fileset>
- <fileset dir="${lib.dir}">
- <include name="**"/>
- </fileset>
- </copy>
-
- <!-- We call IzPack -->
- <echo message="Makes the installer using IzPack"/>
- <izpack input="${dist.dir}/installer/install.xml"
- output="${dist.dir}/tn5250j-install-${version}.jar"
- installerType="standard"
- basedir="${dist.dir}"
- izPackDir="${IzPack.dir}"/>
-
- <!--echo message="Makes the web installer using IzPack"/-->
- <!--izpack input="${dist.dir}/installer/install.xml"
- output="${dist.dir}/tn5250j-install-web-${version}.jar"
- installerType="web"
- basedir="${dist.dir}"
- izPackDir="${IzPack.dir}"/-->
-
- </target>
-
-<!-- start jar bundler task -->
- <taskdef name="jarbundler"
- classpath="${lib.dir}/jarbundler-1.4.jar"
- classname="com.loomcom.ant.tasks.jarbundler.JarBundler" />
-
- <target name= "dist-bin-jarbundle" depends="dist-bin-prepare" description="Prepares jar bundle binary distribution">
- <jarbundler dir="${dist.dir}"
- name="${Name}"
- mainclass="org.tn5250j.My5250"
- icon="${source.dir}/tnicon.icns"
- version="${version}"
- infostring="${Name} ${version}, (c) ${year}"
- aboutmenuname="${Name}"
- bundleid="org.tn5250j"
- developmentregion="English"
- signature="????"
- type="APPL"
- jvmversion="1.4+"
- vmoptions="-Xmx256m"
- smalltabs="true"
- antialiasedgraphics="true"
- antialiasedtext="true"
- liveresize="true"
- growboxintrudes="false"
- workingdirectory="$APP_PACKAGE/Contents/Resources/Java"
- screenmenu="true" >
- <jarfileset dir="${dist.dir}/${dist.base.name}">
- <include name="**/*.jar" />
- <exclude name="**/CVS" />
- </jarfileset>
- </jarbundler>
- </target>
-
- <target name= "dist-bin-jarbundle-tgz" depends="dist-bin-jarbundle" description="Create a Tgz-File of the jar bundle distribution">
- <tar tarfile="${dist.dir}/${dist.bin.name}.app.tar"
- basedir="${dist.dir}/"
- includes="${Name}.app/**">
- </tar>
- <gzip zipfile="${dist.dir}/${dist.bin.name}.app.tgz" src="${dist.dir}/${dist.bin.name}.app.tar" />
- <delete file="${dist.dir}/${dist.bin.name}.app.tar"/>
- </target>
<!-- start jar bundler task -->

View file

@ -0,0 +1,3 @@
#!/bin/sh
CLASSPATH=`classpath`:%%JYTHON_JAR%% java org.tn5250j.My5250 "$@"

3
net/tn5250j/pkg-descr Normal file
View file

@ -0,0 +1,3 @@
A feature-rich graphical Telnet 5250 emulator written in Java.
WWW: http://tn5250j.sourceforge.net/

12
net/tn5250j/pkg-plist Normal file
View file

@ -0,0 +1,12 @@
@comment $FreeBSD$
bin/tn5250j
%%JAVAJARDIR%%/tn5250j.jar
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.txt
%%PORTDOCS%%%%DOCSDIR%%/applet.txt
%%PORTDOCS%%%%DOCSDIR%%/filetransfers.txt
%%PORTDOCS%%%%DOCSDIR%%/readme.txt
%%PORTDOCS%%%%DOCSDIR%%/antbuild.txt
%%PORTDOCS%%%%DOCSDIR%%/e-mail.txt
%%PORTDOCS%%%%DOCSDIR%%/macros.txt
%%PORTDOCS%%%%DOCSDIR%%/scripting.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%