diff --git a/srcpkgs/jre/INSTALL b/srcpkgs/jre/INSTALL new file mode 100644 index 00000000000..e924268d5bd --- /dev/null +++ b/srcpkgs/jre/INSTALL @@ -0,0 +1,23 @@ +# +# This script will advise the user to read the license for JRE +# and to re-login to have JRE included in PATH +# +case "${ACTION}" in +pre) + ;; +post) + cat << _EOF +===================================================================== + +- The Oracle JRE package is licensed software. + + You MUST read and agree to the license stored in + /usr/share/licenses/jre/LICENSE before using it. + +- Please re-login to include JRE in your PATH. + +===================================================================== +_EOF + ;; +esac + diff --git a/srcpkgs/jre/files/java-policy-settings.desktop b/srcpkgs/jre/files/java-policy-settings.desktop new file mode 100644 index 00000000000..0e032258d88 --- /dev/null +++ b/srcpkgs/jre/files/java-policy-settings.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Exec=policytool +Icon=sun-java.png +Name[cs]=Nastavení politiky Java aplikací +Name=Java Policy Settings +Path= +StartupNotify=true +Terminal=false +Type=Application +Categories=Settings;Java; diff --git a/srcpkgs/jre/files/jre.sh b/srcpkgs/jre/files/jre.sh new file mode 100644 index 00000000000..ded0efe8179 --- /dev/null +++ b/srcpkgs/jre/files/jre.sh @@ -0,0 +1,2 @@ +export PATH=$PATH:/opt/java/jre/bin +export JAVA_HOME=${JAVA_HOME:-/opt/java/jre} diff --git a/srcpkgs/jre/template b/srcpkgs/jre/template new file mode 100644 index 00000000000..2bc12fe6793 --- /dev/null +++ b/srcpkgs/jre/template @@ -0,0 +1,69 @@ +# Template file for 'oracle-jre' +pkgname=jre +_extraversion=1.7.0 +version=7 +distfiles="http://download.oracle.com/otn-pub/java/jdk/${version}/jre-${version}-linux-x64.tar.gz" +build_style=custom-install +short_desc="Oracle's Java Runtime Environment (JRE) - Version 7" +maintainer="davehome /dev/null +}