diff --git a/srcpkgs/oracle-jre/INSTALL b/srcpkgs/oracle-jre/INSTALL deleted file mode 100644 index a1f585f318..0000000000 --- a/srcpkgs/oracle-jre/INSTALL +++ /dev/null @@ -1,38 +0,0 @@ -# -# This script will install the actual plugin, advise the user to read the -# license for Oracle JRE and to re-login to have environment variables set -# properly. -# - -BUILD_DIR="./var/tmp/${PKGNAME}-${VERSION}.build" - -do_install() { - mkdir -p "$BUILD_DIR" - wget \ - --no-check-certificate \ - --header "Cookie: oraclelicense=accept-securebackup-cookie" \ - --progress=bar:force \ - -c -O $BUILD_DIR/jre.tar.gz \ - $ORACLE_JRE_URL - echo "$ORACLE_JRE_CHECKSUM $BUILD_DIR/jre.tar.gz" | sha256sum -c || return 1 - tar xf ${BUILD_DIR}/jre.tar.gz || return 1 - - if [ -d usr/lib/jvm/jre$ORACLE_JRE_LONG_VERSION ]; then - rm -rf usr/lib/jvm/jre$ORACLE_JRE_LONG_VERSION - fi - mv jre$ORACLE_JRE_LONG_VERSION usr/lib/jvm/jre$ORACLE_JRE_LONG_VERSION || return 1 - - # To set the java alternative to 'oracle-jre' - xbps-alternatives -s oracle-jre -} - -case "${ACTION}" in -post) - . usr/lib/jvm/oracle-jre-vars.sh - do_install - RESULT=$? - rm -r $BUILD_DIR - [ $RESULT -ne 0 ] && exit $RESULT - ;; -esac - diff --git a/srcpkgs/oracle-jre/INSTALL.msg b/srcpkgs/oracle-jre/INSTALL.msg deleted file mode 100644 index 0db583e18a..0000000000 --- a/srcpkgs/oracle-jre/INSTALL.msg +++ /dev/null @@ -1,11 +0,0 @@ -- The Oracle JRE package is licensed software. - - You MUST read and agree to the license stored in - /usr/share/licenses/oracle-jre/LICENSE - before using it. - -- Please re-login to update PATH and JAVA_HOME or re-source - /etc/profile: - - $ source /etc/profile - diff --git a/srcpkgs/oracle-jre/REMOVE b/srcpkgs/oracle-jre/REMOVE deleted file mode 100644 index cd3c8b2c39..0000000000 --- a/srcpkgs/oracle-jre/REMOVE +++ /dev/null @@ -1,7 +0,0 @@ -case "$ACTION" in -pre) - . usr/lib/jvm/oracle-jre-vars.sh - rm -r usr/lib/jvm/jre$ORACLE_JRE_LONG_VERSION - rm -r usr/lib/jvm/$PKGNAME - ;; -esac diff --git a/srcpkgs/oracle-jre/files/java-policy-settings.desktop b/srcpkgs/oracle-jre/files/java-policy-settings.desktop deleted file mode 100644 index 51a9789ff7..0000000000 --- a/srcpkgs/oracle-jre/files/java-policy-settings.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Exec=/usr/lib/jvm/oracle-jre/bin/policytool -Icon=oracle-java.png -Name=Java Policy Settings -Path= -StartupNotify=true -Terminal=false -Type=Application -Categories=Settings;Java; diff --git a/srcpkgs/oracle-jre/files/java-policy-settings.desktop.in b/srcpkgs/oracle-jre/files/java-policy-settings.desktop.in deleted file mode 100644 index ede6c92a8c..0000000000 --- a/srcpkgs/oracle-jre/files/java-policy-settings.desktop.in +++ /dev/null @@ -1,10 +0,0 @@ -[Desktop Entry] -Exec= -Icon=oracle-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/oracle-jre/files/oracle-jre-128x128.png b/srcpkgs/oracle-jre/files/oracle-jre-128x128.png deleted file mode 100644 index ce5ed56646..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-128x128.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-16x16.png b/srcpkgs/oracle-jre/files/oracle-jre-16x16.png deleted file mode 100644 index fd3d59bdac..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-16x16.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-20x20.png b/srcpkgs/oracle-jre/files/oracle-jre-20x20.png deleted file mode 100644 index afdcbe6ee6..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-20x20.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-22x22.png b/srcpkgs/oracle-jre/files/oracle-jre-22x22.png deleted file mode 100644 index d8729408f8..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-22x22.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-24x24.png b/srcpkgs/oracle-jre/files/oracle-jre-24x24.png deleted file mode 100644 index 70a59d78b7..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-24x24.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-256x256.png b/srcpkgs/oracle-jre/files/oracle-jre-256x256.png deleted file mode 100644 index 59b568fb25..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-256x256.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-32x32.png b/srcpkgs/oracle-jre/files/oracle-jre-32x32.png deleted file mode 100644 index 29441b4604..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-32x32.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-40x40.png b/srcpkgs/oracle-jre/files/oracle-jre-40x40.png deleted file mode 100644 index 789bb3cc8c..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-40x40.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-48x48.png b/srcpkgs/oracle-jre/files/oracle-jre-48x48.png deleted file mode 100644 index c3b3cce4ab..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-48x48.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-512x512.png b/srcpkgs/oracle-jre/files/oracle-jre-512x512.png deleted file mode 100644 index f9129d1a7f..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-512x512.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-64x64.png b/srcpkgs/oracle-jre/files/oracle-jre-64x64.png deleted file mode 100644 index 79618c3c9c..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-64x64.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-72x72.png b/srcpkgs/oracle-jre/files/oracle-jre-72x72.png deleted file mode 100644 index 0efbf9b689..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-72x72.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-96x96.png b/srcpkgs/oracle-jre/files/oracle-jre-96x96.png deleted file mode 100644 index 2d46ccf099..0000000000 Binary files a/srcpkgs/oracle-jre/files/oracle-jre-96x96.png and /dev/null differ diff --git a/srcpkgs/oracle-jre/files/oracle-jre-vars.sh.in b/srcpkgs/oracle-jre/files/oracle-jre-vars.sh.in deleted file mode 100644 index 6d805b20a2..0000000000 --- a/srcpkgs/oracle-jre/files/oracle-jre-vars.sh.in +++ /dev/null @@ -1 +0,0 @@ -export ORACLE_JRE_URL="%ORACLE_JRE_URL%" ORACLE_JRE_CHECKSUM="%ORACLE_JRE_CHECKSUM%" ORACLE_JRE_LONG_VERSION="%LONG_VERSION%" diff --git a/srcpkgs/oracle-jre/files/oracle-jre.sh b/srcpkgs/oracle-jre/files/oracle-jre.sh deleted file mode 100644 index b6188c1b31..0000000000 --- a/srcpkgs/oracle-jre/files/oracle-jre.sh +++ /dev/null @@ -1 +0,0 @@ -export JAVA_HOME=/usr/lib/jvm/oracle-jre diff --git a/srcpkgs/oracle-jre/template b/srcpkgs/oracle-jre/template deleted file mode 100644 index ee72dec2c0..0000000000 --- a/srcpkgs/oracle-jre/template +++ /dev/null @@ -1,92 +0,0 @@ -# Template file for 'oracle-jre' -pkgname=oracle-jre -version=8u202 -revision=1 - -_longVersion=1.${version%u*}.0_${version#*u} -_build=08 -_tag=1961070e4c9b4e26a04e7f5a083f551e - -short_desc="Java Runtime Environment (JRE)" -maintainer="Enno Boland " -homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html" -license="oracle" -lib32disabled=yes -repository="nonfree" -archs="i686 x86_64" -depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info wget" -hostmakedepends="wget" -provides="java-runtime-${version}_1" - - -case "${XBPS_TARGET_MACHINE}" in -x86_64) - _arch=amd64 - _filename=jre-${version}-linux-x64.tar.gz - checksum=9efb1493fcf636e39c94f47bacf4f4324821df2d3aeea2dc3ea1bdc86428cb82 - ;; -i686) - _arch=i386 - _filename=jre-${version}-linux-i586.tar.gz - checksum=12832f354fea65b8df31ee2b28faa4c7a673e0c0a8660c9d0daa5b68aee83e4c - ;; -esac - -alternatives=" - java:/usr/bin/java:/usr/lib/jvm/oracle-jre/bin/java - java:/usr/bin/javaws:/usr/lib/jvm/oracle-jre/bin/javaws - java:/usr/bin/jcontrol:/usr/lib/jvm/oracle-jre/bin/jcontrol - java:/usr/bin/jjs:/usr/lib/jvm/oracle-jre/bin/jjs - java:/usr/bin/keytool:/usr/lib/jvm/oracle-jre/bin/keytool - java:/usr/bin/orbd:/usr/lib/jvm/oracle-jre/bin/orbd - java:/usr/bin/pack200:/usr/lib/jvm/oracle-jre/bin/pack200 - java:/usr/bin/policytool:/usr/lib/jvm/oracle-jre/bin/policytool - java:/usr/bin/rmid:/usr/lib/jvm/oracle-jre/bin/rmid - java:/usr/bin/rmiregistry:/usr/lib/jvm/oracle-jre/bin/rmiregistry - java:/usr/bin/servertool:/usr/lib/jvm/oracle-jre/bin/servertool - java:/usr/bin/tnameserv:/usr/lib/jvm/oracle-jre/bin/tnameserv - java:/usr/bin/unpack200:/usr/lib/jvm/oracle-jre/bin/unpack200 - - java-plugin:/usr/lib/mozilla/plugins/libnpjp2.so:/usr/lib/jvm/oracle-jre/lib/$_arch/libnpjp2.so -" - -distfiles="http://download.oracle.com/otn-pub/java/jdk/${version}-b${_build}/$_tag/${_filename}" -wrksrc="jre$_longVersion" - -do_fetch() { - mkdir -p $wrksrc - cd $wrksrc - wget \ - --no-check-certificate \ - --header "Cookie: oraclelicense=accept-securebackup-cookie" \ - --progress=bar:force \ - -c -O $_filename \ - $distfiles - echo "$checksum $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; } -} - -do_extract() { - tar xf $_filename -C .. -} - -do_build() { - sed \ - -e "s|%LONG_VERSION%|${_longVersion}|" \ - -e "s|%ORACLE_JRE_URL%|${distfiles}|" \ - -e "s|%ORACLE_JRE_CHECKSUM%|${checksum}|" \ - ${FILESDIR}/oracle-jre-vars.sh.in > oracle-jre-vars.sh -} - -do_install() { - vinstall oracle-jre-vars.sh 644 "usr/lib/jvm/" - - vlicense LICENSE - vinstall $FILESDIR/java-policy-settings.desktop 644 usr/share/applications - ln -sf jre${_longVersion} ${DESTDIR}/usr/lib/jvm/oracle-jre - - for i in 16 20 22 24 32 40 48 64 72 96 128 256 512; do - vinstall $FILESDIR/oracle-jre-${i}x${i}.png 644 usr/share/icons/hicolor/${i}x${i}/apps oracle-java.png - done - - vinstall $FILESDIR/oracle-jre.sh 644 "etc/profile.d" 10_oracle-jre.sh -} diff --git a/srcpkgs/oracle-jre/update b/srcpkgs/oracle-jre/update deleted file mode 100644 index 3bd797c1e1..0000000000 --- a/srcpkgs/oracle-jre/update +++ /dev/null @@ -1 +0,0 @@ -pattern=">Java SE \K[^< ]+(?=[< ])"