oracle-jre: remove

Closes: #23881
This commit is contained in:
Jürgen Buchmüller 2020-08-03 16:28:09 +02:00
parent 68ab32d2dd
commit 46371e7636
22 changed files with 0 additions and 170 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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;

View file

@ -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;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 881 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 973 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,014 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

View file

@ -1 +0,0 @@
export ORACLE_JRE_URL="%ORACLE_JRE_URL%" ORACLE_JRE_CHECKSUM="%ORACLE_JRE_CHECKSUM%" ORACLE_JRE_LONG_VERSION="%LONG_VERSION%"

View file

@ -1 +0,0 @@
export JAVA_HOME=/usr/lib/jvm/oracle-jre

View file

@ -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 <gottox@voidlinux.org>"
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
}

View file

@ -1 +0,0 @@
pattern=">Java SE \K[^< ]+(?=[< ])"