d63408eaeb61c6483d64b88e15b644919d81ec39
[sven/java-package.git] / lib / jre.sh
1
2 j2re_control() {
3     j2se_control
4     cat << EOF
5 Package: $j2se_package
6 Architecture: any
7 Depends: \${shlibs:Depends}
8 Recommends: netbase
9 Provides: java-virtual-machine, java-runtime, java2-runtime, java${j2se_release}-runtime, java$((${j2se_release}-1))-runtime, java$((${j2se_release}-2))-runtime, java-runtime-headless, java2-runtime-headless, java${j2se_release}-runtime-headless, java$((${j2se_release}-1))-runtime-headless, java$((${j2se_release}-2))-runtime-headless, java-browser-plugin
10 Description: $j2se_title
11  The Java(TM) SE Runtime Environment contains the Java virtual machine,
12  runtime class libraries, and Java application launcher that are
13  necessary to run programs written in the Java progamming language
14  (this includes the Java 2 Plug-In for Netscape and Mozilla
15  browsers). It is not a development environment and doesn't contain
16  development tools such as compilers or debuggers. For development
17  tools, see the Java 2 SDK, Standard Edition.
18  .
19  This package has been automatically created with java-package ($version).
20 EOF
21 }
22
23 # build debian package
24 j2re_run() {
25     echo
26     diskfree "$j2se_required_space"
27     read_maintainer_info
28     j2se_package="$j2se_vendor-java$j2se_release-jre"
29     j2se_name="jre-$j2se_release-$j2se_vendor-$j2se_arch"
30     local target="$install_dir$jvm_base$j2se_name"
31     install -d -m 755 "$( dirname "$target" )"
32     extract_bin "$archive_path" "$j2se_expected_min_size" "$target"
33     rm -rf "$target/.systemPrefs"
34     echo "7" > "$debian_dir/compat"
35     j2se_readme > "$debian_dir/README.Debian"
36     j2se_changelog > "$debian_dir/changelog"
37     j2re_control > "$debian_dir/control"
38     j2se_copyright > "$debian_dir/copyright"
39     j2se_install_scripts
40     install -d "$target/debian"
41     j2se_info > "$target/debian/info"
42     eval "$j2se_jinfo" > "$install_dir$jvm_base.$j2se_name.jinfo"
43     j2se_build
44 }