summaryrefslogtreecommitdiff
path: root/net/citrix_ica/files/patch-linuxx86__hinst
diff options
context:
space:
mode:
Diffstat (limited to 'net/citrix_ica/files/patch-linuxx86__hinst')
-rw-r--r--net/citrix_ica/files/patch-linuxx86__hinst180
1 files changed, 180 insertions, 0 deletions
diff --git a/net/citrix_ica/files/patch-linuxx86__hinst b/net/citrix_ica/files/patch-linuxx86__hinst
new file mode 100644
index 000000000000..4b452be4dce0
--- /dev/null
+++ b/net/citrix_ica/files/patch-linuxx86__hinst
@@ -0,0 +1,180 @@
+--- linuxx86/hinst.orig 2012-04-13 14:57:24.000000000 +0000
++++ linuxx86/hinst 2013-01-02 04:11:06.000000000 +0000
+@@ -105,7 +105,7 @@
+ fi
+
+ # Install in here by default.
+-DefaultInstallDir=/opt/Citrix/ICAClient
++DefaultInstallDir=%%PREFIX%%/ICAClient
+
+ # Default CDROM mount point
+ DefaultCDSourceDir=/cdrom
+@@ -1475,7 +1475,7 @@
+ set_require_ICA_license()
+ {
+ REQUIRE_LICENSE=
+- if [ ! -f /etc/icalicense/clientlicense ]
++ if [ ! -f %%PREFIX%%/etc/icalicense/clientlicense ]
+ then
+ TRY1=`"$ECHO_CMD" -l`
+ sleep 1
+@@ -1498,14 +1498,14 @@
+ # a license file.
+
+ if [ -n "$SU_INSTALL" ] ; then
+- create_dir /etc/icalicense
++ create_dir %%PREFIX%%/etc/icalicense
+
+- if [ ! -f /etc/icalicense/clientlicense ]
++ if [ ! -f %%PREFIX%%/etc/icalicense/clientlicense ]
+ then
+- "$ECHO_CMD" -l >/etc/icalicense/clientlicense
++ "$ECHO_CMD" -l > %%PREFIX%%/etc/icalicense/clientlicense
+ fi
+- chmod 444 /etc/icalicense/clientlicense
+- chmod 555 /etc/icalicense
++ chmod 444 %%PREFIX%%/etc/icalicense/clientlicense
++ chmod 555 %%PREFIX%%/etc/icalicense
+ fi
+ }
+ ###############################################################################
+@@ -1548,7 +1548,7 @@
+
+ echo_no_nl "$instica4"
+
+- getyesno $INSTALLER_NO
++ ANSWER=${INSTALLER_YES}
+ if [ "$ANSWER" != "$INSTALLER_YES" ]
+ then
+ "$ECHO_CMD" $instica5
+@@ -1570,7 +1570,7 @@
+ rm $EULA
+
+ if
+- eula_acceptance_menu
++ true
+ then
+ # EULA accepted - continue with installation
+ :
+@@ -1589,9 +1589,8 @@
+
+ if [ "$PORT" != "uclibc" ]
+ then
+- integrate_ICA_client
++ :
+ fi
+- install_usb "$CDSourceDir" "$ICAInstDir"
+ else
+ COR_SELECTED=false
+ fi
+@@ -1899,7 +1898,7 @@
+ while [ "$got_directory" = "false" ]
+ do
+ echo_no_nl "$dirutil1a $ICAInstDir] $dirutil1b"
+- read newCDSourceDir
++ newCDSOurceDir=${DefaultInstallDir}
+ if [ "x$newCDSourceDir" != "x" ]
+ then
+ CDSourceDir="$newCDSourceDir"
+@@ -1971,7 +1970,7 @@
+ while [ "$got_directory" = "false" ]
+ do
+ echo_no_nl "$dirutil4a $ICAInstDir] $dirutil4b"
+- read newICAInstDir
++ newICAInstDir=${DefaultInstallDir}
+ if [ "`echo x$newICAInstDir | tolower`" = "x$INSTALLER_QUIT" ]
+ then
+ FAIL_MSG=$dirutil13
+@@ -2567,7 +2566,7 @@
+ then
+ :
+ else
+- /bin/false
++ /usr/bin/false
+ return
+ fi
+
+@@ -2641,7 +2640,7 @@
+ fi
+ fi
+
+- /bin/true
++ /usr/bin/true
+ }
+
+ #!/bin/sh
+@@ -2787,26 +2786,19 @@
+
+ netscape_integrate()
+ {
+- user_echo $integrate_netscape1
+ if test -z "$SU_INSTALL"
+ then
+ set_npui_variables
+ found_netscape
+ else
+ search_ok=0
+- EXTRA_BROWSERS=`find_browsers`
+-
+- if test -d "/usr/lib/netscape"\
+- || test -d "/usr/local/netscape"\
+- || test -d "/opt/netscape"\
+- || test -d "/usr/local/lib/netscape"\
+- || test -d "/usr/dt/appconfig/netscape"\
+- || test "$MOZILLA_HOME" != "" -a -d "$MOZILLA_HOME"\
+- || test "$EXTRA_BROWSERS" != ""
+- then
++
++ case ${FOUND_NS} in
++ TRUE)
+ user_echo $integrate_netscape3
+ found_netscape
+- else
++ ;;
++ *)
+ user_prompt "$integrate_netscape2"
+ getyesno $INSTALLER_NO
+ if [ "$ANSWER" = "$INSTALLER_YES" ]
+@@ -2815,9 +2807,9 @@
+ else
+ user_echo $integrate_netscape6
+ fi
++ ;;
++ esac
+ fi
+- fi
+-
+ # Create utility script files in install root.
+ create_wfica_script
+ create_wfica_assoc_script
+@@ -4422,8 +4414,9 @@
+ "$ECHO_CMD" $menus5
+ return 0
+ fi
+- while true
+- do
++ #while true
++ #do
++ {
+ #
+ # Get the Function the user wants to perform
+ #
+@@ -4437,7 +4430,7 @@
+ fi
+ echo_no_nl "$menus2 1-$menuItems [$keyDefault]: "
+
+- read keynum
++ keynum=1
+
+ if test "x$keynum" = "x"
+ then
+@@ -4502,7 +4495,8 @@
+ # After any action make exit the default
+ keyDefault=3
+ fi
+- done
++ #done
++ }
+ }
+
+