summaryrefslogtreecommitdiff
path: root/www/linux-opera/files/patch-aa
blob: db78da601a33e215acddfaaded2f7744af40f7f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--- install.sh.orig	Thu Nov 22 12:38:09 2001
+++ install.sh	Tue Nov 27 02:05:55 2001
@@ -228,7 +228,16 @@
 	    mvv=''    # SunOS mv (no -v verbose option)
 	;;
 
-	i[3456]86:NetBSD)
+	i[3456]86:FreeBSD|i[3456]86:NetBSD)
+	    cpf='-f'
+	    if test "$verbose" -gt '1'; then
+		chmodv='-v'
+		mkdirv='-v'
+	    fi
+	    if test "$verbose" -gt '0'; then
+		mvv='-v'
+		cpv='-v'
+	    fi
 	;;
 
 	i[3456]86:Linux)
@@ -477,10 +486,10 @@
 
 # Opera enviroment
 if test \"\${OPERA_DIR}\" = '' ; then 
-  if test -d /usr/share/opera ; then 
-    OPERA_DIR=/usr/share/opera
+  if test -d %%DATADIR%% ; then 
+    OPERA_DIR=%%DATADIR%%
   else
-    echo \"OPERA_DIR unset and not in default location (/usr/share/opera)\"
+    echo \"OPERA_DIR unset and not in default location (%%DATADIR%%)\"
     exit 1
   fi
 fi
@@ -491,18 +500,11 @@
 for DIR in \\
     \"\${HOME}/.opera/plugins\" \\
     ${plugin_dir} \\
-    /usr/lib/opera/plugins \\
-    /usr/local/Acrobat4/Browsers/intellinux \\
-    /usr/java/jre1.3.1/plugin/i386/ns4 \\
-    /usr/lib/RealPlayer8/Plugins \\
-    /usr/lib/realplay/plugins \\
-    /usr/lib/RealPlayer8 \\
-    /usr/lib/realplay \\
+    %%PREFIX%%/lib/opera/plugins \\
+    %%PREFIX%%/Acrobat4/Browsers/intellinux \\
+    %%PREFIX%%/java/linux-*jdk*/jre/plugin/i386/ns4 \\
     \"\${HOME}/.netscape/plugins\" \\
-    /opt/netscape/plugins \\
-    /usr/lib/netscape/plugins \\
-    /usr/local/netscape/plugins \\
-    /usr/local/lib/netscape/plugins \\
+    %%PREFIX%%/lib/netscape-linux/plugins \\
     ; do
     if test -d \${DIR} ; then 
 	OPERA_PLUGIN_PATH=\"\${OPERA_PLUGIN_PATH}\":\"\${DIR}\"