diff options
Diffstat (limited to 'www/linux-opera7/files/patch-install.sh')
-rw-r--r-- | www/linux-opera7/files/patch-install.sh | 78 |
1 files changed, 56 insertions, 22 deletions
diff --git a/www/linux-opera7/files/patch-install.sh b/www/linux-opera7/files/patch-install.sh index bc7e1339cf18..c764cc29ef7f 100644 --- a/www/linux-opera7/files/patch-install.sh +++ b/www/linux-opera7/files/patch-install.sh @@ -1,6 +1,6 @@ ---- install.sh.orig Sat Apr 12 01:07:58 2003 -+++ install.sh Sat Apr 12 01:17:23 2003 -@@ -721,20 +721,13 @@ +--- install.sh.orig Mon May 5 18:19:51 2003 ++++ install.sh Mon May 5 18:49:29 2003 +@@ -721,17 +721,9 @@ case "${machine}:${os}" in i[3456]86:Linux|i[3456]86:FreeBSD|i[3456]86:NetBSD|i[3456]86:OpenBSD) wrapper_plugin_paths=" @@ -15,28 +15,62 @@ - /usr/lib/j2re1.3/plugin/i386/netscape4 \\ - /usr/local/jdk1.3.1/jre/plugin/i386/ns4 \\ - /usr/local/linux-jdk1.3.1/jre/plugin/i386/ns4 \\" -+ $prefix/lib/RealPlayer8/Plugins \\ -+ $prefix/Acrobat[45]/Browsers/intellinux \\ -+ $prefix/linux-sun-jdk1.[34].1/jre/plugin/i386/ns4 \\ -+ $prefix/linux-blackdown-jdk1.[34].1/jre/plugin/i386/netscape4 \\" ++ %%LOCALBASE%%/Acrobat[45]/Browsers/intellinux \\ ++ %%LOCALBASE%%/linux-sun-jdk1.[34].1/jre/plugin/i386/ns4 \\ ++ %%LOCALBASE%%/linux-blackdown-jdk1.[34].1/jre/plugin/i386/netscape4 \\" wrapper_ibmjava=" -- IBMJava2-14/jre \\ -- IBMJava2-131/jre \\" -+ linux-ibm-jdk1.3.1/jre \\ -+ linux-ibm-jdk1.4.0/jre \\" - wrapper_sunjava_machine="i386" + IBMJava2-14/jre \\ + IBMJava2-131/jre \\" +@@ -781,7 +773,7 @@ ;; + esac + wrapper_netscape_plugin_paths=" +- /usr/lib/RealPlayer8/Plugins \\ ++ %%LOCALBASE%%/lib/RealPlayer8/Plugins \\ + /usr/lib/realplay/plugins \\ + /usr/lib/RealPlayer8 \\ + /usr/lib/realplay \\ +@@ -789,7 +781,7 @@ + /opt/netscape/plugins \\ + /usr/lib/netscape/plugins \\ + /usr/local/netscape/plugins \\ +- /usr/local/lib/netscape/plugins \\" ++ %%LOCALBASE%%/lib/netscape-linux/plugins \\" -@@ -905,7 +898,7 @@ + wrapper_file="${wrapper_dir}/opera" + +@@ -862,8 +854,8 @@ + jre1.3.1 \\ + j2re1.3 \\ + ; do +- for PREFIX in \${PREFIXES}; do +- if test -f \"\${PREFIX}/\${SUNJAVA}/lib/${wrapper_sunjava_machine}/libjava.so\"; then OPERA_JAVA_DIR=\"\${PREFIX}/\${SUNJAVA}/lib/${wrapper_sunjava_machine}\" && break; fi ++ for PREFIX in %%LOCALBASE%%; do ++ if test -f \"%%LOCALBASE%%/\${SUNJAVA}/lib/${wrapper_sunjava_machine}/libjava.so\"; then OPERA_JAVA_DIR=\"%%LOCALBASE%%/\${SUNJAVA}/lib/${wrapper_sunjava_machine}\" && break; fi + done + if test \"\${OPERA_JAVA_DIR}\"; then break; fi + done +@@ -871,8 +863,8 @@ + if test ! \"\${OPERA_JAVA_DIR}\"; then + for IBMJAVA in \\${wrapper_ibmjava} + ; do +- for PREFIX in \${PREFIXES}; do +- if test -f \"\${PREFIX}/\${IBMJAVA}/bin/libjava.so\"; then OPERA_JAVA_DIR=\"\${PREFIX}/\${IBMJAVA}/bin\" && break; fi ++ for PREFIX in %%LOCALBASE%%; do ++ if test -f \"%%LOCALBASE%%/\${IBMJAVA}/bin/libjava.so\"; then OPERA_JAVA_DIR=\"%%LOCALBASE%%/\${IBMJAVA}/bin\" && break; fi + done + if test \"\${OPERA_JAVA_DIR}\"; then break; fi + done +@@ -905,7 +897,7 @@ # Acrobat Reader for BINDIR in \\ - /usr/local/Acrobat[45]/bin \\ -+ $prefix/Acrobat[45]/bin \\ ++ %%LOCALBASE%%/Acrobat[45]/bin \\ /usr/lib/Acrobat[45]/bin \\ /usr/X11R6/lib/Acrobat[45]/bin \\ /opt/Acrobat[45]/bin \\ -@@ -1106,7 +1099,7 @@ +@@ -1106,7 +1098,7 @@ mkdir $mkdirv $mkdirp $share_dir/java/ chmod $chmodv 755 $share_dir/java @@ -45,7 +79,7 @@ generate_opera_policy # Plug-in files -@@ -1119,8 +1112,9 @@ +@@ -1119,8 +1111,9 @@ chmod $chmodv 755 $plugin_dir/operamotifwrapper $plugin_dir/operaplugincleaner $plugin_dir/libnpp.so # System wide configuration files @@ -56,7 +90,7 @@ echo echo "System wide configuration files:" echo " $config_dir/opera6rc" -@@ -1147,6 +1141,7 @@ +@@ -1147,6 +1140,7 @@ ;; esac done @@ -64,7 +98,7 @@ else echo echo "User \"${USERNAME}\" does not have write access to $config_dir" -@@ -1230,22 +1225,22 @@ +@@ -1230,22 +1224,22 @@ debug_msg 0 "in icons()" @@ -99,7 +133,7 @@ fi if test ! -d /etc/X11/wmconfig/; then -@@ -1311,36 +1306,36 @@ +@@ -1311,36 +1305,36 @@ fi # end /opt/gnome share @@ -148,7 +182,7 @@ - chmod $chmodv 755 /usr/share/gnome/apps/Internet - generate_desktop /usr/share/gnome/apps/Internet + elif test -w %%X11PREFIX%%/share/gnome/apps; then -+ mkdir $mkdirv $mkdirp %%X11PREFIX%%/share/gnome/apps/Internet/ ++ mkdir $mkdirv $mkdirp%%X11PREFIX%%/share/gnome/apps/Internet/ + chmod $chmodv 755 %%X11PREFIX%%/share/gnome/apps/Internet + generate_desktop %%X11PREFIX%%/share/gnome/apps/Internet fi @@ -158,7 +192,7 @@ fi # Add ximian here } -@@ -1377,12 +1372,12 @@ +@@ -1377,12 +1371,12 @@ fi @@ -176,7 +210,7 @@ fi } -@@ -1406,8 +1401,8 @@ +@@ -1406,8 +1400,8 @@ fi if test -w /opt/kde/share/applnk/Internet; then generate_desktop /opt/kde/share/applnk/Internet; fi |