Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jun 2006 18:08:46 GMT
From:      Thomas Abthorpe <thomas@goodking.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/98299: Net port: japanese/citrix_ica
Message-ID:  <200606011808.k51I8kEf007590@www.freebsd.org>
Resent-Message-ID: <200606011810.k51IALLB061851@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         98299
>Category:       ports
>Synopsis:       Net port: japanese/citrix_ica
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 01 18:10:21 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Abthorpe
>Release:        FreeBSD 6.1-RELEASE
>Organization:
GoodKing.Ca
>Environment:
FreeBSD goodking.goodking.ca 6.1-RELEASE-p1 FreeBSD 6.1-RELEASE-p1 #18: Wed May 31 22:39:05 EDT 2006     root@goodking.goodking.ca:/usr/obj/usr/src/sys/GKSMP  i386

>Description:
Japanese port of the Linux based Citrix Presentation Server client. (My apoliges in advance, I don't speak nor read Japanese, I am just trying to broaden the horizon for the client base. I would be quite willing to work with, or pass this off to anybody that can do the port more justice.)


>How-To-Repeat:

>Fix:
--- ja-citrix_ica.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./files
#	./files/patch-setupwfc
#	./files/patch-linuxx86::hinst
#	./files/wfcmgr
#	./files/wfica
#	./Makefile
#	./distinfo
#	./pkg-descr
#	./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-setupwfc
sed 's/^X//' >./files/patch-setupwfc << 'END-of-./files/patch-setupwfc'
X--- setupwfc.orig	Tue Dec  6 11:25:39 2005
X+++ setupwfc	Fri May 26 10:15:09 2006
X@@ -420,7 +420,7 @@
X                # We assume that an Intel-based linux system will have an x86
X                # processor. We also assume that this is reported by uname -m
X                # "ix86" where x is some number.
X-               if uname -m | grep 86 2>&1 >/dev/null ;then
X+               if uname -m | grep i[3456]86 2>&1 >/dev/null ;then
X 		   if grep uClibc /etc/issue 2>&1 > /dev/null ;then
X                    	PLATFORM=uclibc
X                    	DISP_PLATFORM="Linux (uClibc)"
END-of-./files/patch-setupwfc
echo x - ./files/patch-linuxx86::hinst
sed 's/^X//' >./files/patch-linuxx86::hinst << 'END-of-./files/patch-linuxx86::hinst'
X--- linuxx86/hinst.orig	Tue Dec  6 10:50:57 2005
X+++ linuxx86/hinst	Thu Jun  1 08:58:24 2006
X@@ -74,7 +74,7 @@
X fi
X 
X #  Install in here by default.
X-DefaultInstallDir=/usr/lib/ICAClient
X+DefaultInstallDir=/usr/local/ICAClient
X 
X #  Default CDROM mount point
X DefaultCDSourceDir=/cdrom
X@@ -2172,7 +2172,7 @@
X 	tr_file $TR_FILE_KEY $PORT/$PORT.psf
X 	preen_files
X 
X-	/bin/true
X+	/usr/bin/true
X }
X 
X ###############################################################################
X@@ -2222,10 +2222,34 @@
X #
X ###############################################################################
X 
X+check_for_ns() {
X+        BIN=`/usr/bin/file $1/plugins/libnullplugin.so | /usr/bin/awk '{print $11}'`
X+        case ${BIN} in
X+        \(SYSV\),)
X+                NETSCAPE_DIR="$1"
X+                PLUGIN_PATH="$s/plugins"
X+                FOUND_NS="TRUE"
X+        esac
X+}
X+
X+NSCP="/usr/local/libexec/netscape \
X+        /usr/local/libexec/netscape-linux \
X+        /usr/local/netscape \
X+        /usr/local/netscape-linux \
X+        /usr/local/lib/netscape \
X+        /usr/local/lib/netscape-linux \
X+        /usr/local/lib/linux-mozilla \
X+        /usr/local/lib/mozilla \
X+        $MOZILLA_HOME"
X+
X+for dir in ${NSCP}; do
X+        if [ -e $dir/plugins/libnullplugin.so ]; then
X+                check_for_ns $dir;
X+        fi
X+done
X+
X INST_DIR=$ICAInstDir
X TMP_NAME=/tmp/ICAnetscape.$$
X-NETSCAPE_DIR="/usr/local/lib/netscape"
X-PLUGIN_PATH="/usr/local/netscape/plugins"
X PLUGIN_NAME=npica.so
X PLUGIN_CLASS=ICAClObj.class
X MAILCAP_FILE=mailcap
X@@ -2298,26 +2322,18 @@
X 
X netscape_integrate()
X {
X-  user_echo $integrate_netscape1
X   if test -z "$SU_INSTALL"
X   then
X     set_npui_variables
X     found_netscape 
X   else
X     search_ok=0
X-    EXTRA_BROWSERS=`find_browsers`
X-  
X-    if  test -d "/usr/lib/netscape"\
X-	|| test -d "/usr/local/netscape"\
X-	|| test -d "/opt/netscape"\
X-	|| test -d "/usr/local/lib/netscape"\
X-	|| test -d "/usr/dt/appconfig/netscape"\
X-	|| test "$MOZILLA_HOME" != "" -a -d "$MOZILLA_HOME"\
X-	|| test "$EXTRA_BROWSERS" != ""
X-    then
X+    case ${FOUND_NS} in
X+    TRUE)
X   	user_echo $integrate_netscape3
X   	found_netscape 
X-    else
X+	;;
X+    *)
X 	user_prompt $integrate_netscape2
X  	getyesno $INSTALLER_NO
X 	if [ "$ANSWER" = "$INSTALLER_YES" ]
X@@ -2326,7 +2342,8 @@
X 	else
X   		user_echo $integrate_netscape6
X 	fi
X-    fi
X+	;;
X+    esac
X   fi
X 
X     # Create utility script files in install root.
X@@ -2964,55 +2981,6 @@
X     echo "$BINDIR"
X }
X 
X-################################################################################
X-#
X-# find_browsers
X-#
X-# Returns a list of directories containing new-style mozilla-based browsers 
X-# that may be launched by files on the $PATH.
X-#
X-################################################################################
X-find_browsers()
X-{
X-    PROGS="netscape mozilla firefox"
X-    DIST_BIN_DIR=""
X-    STANDARD_DIRS="/usr/local/netscape /usr/local/mozilla /usr/local/firefox /usr/lib/mozilla"
X-
X-    case $op_system in
X-       SunOS) if
X-                 /usr/bin/pkginfo -q $SOLARIS_PACKAGE_NAME
X-              then
X-                 relocation_base=`/usr/bin/pkginfo -r $SOLARIS_PACKAGE_NAME`
X-                 STANDARD_DIRS="$STANDARD_DIRS $relocation_base/$SOLARIS_PACKAGE_DIRECTORY"
X-
X-                 # N.B. the Netscape 7 packages for SOLARIS 9 have an extended installation path built-in!
X-                 case `uname -r` in
X-                    5.9) STANDARD_DIRS="$STANDARD_DIRS $relocation_base/dt/appconfig/$SOLARIS_PACKAGE_DIRECTORY"
X-                         ;;
X-                    *)   ;;
X-                 esac
X-              fi;;
X-       *) ;;
X-    esac
X-
X-    for d in `echo $PATH | sed "s/:/ /g"` $STANDARD_DIRS
X-    do
X-	echo $d
X-    done | sort -u | while read d
X-    do 
X-	for p in $PROGS
X-	do    
X-	    # Find the each instance of each named browser
X-	    PROG=$d/$p
X-	    if test -f $PROG
X-	    then
X-		# Where is the installation and what version is it?
X-		find_extra_bin_dirs $PROG
X-	    fi
X-	done
X-    done | sort -u
X-}
X-
X BROWSER_LIST_KEY="BROWSER_DIR"
X ################################################################################
X #
X@@ -3238,7 +3206,10 @@
X XDG_TARGET_DIR="/usr/share/applications"
X TL_MENU_DIR="Vendor_menus/Applications"                    # TurboLinux
X TL_TOP_DIR="/usr/share/applnk/"$TL_MENU_DIR
X-DEFAULT_GNOME_TARGET_DIRS="/etc/opt/gnome/SuSE/Internet"
X+EFAULT_GNOME_TARGET_DIRS="/usr/share/applications \
X+                           /usr/local/share/applnk/Internet \
X+                           /usr/local/share/applnk/Networking \
X+                           /etc/opt/gnome/SuSE/Internet"
X DEFAULT_KDE_TARGET_DIRS="/usr/share/applnk-redhat/Internet \
X                          /usr/share/applnk-mdk/Networking \
X                          $TL_TOP_DIR/Internet \
END-of-./files/patch-linuxx86::hinst
echo x - ./files/wfcmgr
sed 's/^X//' >./files/wfcmgr << 'END-of-./files/wfcmgr'
X#!/bin/sh
Xexport ICAROOT=DESTINATION
Xexec $ICAROOT/wfcmgr
END-of-./files/wfcmgr
echo x - ./files/wfica
sed 's/^X//' >./files/wfica << 'END-of-./files/wfica'
X#!/bin/sh
Xexport ICAROOT=DESTINATION
Xexec $ICAROOT/wfica "$@"
END-of-./files/wfica
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:	Citrix(R) ICA(R) Client
X# Date created:         2006-05-31
X# Whom:                 Thomas Abthorpe <thomas@goodking.ca>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	citrix_ica
XPORTVERSION=	9.15
XCATEGORIES=	japanese net comms linux
XMASTER_SITES=
XDISTNAME=	${PORTNAME}-linuxx86-ja-${PORTVERSION}
X
XMAINTAINER=	thomas@goodking.ca
XCOMMENT=	Citrix(R) Presentation Server(TM) client
X
XRUN_DEPENDS=	${LINUXBASE}${X11BASE}/lib/libXm.so.3:${PORTSDIR}/x11-toolkits/linux-openmotif
X
XONLY_FOR_ARCHS=	i386
XUSE_LINUX=	yes
X#USE_X_PREFIX=	Yes
XRESTRICTED=	License prohibits redistribution
XIS_INTERACTIVE=	"Noisy license agreement ignores stdin"
X
XNO_WRKSUBDIR=	Yes
XNO_BUILD=	Yes
X
XCDIR=		${PREFIX}/ICAClient
XBINDIR=		${PREFIX}/bin
X
XNSCP=	${LOCALBASE}/libexec/netscape \
X	${LOCALBASE}/libexec/netscape-linux \
X	${LOCALBASE}/netscape \
X	${LOCALBASE}/netscape-linux \
X	${LOCALBASE}/lib/netscape \
X	${LOCALBASE}/lib/netscape-linux \
X	${MOZILLA_HOME}
X
XPLIST_SUB=	MOZILLA_HOME=${MOZILLA_HOME}
X
X.include <bsd.port.pre.mk>
X
X.if exists(${PREFIX}/bin/kde-config)
XHAVE_KDE=	"\\ny"
X.endif
X
X.if defined(BATCH) || defined(PACKAGE_BUILDING)
XIGNORE='The distribution file for this port may not be automatically fetched due to licensing restrictions.'
X.endif
X
Xdo-fetch:
X.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
X	@${ECHO} ""
X	@${ECHO} "You have to fetch the file manually after reading and"
X	@${ECHO} "agreeing to the license at:"
X	@${ECHO} ""
X	@${ECHO} "http://www.citrix.com/download/bin/license.asp?client=linux"
X	@${ECHO} ""
X	@${ECHO} "Once linuxx86.tar.gz has been downloaded move it to"
X	@${ECHO} "${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} and restart the build."
X	@${ECHO} ""
X	@${FALSE}
X.endif
X
Xdo-install:
X	@if (test -d "${CDIR}") ; \
X	then \
X		${ECHO} "-----------------------------------------------------------" ; \
X		${ECHO} "" ; \
X		${ECHO} "A ${CDIR} installation does already exist." ; \
X		${ECHO} "Please move it away or delete the old port" ; \
X		${ECHO} "" ; \
X		${ECHO} "-----------------------------------------------------------" ; \
X		${FALSE} ; \
X	fi
X	${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfcmgr \
X		> ${WRKSRC}/wfcmgr.x
X	${SED} s%DESTINATION%${CDIR}% < ${FILESDIR}/wfica \
X		> ${WRKSRC}/wfica.x
X	cd ${WRKSRC} && ${SH} -c './setupwfc'
X	${INSTALL_SCRIPT} ${WRKSRC}/wfcmgr.x ${PREFIX}/bin/wfcmgr
X	${INSTALL_SCRIPT} ${WRKSRC}/wfica.x ${PREFIX}/bin/wfica
X# XXX: This is missing a "${BRANDELF} -t Linux <executables>".
X
X.include <bsd.port.post.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (citrix_ica-linuxx86-ja-9.15.tar.gz) = aa9043263f29d450edda08fd0d4bbe1e
XSHA256 (citrix_ica-linuxx86-ja-9.15.tar.gz) = 892526bc03dc05c6558e4b5f6ea4e6165cc2624a374185c59aa28fb33f2ed451
XSIZE (citrix_ica-linuxx86-ja-9.15.tar.gz) = 1385839
END-of-./distinfo
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XCitrix(R) Presentation Server(TM) runs on Microsoft(R) Windows
XServer(TM) and UNIX(R) operating systems, and extends the base
XWindows Terminal Services platform by enhancing the end-user
Xexperience as well as increasing manageability, compatibility,
Xsecurity and scalability to address business-critical environments.
XPresentation Server expands the range of supported applications to
Xinclude legacy software and Web-based, UNIX and Java solutions. It
Xalso enables any device or operating system including Macintosh and
XLinux to access virtualized applications. Other important capabilities
Xare powerful management and configuration tools and faster, more
Xflexible printing.
X
XWWW: http://www.citrix.com/English/ps2/products/product.asp?contentID=186
END-of-./pkg-descr
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
X@unexec for dir in /usr/local/libexec/netscape /usr/local/libexec/netscape-linux /usr/local/netscape /usr/local/netscape-linux /usr/local/lib/netscape /usr/local/lib/netscape-linux %%MOZILLA_HOME%% %D/lib/netscape-linux; do if [ -f ${dir}/mime.types ]; then (/bin/cat ${dir}/mime.types | /usr/bin/grep -v "application/x-ica" > ${dir}/mime.types.tmp; mv ${dir}/mime.types.tmp ${dir}/mime.types); fi ; done
X@unexec for dir in /usr/local/libexec/netscape /usr/local/libexec/netscape-linux /usr/local/netscape /usr/local/netscape-linux /usr/local/lib/netscape /usr/local/lib/netscape-linux %%MOZILLA_HOME%% %D/lib/netscape-linux; do if [ -f ${dir}/mailcap ]; then (/bin/cat ${dir}/mailcap | /usr/bin/grep -v "application/x-ica" > ${dir}/mailcap.tmp; /bin/mv ${dir}/mailcap.tmp ${dir}/mailcap); fi ; done
X@unexec for dir in /usr/local/libexec/netscape /usr/local/libexec/netscape-linux /usr/local/netscape /usr/local/netscape-linux /usr/local/lib/netscape /usr/local/lib/netscape-linux %%MOZILLA_HOME%% %D/lib/netscape-linux; do if [ -e ${dir}/plugins/npica.so ]; then (/bin/rm ${dir}/plugins/npica.so); fi ; done
XICAClient/.config/appsrv.ini
XICAClient/.config/keyboard.ini
XICAClient/.config/module.ini
XICAClient/.config/wfclient.ini
XICAClient/libctxssl.so
XICAClient/Npica
XICAClient/Npica.ad
XICAClient/CHARICONV.DLL
XICAClient/NDS.DLL
XICAClient/PDCRYPT1.DLL
XICAClient/PDCRYPT2.DLL
XICAClient/TW1.DLL
XICAClient/VDCM.DLL
XICAClient/VDSCARD.DLL
XICAClient/VDSPMIKE.DLL
XICAClient/Wfcmgr
XICAClient/Wfcmgr.ad
XICAClient/Wfica
XICAClient/Wfica.ad
XICAClient/config/.server
XICAClient/config/appsrv.ini
XICAClient/config/module.ini
XICAClient/config/wfclient.ini
XICAClient/desktop/wfcmgr.desktop
XICAClient/desktop/Citrix_PNA.desktop
XICAClient/eula.txt
XICAClient/help/index.htm
XICAClient/icons/citrix16.xpm
XICAClient/icons/citrix32.xpm
XICAClient/icons/citrix48.xpm
XICAClient/install.txt
XICAClient/keyboard/age2.kbd
XICAClient/keyboard/agex2.kbd
XICAClient/keyboard/automatic.kbd
XICAClient/keyboard/dcint401.kbd
XICAClient/keyboard/dcintpcx.kbd
XICAClient/keyboard/dcus401.kbd
XICAClient/keyboard/dcuspcx.kbd
XICAClient/keyboard/dec401.kbd
XICAClient/keyboard/dec401uk.kbd
XICAClient/keyboard/decpcx.kbd
XICAClient/keyboard/decpcxuk.kbd
XICAClient/keyboard/dg.kbd
XICAClient/keyboard/dgfr.kbd
XICAClient/keyboard/dggr.kbd
XICAClient/keyboard/dguk.kbd
XICAClient/keyboard/dgus.kbd
XICAClient/keyboard/hp101.kbd
XICAClient/keyboard/hpfritf.kbd
XICAClient/keyboard/hpgritf.kbd
XICAClient/keyboard/hpint101.kbd
XICAClient/keyboard/hpintps2.kbd
XICAClient/keyboard/hpitf.kbd
XICAClient/keyboard/hpps2.kbd
XICAClient/keyboard/hpuk101.kbd
XICAClient/keyboard/hpukitf.kbd
XICAClient/keyboard/hpukps2.kbd
XICAClient/keyboard/hpus101.kbd
XICAClient/keyboard/hpusitf.kbd
XICAClient/keyboard/hpusps2.kbd
XICAClient/keyboard/ibm.kbd
XICAClient/keyboard/keyboard.ini
XICAClient/keyboard/linux.kbd
XICAClient/keyboard/linux-ja.kbd
XICAClient/keyboard/mac101.kbd
XICAClient/keyboard/ncdn-101.kbd
XICAClient/keyboard/ncdn-102.kbd
XICAClient/keyboard/netbsd.kbd
XICAClient/keyboard/scoos5.kbd
XICAClient/keyboard/scouw2.kbd
XICAClient/keyboard/sg.kbd
XICAClient/keyboard/sgindy.kbd
XICAClient/keyboard/sgindyfr.kbd
XICAClient/keyboard/sgindygr.kbd
XICAClient/keyboard/sgindyuk.kbd
XICAClient/keyboard/sgindyus.kbd
XICAClient/keyboard/sngr.kbd
XICAClient/keyboard/sparc3.kbd
XICAClient/keyboard/sparc4.kbd
XICAClient/keyboard/sparc5.kbd
XICAClient/keyboard/sparc6usb.kbd
XICAClient/keyboard/sparcfr4.kbd
XICAClient/keyboard/sparcfr5.kbd
XICAClient/keyboard/sparcgr4.kbd
XICAClient/keyboard/sparcgr5.kbd
XICAClient/keyboard/sparcuk4.kbd
XICAClient/keyboard/sparcuk5.kbd
XICAClient/keyboard/sparcus3.kbd
XICAClient/keyboard/sparcus4.kbd
XICAClient/keyboard/sparcus5.kbd
XICAClient/keyboard/trimodal.kbd
XICAClient/keystore/cacerts/BTCTRoot.crt
XICAClient/keystore/cacerts/Class3PCA_G2_v2.crt
XICAClient/keystore/cacerts/Class4PCA_G2_v2.crt
XICAClient/keystore/cacerts/GTECTGlobalRoot.crt
XICAClient/keystore/cacerts/GTECTRoot.crt
XICAClient/keystore/cacerts/Pcs3ss_v4.crt
XICAClient/keystore/cacerts/SecureServer.crt
XICAClient/nls/C
XICAClient/nls/ja/pna.nls
XICAClient/nls/en/pna.nls
XICAClient/npica.so
XICAClient/pkginf/F.core.linuxx86
XICAClient/pkginf/Ver.core.linuxx86
XICAClient/pkginf/changeno.dat
XICAClient/readme.txt
XICAClient/setupwfc
XICAClient/util/XCapture
XICAClient/util/XCapture.ad
XICAClient/util/echo_cmd
XICAClient/util/hinst
XICAClient/util/icalicense.sh
XICAClient/util/nslaunch
XICAClient/util/pacexec
XICAClient/util/pac.js
XICAClient/util/xcapture
XICAClient/wfcmgr
XICAClient/wfica
XICAClient/wfica.sh
XICAClient/wfica_assoc.sh
Xbin/wfcmgr
Xbin/wfica
X@dirrm ICAClient/.config
X@dirrm ICAClient/cache/zlcache
X@unexec find %D/ICAClient/cache/ -type f -exec rm {} \; 2>&1 >/dev/null || true
X@dirrm ICAClient/cache
X@dirrm ICAClient/config
X@dirrm ICAClient/desktop
X@dirrm ICAClient/help
X@dirrm ICAClient/icons
X@dirrm ICAClient/keyboard
X@dirrm ICAClient/keystore/cacerts
X@dirrm ICAClient/keystore
X@dirrm ICAClient/nls/ja
X@dirrm ICAClient/nls/en
X@dirrm ICAClient/nls
X@dirrm ICAClient/pkginf
X@dirrm ICAClient/util
X@dirrm ICAClient
END-of-./pkg-plist
exit
--- ja-citrix_ica.share ends here ---

Update /usr/ports/LEGAL

cvs diff -uN LEGAL
Index: LEGAL
===================================================================
RCS file: /home/ncvs/ports/LEGAL,v
retrieving revision 1.477
diff -u -r1.477 LEGAL
--- LEGAL       19 May 2006 19:27:36 -0000      1.477
+++ LEGAL       1 Jun 2006 17:58:44 -0000
@@ -93,6 +93,7 @@
 ccc-*.alpha.rpm                lang/compaq-cc          Distribution not allowed
 checkpassword-*.tar.gz security/checkpassword  Unsure of djb's license
 citrix_ica-*-de.tar.gz german/citrix_ica       License prohibits redistribution
+citrix_ica-*-ja.tar.gz japanese/citrix_ica     License prohibits redistribution
 citrix_ica-*.tar.gz    net/citrix_ica          License prohibits redistribution
 cfs-*                  security/cfs            Crypto; export-controlled
 clibpdf*.tar.gz                print/clibpdf           Needs a license to bundle with

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606011808.k51I8kEf007590>