jre: even more fixes.
This commit is contained in:
parent
f045789c60
commit
a0239cd14c
|
@ -6,6 +6,7 @@ case "${ACTION}" in
|
|||
pre)
|
||||
;;
|
||||
post)
|
||||
ldconfig -r .
|
||||
cat << _EOF
|
||||
=====================================================================
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
case $ACTION in
|
||||
post)
|
||||
ldconfig -r .
|
||||
;;
|
||||
esac
|
|
@ -2,7 +2,7 @@
|
|||
pkgname=jre
|
||||
_extraversion=1.7.0
|
||||
version=7
|
||||
revision=1
|
||||
revision=2
|
||||
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"
|
||||
|
@ -48,36 +48,42 @@ do_install()
|
|||
{
|
||||
# Install desktop related items
|
||||
vmkdir usr/share
|
||||
vcopy ${wrksrc}/lib/desktop/icons usr/share
|
||||
vcopy ${wrksrc}/lib/desktop/applications usr/share
|
||||
vcopy ${wrksrc}/lib/desktop/mime usr/share
|
||||
vcopy lib/desktop/icons usr/share
|
||||
vcopy lib/desktop/applications usr/share
|
||||
vcopy lib/desktop/mime usr/share
|
||||
vcopy lib/locale usr/share
|
||||
vcopy man usr/share
|
||||
|
||||
# Install mozilla-compatible browser plugin
|
||||
vmkdir usr/lib/mozilla/plugins
|
||||
vinstall ${wrksrc}/lib/amd64/libnpjp2.so 755 usr/lib/mozilla/plugins
|
||||
vinstall lib/amd64/libnpjp2.so 755 usr/lib/mozilla/plugins
|
||||
|
||||
# Install license(s)
|
||||
vmkdir usr/share/licenses/jre
|
||||
vcopy ${wrksrc}/COPYRIGHT usr/share/licenses/jre
|
||||
vcopy ${wrksrc}/LICENSE usr/share/licenses/jre
|
||||
vcopy ${wrksrc}/THIRDPARTYLICENSEREADME.txt usr/share/licenses/jre
|
||||
vcopy COPYRIGHT usr/share/licenses/jre
|
||||
vcopy LICENSE usr/share/licenses/jre
|
||||
vcopy THIRDPARTYLICENSEREADME.txt usr/share/licenses/jre
|
||||
|
||||
# Fix system prefs folder FS#18872
|
||||
vmkdir etc/.java/.systemPrefs
|
||||
|
||||
# For system environment vars and desktop extra shortcut
|
||||
vinstall ${FILESDIR}/jre.sh 644 etc/profile.d
|
||||
vinstall ${FILESDIR}/java-policy-settings.desktop 644 usr/share/applications
|
||||
vinstall jre.sh 644 etc/profile.d
|
||||
vinstall java-policy-settings.desktop 644 usr/share/applications
|
||||
|
||||
# Install JRE
|
||||
vmkdir opt/java/jre
|
||||
vcopy ${wrksrc}/bin opt/java/jre
|
||||
vcopy ${wrksrc}/lib opt/java/jre
|
||||
vcopy ${wrksrc}/man opt/java/jre
|
||||
vcopy ${wrksrc}/plugin opt/java/jre
|
||||
vcopy ${wrksrc}/release opt/java/jre
|
||||
vcopy ${wrksrc}/Welcome.html opt/java/jre
|
||||
vcopy bin opt/java/jre
|
||||
vcopy lib opt/java/jre
|
||||
vcopy plugin opt/java/jre
|
||||
vcopy release opt/java/jre
|
||||
vcopy Welcome.html opt/java/jre
|
||||
|
||||
rm -rf ${DESTDIR}/opt/java/jre/lib/desktop
|
||||
rm -rf ${DESTDIR}/opt/java/jre/lib/locale
|
||||
|
||||
# linker's config
|
||||
vmkdir etc/ld.so.conf.d
|
||||
echo "/opt/java/jre/lib/amd64" > \
|
||||
${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue