/[pkg-java]/trunk/java-package/lib/sun-j2re.sh
ViewVC logotype

Contents of /trunk/java-package/lib/sun-j2re.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 789 - (show annotations) (download) (as text)
Mon Jan 3 20:48:37 2005 UTC (8 years, 4 months ago) by jeroen
File MIME type: application/x-sh
File size: 2142 byte(s)
* Added automatically-generated file SUPPORTED that lists all binary
  filenames that are supported, thanks Alex Owen <owen@cus.org.uk> for the
  idea (Closes: #275296)
1 # Detect product
2 function sun_j2re_detect() {
3 local found=
4 eval $(dpkg-architecture)
5 case "$DEB_BUILD_GNU_TYPE" in
6 "i386-linux")
7 case "$archive_name" in
8 "j2re-1_3_1_"[0-9][0-9]"-linux-i586.bin") # SUPPORTED
9 j2se_version="1.3.1+${archive_name:11:2}"
10 j2se_expected_min_size=38 # 39089 kB
11 found=true
12 ;;
13 "j2re-1_4_1_"[0-9][0-9]"-linux-i586.bin") # SUPPORTED
14 j2se_version="1.4.1+${archive_name:11:2}"
15 j2se_expected_min_size=54 # 55392 kB
16 found=true
17 ;;
18 "j2re-1_4_2-linux-i586.bin") # SUPPORTED
19 j2se_version=1.4.2
20 j2se_expected_min_size=56 # 58000 kB
21 found=true
22 ;;
23 "j2re-1_4_2_"[0-9][0-9]"-linux-i586.bin") # SUPPORTED
24 j2se_version="1.4.2+${archive_name:11:2}"
25 j2se_expected_min_size=56 # 58093 kB
26 found=true
27 ;;
28 "j2re-1_5_0-beta2-linux-i586.bin") # SUPPORTED
29 j2se_version=1.5.0+beta2
30 j2se_expected_min_size=81 # 83267 kB
31 found=true
32 ;;
33 "jre-1_5_0-linux-i586.bin") # SUPPORTED
34 j2se_version=1.5.0-00
35 j2se_expected_min_size=85 # 86832 kB
36 found=true
37 ;;
38 "jre-1_5_0_"[0-9][0-9]"-linux-i586.bin") # SUPPORTED
39 j2se_version=1.5.0-${archive_name:10:2}
40 j2se_expected_min_size=80
41 found=true
42 ;;
43 esac
44 ;;
45 "x86_64-linux")
46 case "$archive_name" in
47 "jre-1_5_0-linux-amd64.bin") # SUPPORTED
48 j2se_version=1.5.0-00
49 j2se_expected_min_size=68 # 69936 kB
50 found=true
51 ;;
52 "jre-1_5_0_"[0-9][0-9]"-linux-amd64.bin") # SUPPORTED
53 j2se_version=1.5.0-${archive_name:10:2}
54 j2se_expected_min_size=60 # 69936 kB
55 found=true
56 ;;
57 esac
58 ;;
59 esac
60 if [[ -n "$found" ]]; then
61 cat << EOF
62
63 Detected product:
64 Java(TM) Runtime Environment (J2RE)
65 Standard Edition, Version $j2se_version
66 Sun Microsystems(TM), Inc.
67 EOF
68 if read_yn "Is this correct [Y/n]: "; then
69 j2se_found=true
70 j2se_release="${j2se_version:0:3}"
71 j2se_required_space=$(( $j2se_expected_min_size * 2 + 20 ))
72 j2se_vendor="sun"
73 j2se_title="Java(TM) 2 RE, Standard Edition, Sun Microsystems(TM)"
74 j2re_run
75 fi
76 fi
77 }
78
79 j2se_detect_sun_j2re=sun_j2re_detect

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5