jdk: remove package, will be replaced by oracle-jdk.

This commit is contained in:
Enno Boland 2014-06-22 07:54:19 +02:00
parent eb7d853b06
commit bc0126f90b
6 changed files with 0 additions and 188 deletions

View File

@ -1 +0,0 @@
jre

View File

@ -1,27 +0,0 @@
#
# 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)
ldconfig -r .
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 or re-source
/etc/profile:
$ source /etc/profile
=====================================================================
_EOF
;;
esac

View File

@ -1,5 +0,0 @@
case $ACTION in
post)
ldconfig -r .
;;
esac

View File

@ -1,10 +0,0 @@
[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;

View File

@ -1,2 +0,0 @@
export PATH=$PATH:/usr/share/java/bin
export JAVA_HOME=${JAVA_HOME:-/usr/share/java}

View File

@ -1,143 +0,0 @@
# Template file for 'oracle-jre'
pkgname=jre
_extraversion=1.7.0_55
version=7u55
revision=1
wrksrc="jdk${_extraversion}"
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
distfiles="http://ghaffarian.net/downloads/Java/JDK/jdk-${version}-linux-x64.tar.gz"
checksum=86f8c25718801672b7289544119e7909de82bb48393b78ae89656b2561675697
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
distfiles="http://ghaffarian.net/downloads/Java/JDK/jdk-${version}-linux-i586.tar.gz"
checksum=81792b39f19124420186c793282548bcb91c521f42f19d2509aeb6b9682c1b78
fi
short_desc="Oracle's Java Runtime Environment (JRE) - Version 7"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
license="oracle"
lib32disabled=yes
nonfree=yes
only_for_archs="i686 x86_64"
depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info"
provides="java-runtime-${version}_${revision}"
replaces="java-runtime>=0"
do_install() {
# Install desktop related items
vmkdir usr/share
vcopy jre/lib/desktop/icons usr/share
vcopy jre/lib/desktop/applications usr/share
vcopy jre/lib/desktop/mime usr/share
vcopy jre/lib/locale usr/share
vcopy man usr/share
rm -rf ${DESTDIR}/usr/share/man/ja
# Install license(s)
vmkdir usr/share/licenses/java
vcopy COPYRIGHT usr/share/licenses/java
vcopy LICENSE usr/share/licenses/java
vcopy THIRDPARTYLICENSEREADME.txt usr/share/licenses/java
vcopy THIRDPARTYLICENSEREADME-JAVAFX.txt usr/share/licenses/java
# For system environment vars and desktop extra shortcut
vinstall ${FILESDIR}/java.sh 644 etc/profile.d
vinstall ${FILESDIR}/java-policy-settings.desktop 644 usr/share/applications
vmkdir usr/share/java
vmkdir usr/share/java/bin
vmkdir usr/share/java/lib
# Install JDK
vcopy "bin/*" "usr/share/java/bin"
vcopy "lib/*" "usr/share/java/lib"
vcopy README.html usr/share/java
# Install JRE
vcopy "jre/bin/*" "usr/share/java/bin"
vcopy "jre/lib/*" "usr/share/java/lib"
vcopy jre/Welcome.html usr/share/java
vcopy release usr/share/java
rm -rf ${DESTDIR}/usr/share/java/lib/desktop
rm -rf ${DESTDIR}/usr/share/java/lib/locale
# Install mozilla compatible plugin.
vmkdir usr/lib/mozilla/plugins
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
_arch=amd64
else
_arch=i386
fi
# Remove shlib linking to old ffmpeg libraries.
rm -f ${DESTDIR}/usr/share/java/lib/${_arch}/fxavcodecplugin-52.so
cd ${DESTDIR}/usr/lib/mozilla/plugins
ln -sf ../../../share/java/lib/${_arch}/libnpjp2.so .
# linker's config
vmkdir etc/ld.so.conf.d
echo "/usr/share/java/lib/${_arch}" > \
${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
}
jdk_package() {
short_desc="Oracle's Java Development Kit (JDK) - Version 7"
depends="jre>=${version}_${revision}"
nonfree=yes
pkg_install() {
vmove "usr/share/java/README.html"
vmove "usr/share/licenses/java/THIRDPARTYLICENSEREADME-JAVAFX.txt"
vmove "usr/share/java/lib/ant-javafx.jar"
vmove "usr/share/java/lib/ct.sym"
vmove "usr/share/java/lib/dt.jar"
vmove "usr/share/java/lib/ir.idl"
vmove "usr/share/java/lib/javafx-doclet.jar"
vmove "usr/share/java/lib/javafx-mx.jar"
vmove "usr/share/java/lib/jconsole.jar"
vmove "usr/share/java/lib/missioncontrol"
vmove "usr/share/java/lib/orb.idl"
vmove "usr/share/java/lib/sa-jdi.jar"
vmove "usr/share/java/lib/tools.jar"
vmove "usr/share/java/lib/visualvm"
vmove "usr/share/java/bin/appletviewer"
vmove "usr/share/java/bin/apt"
vmove "usr/share/java/bin/extcheck"
vmove "usr/share/java/bin/idlj"
vmove "usr/share/java/bin/jar"
vmove "usr/share/java/bin/jarsigner"
vmove "usr/share/java/bin/java-rmi.cgi"
vmove "usr/share/java/bin/javac"
vmove "usr/share/java/bin/javadoc"
vmove "usr/share/java/bin/javafxpackager"
vmove "usr/share/java/bin/javah"
vmove "usr/share/java/bin/javap"
vmove "usr/share/java/bin/jcmd"
vmove "usr/share/java/bin/jconsole"
vmove "usr/share/java/bin/jdb"
vmove "usr/share/java/bin/jhat"
vmove "usr/share/java/bin/jinfo"
vmove "usr/share/java/bin/jmap"
vmove "usr/share/java/bin/jmc"
vmove "usr/share/java/bin/jmc.ini"
vmove "usr/share/java/bin/jps"
vmove "usr/share/java/bin/jrunscript"
vmove "usr/share/java/bin/jsadebugd"
vmove "usr/share/java/bin/jstack"
vmove "usr/share/java/bin/jstat"
vmove "usr/share/java/bin/jstatd"
vmove "usr/share/java/bin/jvisualvm"
vmove "usr/share/java/bin/native2ascii"
vmove "usr/share/java/bin/rmic"
vmove "usr/share/java/bin/schemagen"
vmove "usr/share/java/bin/serialver"
vmove "usr/share/java/bin/wsgen"
vmove "usr/share/java/bin/wsimport"
vmove "usr/share/java/bin/xjc"
}
}