View | Details | Raw Unified
Collapse All | Expand All

(-) dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r10.ebuild (-9 / +5 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r10.ebuild,v 1.12 2004/07/14 01:44:43 agriffis Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r10.ebuild,v 1.12 2004/07/14 01:44:43 agriffis Exp $
inherit java nsplugins gcc
inherit java gcc
S=${WORKDIR}/j2sdk1.3.1
S=${WORKDIR}/j2sdk1.3.1
DESCRIPTION="Blackdown Java Development Kit 1.3.1"
DESCRIPTION="Blackdown Java Development Kit 1.3.1"
 Lines 12-18    Link Here 
LICENSE="sun-bcla-java-vm"
LICENSE="sun-bcla-java-vm"
SLOT="1.3"
SLOT="1.3"
KEYWORDS="ppc"
KEYWORDS="ppc"
IUSE="doc"
IUSE="doc mozilla"
DEPEND="virtual/libc
DEPEND="virtual/libc
	>=dev-java/java-config-0.2.5
	>=dev-java/java-config-0.2.5
 Lines 52-57    Link Here 
	dohtml README.html
	dohtml README.html
	# Install ns plugin
	# Install ns plugin
	if use mozilla; then
	if [ "${ARCH}" == "x86" ] ; then
	if [ "${ARCH}" == "x86" ] ; then
		PLATFORM="i386"
		PLATFORM="i386"
	elif [ "${ARCH}" == "ppc" ] ; then
	elif [ "${ARCH}" == "ppc" ] ; then
 Lines 59-66    Link Here 
	elif [ "${ARCH}" == "sparc" ] ; then
	elif [ "${ARCH}" == "sparc" ] ; then
		PLATFORM="sparc"
		PLATFORM="sparc"
	fi
	fi
		install_mozilla_pluing /opt/${P}/jre/plugin/${PLATFORM}/mozilla/libjavaplugin_oji.so
	inst_plugin /opt/${P}/jre/plugin/${PLATFORM}/mozilla/javaplugin_oji.so
	fi
	find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
	find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
 Lines 76-83    Link Here 
	# install env into /etc/env.d
	# install env into /etc/env.d
	set_java_env ${FILESDIR}/${VMHANDLE} || die
	set_java_env ${FILESDIR}/${VMHANDLE} || die
}
}
pkg_postinst () {
	# Set as default system VM if none exists
	java_pkg_postinst
}
(-) dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r8.ebuild (-6 / +12 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r8.ebuild,v 1.16 2004/09/21 13:58:18 axxo Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r8.ebuild,v 1.16 2004/09/21 13:58:18 axxo Exp $
inherit java nsplugins
inherit java
S=${WORKDIR}/j2sdk1.3.1
S=${WORKDIR}/j2sdk1.3.1
DESCRIPTION="Blackdown Java Development Kit 1.3.1"
DESCRIPTION="Blackdown Java Development Kit 1.3.1"
 Lines 14-20    Link Here 
LICENSE="sun-bcla-java-vm"
LICENSE="sun-bcla-java-vm"
SLOT="1.3"
SLOT="1.3"
KEYWORDS="x86 ~ppc sparc"
KEYWORDS="x86 ~ppc sparc"
IUSE="doc"
IUSE="doc mozilla"
DEPEND="virtual/libc
DEPEND="virtual/libc
	>=dev-java/java-config-0.2.5
	>=dev-java/java-config-0.2.5
 Lines 23-29    Link Here 
	virtual/jre-1.3.1
	virtual/jre-1.3.1
	virtual/java-scheme-2"
	virtual/java-scheme-2"
src_unpack () {
src_unpack() {
	if use ppc || use sparc ; then
	if use ppc || use sparc ; then
		tail -n +400 ${DISTDIR}/${A} | tar jxpf -
		tail -n +400 ${DISTDIR}/${A} | tar jxpf -
	else
	else
 Lines 37-43    Link Here 
}
}
src_install () {
src_install() {
	dodir /opt/${P}
	dodir /opt/${P}
 Lines 58-64    Link Here 
		PLATFORM="sparc"
		PLATFORM="sparc"
	fi
	fi
	inst_plugin /opt/${P}/jre/plugin/${PLATFORM}/mozilla/javaplugin_oji.so
	use mozilla && install_mozilla_plugin /opt/${P}/jre/plugin/${PLATFORM}/mozilla/javaplugin_oji.so
	find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
	find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
 Lines 72-78    Link Here 
	set_java_env ${FILESDIR}/${VMHANDLE} || die
	set_java_env ${FILESDIR}/${VMHANDLE} || die
}
}
pkg_postinst () {
pkg_postinst() {
	# Set as default system VM if none exists
	# Set as default system VM if none exists
	java_pkg_postinst
	java_pkg_postinst
	if use mozilla; then
		einfo "The java mozilla plugin supplied by this package does not"
		einfo "work with newer of mozilla/firefox versions."
		einfo "You will need >=${PN}-1.4 from them."
	fi
}
}
(-) dev-java/blackdown-jdk/blackdown-jdk-1.4.1.ebuild (-6 / +7 lines)
 Lines 3-9    Link Here 
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.4.1.ebuild,v 1.20 2004/09/21 08:14:39 axxo Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.4.1.ebuild,v 1.20 2004/09/21 08:14:39 axxo Exp $
inherit java nsplugins
inherit java
JREV="01"
JREV="01"
 Lines 21-27    Link Here 
LICENSE="sun-bcla-java-vm"
LICENSE="sun-bcla-java-vm"
SLOT="1.4.1"
SLOT="1.4.1"
KEYWORDS="x86 -ppc sparc amd64"
KEYWORDS="x86 -ppc sparc amd64"
IUSE="doc"
IUSE="doc mozilla"
DEPEND="virtual/libc
DEPEND="virtual/libc
	>=dev-java/java-config-0.2.6
	>=dev-java/java-config-0.2.6
 Lines 48-54    Link Here 
	eval echo $offset
	eval echo $offset
}
}
src_unpack () {
src_unpack() {
	local offset="`get_offset ${DISTDIR}/${A}`"
	local offset="`get_offset ${DISTDIR}/${A}`"
	if [ -z "${offset}" ] ; then
	if [ -z "${offset}" ] ; then
 Lines 61-67    Link Here 
}
}
src_install () {
src_install() {
	local PLATFORM=
	local PLATFORM=
	dodir /opt/${P}
	dodir /opt/${P}
 Lines 87-93    Link Here 
		PLATFORM="sparc"
		PLATFORM="sparc"
	fi
	fi
	inst_plugin /opt/${P}/jre/plugin/${PLATFORM}/mozilla/javaplugin_oji.so
	use mozilla && install_mozilla_plugin /opt/${P}/jre/plugin/${PLATFORM}/mozilla/javaplugin_oji.so
	find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
	find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
 Lines 104-110    Link Here 
	fi
	fi
}
}
pkg_postinst () {
pkg_postinst() {
	# Set as default system VM if none exists
	# Set as default system VM if none exists
	java_pkg_postinst
	java_pkg_postinst
 Lines 113-118    Link Here 
	# but may confuse things like AV scanners and automatic tripwire
	# but may confuse things like AV scanners and automatic tripwire
	if has_version "sys-apps/chpax"
	if has_version "sys-apps/chpax"
	then
	then
		echo
		einfo "setting up conservative PaX flags for jar and javac"
		einfo "setting up conservative PaX flags for jar and javac"
		for paxkills in "jar" "javac" "java"
		for paxkills in "jar" "javac" "java"
(-) dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1-r1.ebuild (-5 / +6 lines)
 Lines 4-10    Link Here 
IUSE="doc mozilla"
IUSE="doc mozilla"
inherit java nsplugins
inherit java
JREV=${PV#*_}
JREV=${PV#*_}
JV=${PV%_*}
JV=${PV%_*}
 Lines 44-50    Link Here 
	echo $offset
	echo $offset
}
}
src_unpack () {
src_unpack() {
	local offset=$(get_offset ${DISTDIR}/${A})
	local offset=$(get_offset ${DISTDIR}/${A})
	if [ -z "${offset}" ] ; then
	if [ -z "${offset}" ] ; then
 Lines 81-87    Link Here 
	rm -f "$UNPACK_CMD"
	rm -f "$UNPACK_CMD"
}
}
src_install () {
src_install() {
	typeset platform
	typeset platform
	dodir /opt/${P}
	dodir /opt/${P}
 Lines 102-108    Link Here 
			sparc*) platform="sparc" ;;
			sparc*) platform="sparc" ;;
			x86) platform="i386" ;;
			x86) platform="i386" ;;
		esac
		esac
		inst_plugin /opt/${P}/jre/plugin/${platform}/mozilla/libjavaplugin_oji.so
		install_mozilla_plugin /opt/${P}/jre/plugin/${platform}/mozilla/libjavaplugin_oji.so
	fi
	fi
	find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
	find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
 Lines 120-126    Link Here 
	unpack_jars
	unpack_jars
}
}
pkg_postinst () {
pkg_postinst() {
	# Set as default system VM if none exists
	# Set as default system VM if none exists
	java_pkg_postinst
	java_pkg_postinst
 Lines 129-134    Link Here 
	# but may confuse things like AV scanners and automatic tripwire
	# but may confuse things like AV scanners and automatic tripwire
	if has_version "sys-apps/chpax"
	if has_version "sys-apps/chpax"
	then
	then
		echo
		einfo "setting up conservative PaX flags for jar and javac"
		einfo "setting up conservative PaX flags for jar and javac"
		for paxkills in "jar" "javac" "java"
		for paxkills in "jar" "javac" "java"
(-) dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild (-5 / +8 lines)
 Lines 4-10    Link Here 
IUSE="doc"
IUSE="doc"
inherit java nsplugins
inherit java
JREV=${PV#*_}
JREV=${PV#*_}
JV=${PV%_*}
JV=${PV%_*}
 Lines 44-50    Link Here 
	echo $offset
	echo $offset
}
}
src_unpack () {
src_unpack() {
	local offset=$(get_offset ${DISTDIR}/${A})
	local offset=$(get_offset ${DISTDIR}/${A})
	if [ -z "${offset}" ] ; then
	if [ -z "${offset}" ] ; then
 Lines 81-87    Link Here 
	rm -f "$UNPACK_CMD"
	rm -f "$UNPACK_CMD"
}
}
src_install () {
src_install() {
	typeset platform
	typeset platform
	dodir /opt/${P}
	dodir /opt/${P}
 Lines 95-106    Link Here 
	dohtml README.html
	dohtml README.html
	# Install mozilla plugin
	# Install mozilla plugin
	if use mozilla; then
	case ${ARCH} in
	case ${ARCH} in
		amd64|x86) platform="i386" ;;
		amd64|x86) platform="i386" ;;
		ppc) platform="ppc" ;;
		ppc) platform="ppc" ;;
		sparc*) platform="sparc" ;;
		sparc*) platform="sparc" ;;
	esac
	esac
	inst_plugin /opt/${P}/jre/plugin/${platform}/mozilla/javaplugin_oji.so
		install_mozilla_plugin /opt/${P}/jre/plugin/${platform}/mozilla/libjavaplugin_oji.so
	fi
	find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
	find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
 Lines 118-124    Link Here 
	unpack_jars
	unpack_jars
}
}
pkg_postinst () {
pkg_postinst() {
	# Set as default system VM if none exists
	# Set as default system VM if none exists
	java_pkg_postinst
	java_pkg_postinst
 Lines 127-132    Link Here 
	# but may confuse things like AV scanners and automatic tripwire
	# but may confuse things like AV scanners and automatic tripwire
	if has_version "sys-apps/chpax"
	if has_version "sys-apps/chpax"
	then
	then
		echo
		einfo "setting up conservative PaX flags for jar and javac"
		einfo "setting up conservative PaX flags for jar and javac"
		for paxkills in "jar" "javac" "java"
		for paxkills in "jar" "javac" "java"
(-) dev-java/blackdown-jre/blackdown-jre-1.3.1-r9.ebuild (-22 / +7 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jre/blackdown-jre-1.3.1-r9.ebuild,v 1.17 2004/07/14 12:22:27 axxo Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jre/blackdown-jre-1.3.1-r9.ebuild,v 1.17 2004/07/14 12:22:27 axxo Exp $
inherit java nsplugins gcc
inherit java gcc
S=${WORKDIR}/j2re1.3.1
S=${WORKDIR}/j2re1.3.1
DESCRIPTION="Blackdown Java Runtime Environment 1.3.1"
DESCRIPTION="Blackdown Java Runtime Environment 1.3.1"
 Lines 12-18    Link Here 
LICENSE="sun-bcla-java-vm"
LICENSE="sun-bcla-java-vm"
SLOT="0"
SLOT="0"
KEYWORDS="ppc"
KEYWORDS="ppc"
IUSE=""
IUSE="mozilla"
DEPEND="virtual/libc
DEPEND="virtual/libc
	>=dev-java/java-config-0.2.5
	>=dev-java/java-config-0.2.5
 Lines 21-27    Link Here 
PROVIDE="virtual/jre-1.3.1
PROVIDE="virtual/jre-1.3.1
	virtual/java-scheme-2"
	virtual/java-scheme-2"
src_unpack () {
src_unpack() {
	for a in ${A}; do
	for a in ${A}; do
		if [[ ${a} == *.bin ]]; then
		if [[ ${a} == *.bin ]]; then
			echo ">>> Unpacking ${a}..."
			echo ">>> Unpacking ${a}..."
 Lines 40-46    Link Here 
	fi
	fi
}
}
src_install () {
src_install() {
	typeset platform
	typeset platform
	dodir /opt/${P}
	dodir /opt/${P}
 Lines 52-82    Link Here 
	dohtml README.html
	dohtml README.html
	# Install mozilla plugin
	# Install mozilla plugin
	if use mozilla; then
	case ${ARCH} in
	case ${ARCH} in
		amd64|x86) platform="i386" ;;
		amd64|x86) platform="i386" ;;
		ppc) platform="ppc" ;;
		ppc) platform="ppc" ;;
		sparc*) platform="sparc" ;;
		sparc*) platform="sparc" ;;
	esac
	esac
	inst_plugin /opt/${P}/plugin/${platform}/mozilla/javaplugin_oji.so
		install_mozilla_plugin /opt/${P}/plugin/${platform}/mozilla/javaplugin_oji.so
	fi
	sed -i "s/standard symbols l/symbol/g" ${D}/opt/${P}/lib/font.properties
	sed -i "s/standard symbols l/symbol/g" ${D}/opt/${P}/lib/font.properties
	set_java_env ${FILESDIR}/${VMHANDLE}
	set_java_env ${FILESDIR}/${VMHANDLE}
}
}
pkg_postinst () {
	# Only install the JRE as the system default if there's no JDK 
	# installed. Installing a JRE over an existing JDK will result
	# in major breakage, see #9289.
	if [ ! -f "${JAVAC}" ] ; then
		ewarn "Found no JDK, setting ${P} as default system VM"
		java_pkg_postinst
	fi
}
pkg_prerm() {
	if java-config -J | grep -q ${P} ; then
		ewarn "It appears you are removing your default system VM!"
		ewarn "Please run java-config -L then java-config -S to set a new system VM!"
	fi
}
(-) dev-java/blackdown-jre/blackdown-jre-1.4.1.ebuild (-19 / +4 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jre/blackdown-jre-1.4.1.ebuild,v 1.15 2004/07/30 23:36:52 dragonheart Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jre/blackdown-jre-1.4.1.ebuild,v 1.15 2004/07/30 23:36:52 dragonheart Exp $
inherit java nsplugins gcc
inherit java gcc
S=${WORKDIR}/j2re1.4.1
S=${WORKDIR}/j2re1.4.1
DESCRIPTION="Blackdown Java Runtime Environment 1.4.1"
DESCRIPTION="Blackdown Java Runtime Environment 1.4.1"
 Lines 69-80    Link Here 
	dohtml README.html
	dohtml README.html
	# Install mozilla plugin
	# Install mozilla plugin
	if use mozilla; then
	case ${ARCH} in
	case ${ARCH} in
		amd64|x86) platform="i386" ;;
		amd64|x86) platform="i386" ;;
		ppc) platform="ppc" ;;
		ppc) platform="ppc" ;;
		sparc*) platform="sparc" ;;
		sparc*) platform="sparc" ;;
	esac
	esac
	inst_plugin /opt/${P}/plugin/${platform}/mozilla/javaplugin_oji.so
		install_mozilla_plugin /opt/${P}/plugin/${platform}/mozilla/javaplugin_oji.so
	fi
	sed -i "s/standard symbols l/symbol/g" ${D}/opt/${P}/lib/font.properties
	sed -i "s/standard symbols l/symbol/g" ${D}/opt/${P}/lib/font.properties
 Lines 87-106    Link Here 
			${D}/etc/env.d/java/20blackdown-jre-1.4.1
			${D}/etc/env.d/java/20blackdown-jre-1.4.1
	fi
	fi
}
}
pkg_postinst () {
	# Only install the JRE as the system default if there's no JDK 
	# installed. Installing a JRE over an existing JDK will result
	# in major breakage, see #9289.
	if [ ! -f "${JAVAC}" ] ; then
		ewarn "Found no JDK, setting ${P} as default system VM"
		java_pkg_postinst
	fi
}
pkg_postrm() {
	if java-config -J | grep -q ${P} ; then
		ewarn "It appears you are removing your default system VM!"
		ewarn "Please run java-config -L then java-config-S to set a new system VM!"
	fi
}
(-) dev-java/blackdown-jre/blackdown-jre-1.4.2_rc1-r1.ebuild (-22 / +5 lines)
 Lines 2-10    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jre/blackdown-jre-1.4.2_rc1-r1.ebuild,v 1.4 2004/07/14 01:45:28 agriffis Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jre/blackdown-jre-1.4.2_rc1-r1.ebuild,v 1.4 2004/07/14 01:45:28 agriffis Exp $
IUSE=""
inherit java
inherit java nsplugins
JREV="rc1"
JREV="rc1"
 Lines 24-30    Link Here 
SLOT="1.4.2"
SLOT="1.4.2"
LICENSE="sun-bcla-java-vm"
LICENSE="sun-bcla-java-vm"
KEYWORDS="-* amd64"
KEYWORDS="-* amd64"
IUSE=""
DEPEND="virtual/libc
DEPEND="virtual/libc
	>=dev-java/java-config-0.2.6
	>=dev-java/java-config-0.2.6
	>=sys-apps/sed-4
	>=sys-apps/sed-4
 Lines 99-110    Link Here 
	dohtml README.html
	dohtml README.html
	# Install mozilla plugin
	# Install mozilla plugin
	if use mozilla; then
	case ${ARCH} in
	case ${ARCH} in
		amd64|x86) platform="i386" ;;
		amd64|x86) platform="i386" ;;
		ppc) platform="ppc" ;;
		ppc) platform="ppc" ;;
		sparc*) platform="sparc" ;;
		sparc*) platform="sparc" ;;
	esac
	esac
	inst_plugin /opt/${P}/jre/plugin/${platform}/mozilla/libjavaplugin_oji.so
		install_mozilla_plugins /opt/${P}/jre/plugin/${platform}/mozilla/libjavaplugin_oji.so
	fi
	sed -i "s/standard symbols l/symbol/g" ${D}/opt/${P}/jre/lib/font.properties
	sed -i "s/standard symbols l/symbol/g" ${D}/opt/${P}/jre/lib/font.properties
 Lines 121-140    Link Here 
	unpack_jars
	unpack_jars
}
}
pkg_postinst () {
	# Only install the JRE as the system default if there's no JDK 
	# installed. Installing a JRE over an existing JDK will result
	# in major breakage, see #9289.
	if [ ! -f "${JAVAC}" ] ; then
		ewarn "Found no JDK, setting ${P} as default system VM"
		java_pkg_postinst
	fi
}
pkg_prerm() {
	if java-config -J | grep -q ${P} ; then
		ewarn "It appears you are removing your default system VM!"
		ewarn "Please run java-config -L then java-config-S to set a new system VM!"
	fi
}
(-) dev-java/compaq-jdk/compaq-jdk-1.3.1-r1.ebuild (-5 lines)
 Lines 44-51    Link Here 
	set_java_env ${FILESDIR}/${VMHANDLE} || die
	set_java_env ${FILESDIR}/${VMHANDLE} || die
}
}
pkg_postinst () {
	# Set as default VM if none exists
	java_pkg_postinst
}
(-) dev-java/compaq-jdk/compaq-jdk-1.3.1-r2.ebuild (-5 lines)
 Lines 45-52    Link Here 
	set_java_env ${FILESDIR}/${VMHANDLE} || die
	set_java_env ${FILESDIR}/${VMHANDLE} || die
}
}
pkg_postinst () {
	# Set as default VM if none exists
	java_pkg_postinst
}
(-) dev-java/compaq-jdk/compaq-jdk-1.3.1-r3.ebuild (-5 lines)
 Lines 45-52    Link Here 
	set_java_env ${FILESDIR}/${VMHANDLE} || die
	set_java_env ${FILESDIR}/${VMHANDLE} || die
}
}
pkg_postinst () {
	# Set as default VM if none exists
	java_pkg_postinst
}
(-) dev-java/compaq-jre/compaq-jre-1.3.1-r3.ebuild (-13 lines)
 Lines 41-56    Link Here 
	set_java_env ${FILESDIR}/${VMHANDLE} || die
	set_java_env ${FILESDIR}/${VMHANDLE} || die
}
}
pkg_postinst () {
	if [ ! -e "${JAVAC}" ] ; then
		java_pkg_postinst
	fi
}
pkg_postrm() {
	if [ ! -z "$(java-config -J) | grep ${P}" ] ; then
		ewarn "It appears you are removing your default system VM!"
		ewarn "Please run java-config -L then java-config-S to set a new system VM!"
	fi
}
(-) dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.1-r2.ebuild (-16 / +11 lines)
 Lines 4-10    Link Here 
IUSE="X doc javacomm"
IUSE="X doc javacomm"
inherit java nsplugins eutils
inherit java eutils
if use ppc; then
if use ppc; then
	S="${WORKDIR}/IBMJava2-ppc-141"
	S="${WORKDIR}/IBMJava2-ppc-141"
 Lines 50-60    Link Here 
	if use ppc; then
	if use ppc; then
		dosed s:/proc/cpuinfo:/etc//cpuinfo:g /opt/${P}/jre/bin/libjitc.so
		dosed s:/proc/cpuinfo:/etc//cpuinfo:g /opt/${P}/jre/bin/libjitc.so
		dosed s:/proc/cpuinfo:/etc//cpuinfo:g /opt/${P}/jre/bin/libjitc_g.so
		dosed s:/proc/cpuinfo:/etc//cpuinfo:g /opt/${P}/jre/bin/libjitc_g.so
		insinto ${D}/etc
		insinto /etc
		doins ${FILESDIR}/cpuinfo
		doins ${FILESDIR}/cpuinfo
	else
	fi
		# No java-plugin on ppc
		inst_plugin /opt/${P}/jre/bin/libjavaplugin_oji.so
	if use mozilla && ! use ppc; then
		local plugin="libjavaplugin_oji.so"
		if has_version '>=gcc-3*' ; then
			plugin="libjavaplugin_ojigcc3.so"
		fi
		install_mozilla_plugin /opt/${P}/jre/bin/${plugin}
	fi
	fi
	dohtml -a html,htm,HTML -r docs
	dohtml -a html,htm,HTML -r docs
 Lines 67-89    Link Here 
pkg_postinst() {
pkg_postinst() {
	java_pkg_postinst
	java_pkg_postinst
	if ! use X; then
	if ! use X; then
		einfo "********************************************************"
		echo
		eerror "You're not using X so its possible that you dont have"
		eerror "You're not using X so its possible that you dont have"
		eerror "a X server installed, please read the following warning: "
		eerror "a X server installed, please read the following warning: "
		eerror "Some parts of IBM JDK require XFree86 to be installed."
		eerror "Some parts of IBM JDK require XFree86 to be installed."
		eerror "Be careful which Java libraries you attempt to use."
		eerror "Be careful which Java libraries you attempt to use."
		einfo "********************************************************"
		echo
	fi
	fi
	einfo " After installing ${P} this"
	einfo " was set as the default JVM to run."
	einfo " When finished please run the following so your"
	einfo " enviroment gets updated."
	eerror "    /usr/sbin/env-update && source /etc/profile"
	einfo " Or use java-config program to set your preferred VM"
	einfo "******************************************************"
	ebeep 5
	ebeep 5
	epause 8
	epause 8
}
}
(-) dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.2.ebuild (-15 / +10 lines)
 Lines 4-10    Link Here 
IUSE="X doc javacomm"
IUSE="X doc javacomm"
inherit java nsplugins eutils
inherit java eutils
if use ppc; then
if use ppc; then
	S="${WORKDIR}/IBMJava2-ppc-142"
	S="${WORKDIR}/IBMJava2-ppc-142"
 Lines 52-60    Link Here 
		dosed s:/proc/cpuinfo:/etc//cpuinfo:g /opt/${P}/jre/bin/libjitc_g.so
		dosed s:/proc/cpuinfo:/etc//cpuinfo:g /opt/${P}/jre/bin/libjitc_g.so
		insinto /etc
		insinto /etc
		doins ${FILESDIR}/cpuinfo
		doins ${FILESDIR}/cpuinfo
	else
	fi
		# No java-plugin on ppc
		inst_plugin /opt/${P}/jre/bin/libjavaplugin_oji.so
	if use mozilla && ! use ppc; then
		local plugin="libjavaplugin_oji.so"
		if has_version '>=gcc-3*' ; then
			plugin="libjavaplugin_ojigcc3.so"
		fi
		install_mozilla_plugin /opt/${P}/jre/bin/${plugin}
	fi
	fi
	dohtml -a html,htm,HTML -r docs
	dohtml -a html,htm,HTML -r docs
 Lines 67-89    Link Here 
pkg_postinst() {
pkg_postinst() {
	java_pkg_postinst
	java_pkg_postinst
	if ! use X; then
	if ! use X; then
		einfo "********************************************************"
		echo
		eerror "You're not using X so its possible that you dont have"
		eerror "You're not using X so its possible that you dont have"
		eerror "a X server installed, please read the following warning: "
		eerror "a X server installed, please read the following warning: "
		eerror "Some parts of IBM JDK require XFree86 to be installed."
		eerror "Some parts of IBM JDK require XFree86 to be installed."
		eerror "Be careful which Java libraries you attempt to use."
		eerror "Be careful which Java libraries you attempt to use."
		einfo "********************************************************"
		echo
	fi
	fi
	einfo " After installing ${P} this"
	einfo " was set as the default JVM to run."
	einfo " When finished please run the following so your"
	einfo " enviroment gets updated."
	eerror "    /usr/sbin/env-update && source /etc/profile"
	einfo " Or use java-config program to set your preferred VM"
	einfo "******************************************************"
	ebeep 5
	ebeep 5
	epause 8
	epause 8
}
}
(-) dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1-r1.ebuild (-11 / +8 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1-r1.ebuild,v 1.10 2004/08/04 12:52:54 axxo Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.1-r1.ebuild,v 1.10 2004/08/04 12:52:54 axxo Exp $
inherit java nsplugins
inherit java
S="${WORKDIR}/j2sdk${PV}"
S="${WORKDIR}/j2sdk${PV}"
DESCRIPTION="IBM Java Development Kit ${PV}"
DESCRIPTION="IBM Java Development Kit ${PV}"
 Lines 48-63    Link Here 
		< ${FILESDIR}/${P} \
		< ${FILESDIR}/${P} \
		> ${D}/etc/env.d/java/20${P} \
		> ${D}/etc/env.d/java/20${P} \
		|| die "unable to install environment file"
		|| die "unable to install environment file"
}
pkg_postinst(){
	inst_plugin /opt/${P}/bin/javaplugin.so
	true
}
pkg_prerm() {
	if use mozilla; then
	if [ ! -z "$(java-config -J | grep ${P})" ] ; then
		local plugin="libjavaplugin_oji.so"
		ewarn "It appears you are removing your default system VM!"
		if has_version '>=gcc-3*' ; then
		ewarn "Please run java-config -L then java-config-S to set a new system VM!"
			plugin="libjavaplugin_ojigcc3.so"
	fi
	fi
		install_mozilla_plugin /opt/${P}/bin/${plugin}
	fi
}
}
(-) dev-java/ibm-jre-bin/ibm-jre-bin-1.4.2.ebuild (-11 / +8 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.2.ebuild,v 1.2 2004/08/04 15:25:57 sejo Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.2.ebuild,v 1.2 2004/08/04 15:25:57 sejo Exp $
inherit java nsplugins
inherit java
S="${WORKDIR}/j2sdk${PV}"
S="${WORKDIR}/j2sdk${PV}"
DESCRIPTION="IBM Java Development Kit ${PV}"
DESCRIPTION="IBM Java Development Kit ${PV}"
 Lines 48-63    Link Here 
		< ${FILESDIR}/${P} \
		< ${FILESDIR}/${P} \
		> ${D}/etc/env.d/java/20${P} \
		> ${D}/etc/env.d/java/20${P} \
		|| die "unable to install environment file"
		|| die "unable to install environment file"
}
pkg_postinst(){
	inst_plugin /opt/${P}/bin/javaplugin.so
	true
}
pkg_prerm() {
	if use mozilla; then
	if [ ! -z "$(java-config -J | grep ${P})" ] ; then
		local plugin="libjavaplugin_oji.so"
		ewarn "It appears you are removing your default system VM!"
		if has_version '>=gcc-3*' ; then
		ewarn "Please run java-config -L then java-config-S to set a new system VM!"
			plugin="libjavaplugin_ojigcc3.so"
	fi
	fi
		install_mozilla_plugin /opt/${P}/jre/bin/${plugin}
	fi
}
}
(-) dev-java/sun-j2sdk/sun-j2sdk-1.4.1-r1.ebuild (-3 / +4 lines)
 Lines 8-16    Link Here 
# Based on http://www.linuxfromscratch.org/~tushar/hints/javafromscratch.txt (LFS)
# Based on http://www.linuxfromscratch.org/~tushar/hints/javafromscratch.txt (LFS)
# By Tushar Teredesai <Tush@Yahoo.Com>
# By Tushar Teredesai <Tush@Yahoo.Com>
IUSE="nptl doc"
inherit java nsplugins
inherit java
JAVA_PATCHES="disable-sanity-check
JAVA_PATCHES="disable-sanity-check
	fix-intl-files
	fix-intl-files
 Lines 51-56    Link Here 
	virtual/jdk-1.4.1
	virtual/jdk-1.4.1
	virtual/java-scheme-2"
	virtual/java-scheme-2"
IUSE="nptl doc"
pkg_nofetch() {
pkg_nofetch() {
	einfo "Please download"
	einfo "Please download"
	einfo "  - ${SRC_MOZHEADERS}"
	einfo "  - ${SRC_MOZHEADERS}"
 Lines 152-158    Link Here 
	chown -R root:root ${D}/opt/${P}
	chown -R root:root ${D}/opt/${P}
	inst_plugin /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so
	install_mozilla_plugin /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so
	set_java_env ${FILESDIR}/${VMHANDLE}
	set_java_env ${FILESDIR}/${VMHANDLE}
}
}
(-) dev-java/sun-j2sdk/sun-j2sdk-1.4.2.ebuild (-4 / +3 lines)
 Lines 2-10    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2sdk/sun-j2sdk-1.4.2.ebuild,v 1.12 2004/09/21 14:08:30 axxo Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2sdk/sun-j2sdk-1.4.2.ebuild,v 1.12 2004/09/21 14:08:30 axxo Exp $
IUSE="nptl doc"
inherit java
inherit java nsplugins
JAVA_PATCHES="
JAVA_PATCHES="
	remove-fixed-paths
	remove-fixed-paths
 Lines 27-32    Link Here 
SLOT="0"
SLOT="0"
KEYWORDS="x86 -ppc -alpha -sparc"
KEYWORDS="x86 -ppc -alpha -sparc"
LICENSE="sun-csl"
LICENSE="sun-csl"
IUSE="nptl doc"
RDEPEND="virtual/libc
RDEPEND="virtual/libc
	virtual/x11
	virtual/x11
 Lines 149-155    Link Here 
	chown -R root:root ${D}/opt/${P}
	chown -R root:root ${D}/opt/${P}
	inst_plugin /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so
	install_mozilla_plugin /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so
	set_java_env ${FILESDIR}/${VMHANDLE}
	set_java_env ${FILESDIR}/${VMHANDLE}
}
}
(-) dev-java/sun-jdk/sun-jdk-1.2.2.017.ebuild (-4 / +4 lines)
 Lines 50-56    Link Here 
	echo
	echo
}
}
src_install () {
src_install() {
	# Make the root directory for the installation.
	# Make the root directory for the installation.
	dodir /opt/${P}
	dodir /opt/${P}
 Lines 80-100    Link Here 
	set_java_env ${FILESDIR}/${VMHANDLE} || die
	set_java_env ${FILESDIR}/${VMHANDLE} || die
}
}
pkg_postinst () {
pkg_postinst() {
	# Set as default VM if none exists
	# Set as default VM if none exists
	java_pkg_postinst
	java_pkg_postinst
	# Again, this will not work as a Mozilla plugin.
	# Again, this will not work as a Mozilla plugin.
	if use mozilla ; then
	if use mozilla ; then
		echo
		einfo "JDK 1.2.2 does not work with Mozilla.  A more recent JDK is"
		einfo "JDK 1.2.2 does not work with Mozilla.  A more recent JDK is"
		einfo "required."
		einfo "required."
		echo
	fi
	fi
	# Warn the user if they don't appear to have XFree86 installed.
	# Warn the user if they don't appear to have XFree86 installed.
	if ! use X ; then
	if ! use X ; then
		echo
		ewarn "Some parts of Sun's JDK require XFree86 to be installed."
		ewarn "Some parts of Sun's JDK require XFree86 to be installed."
		ewarn "Be careful which Java libraries you attempt to use."
		ewarn "Be careful which Java libraries you attempt to use."
		echo
	fi
	fi
}
}
(-) dev-java/sun-jdk/sun-jdk-1.4.2.05.ebuild (-28 / +11 lines)
 Lines 2-10    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.2.05.ebuild,v 1.3 2004/09/06 18:44:20 ciaranm Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.2.05.ebuild,v 1.3 2004/09/06 18:44:20 ciaranm Exp $
IUSE="doc gnome kde mozilla jce"
inherit java nsplugins eutils
inherit java eutils
MY_PV=${PV%.*}_${PV##*.}
MY_PV=${PV%.*}_${PV##*.}
MY_P=j2sdk${MY_PV}
MY_P=j2sdk${MY_PV}
 Lines 22-27    Link Here 
LICENSE="sun-bcla-java-vm"
LICENSE="sun-bcla-java-vm"
KEYWORDS="x86 -ppc -sparc -alpha -mips -hppa"
KEYWORDS="x86 -ppc -sparc -alpha -mips -hppa"
RESTRICT="fetch"
RESTRICT="fetch"
IUSE="doc gnome kde mozilla jce"
DEPEND=">=dev-java/java-config-1.1.5
DEPEND=">=dev-java/java-config-1.1.5
	sys-apps/sed
	sys-apps/sed
 Lines 59-71    Link Here 
src_unpack() {
src_unpack() {
	if [ ! -r ${DISTDIR}/${At} ]; then
	if [ ! -r ${DISTDIR}/${At} ]; then
		eerror "cannot read ${MY_PV}.bin. Please check the permission and try again."
		die "cannot read ${MY_PV}.bin. Please check the permission and try again."
		die
	fi
	fi
	if use jce; then
	if use jce; then
		if [ ! -r ${DISTDIR}/${jce_policy} ]; then
		if [ ! -r ${DISTDIR}/${jce_policy} ]; then
			eerror "cannot read ${jce_policy}. Please check the permission and try again."
			die "cannot read ${jce_policy}. Please check the permission and try again."
			die
		fi
		fi
	fi
	fi
	#Search for the ELF Header
	#Search for the ELF Header
 Lines 90-96    Link Here 
	fi
	fi
}
}
src_install () {
src_install() {
	local dirs="bin include jre lib man"
	local dirs="bin include jre lib man"
	dodir /opt/${P}
	dodir /opt/${P}
 Lines 117-130    Link Here 
		dosym /opt/${P}/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/
		dosym /opt/${P}/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/
	fi
	fi
	if use mozilla; then
	local plugin_dir="ns610"
	local plugin_dir="ns610"
	if has_version '>=gcc-3.2*' ; then
	if has_version '>=gcc-3.2*' ; then
		plugin_dir="ns610-gcc32"
		plugin_dir="ns610-gcc32"
	fi
	fi
	if use mozilla ; then
		install_mozilla_plugin /opt/${P}/jre/plugin/i386/${plugin_dir}/libjavaplugin_oji.so
		install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
	fi
	fi
	inst_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
	# create dir for system preferences
	# create dir for system preferences
	dodir /opt/${P}/.systemPrefs
	dodir /opt/${P}/.systemPrefs
 Lines 154-160    Link Here 
	#      is a directory and will not be gzipped ;)
	#      is a directory and will not be gzipped ;)
}
}
pkg_postinst () {
pkg_postinst() {
	# Create files used as storage for system preferences.
	# Create files used as storage for system preferences.
	touch /opt/${P}/.systemPrefs/.system.lock
	touch /opt/${P}/.systemPrefs/.system.lock
	chmod 644 /opt/${P}/.systemPrefs/.system.lock
	chmod 644 /opt/${P}/.systemPrefs/.system.lock
 Lines 166-178    Link Here 
	#Show info about netscape
	#Show info about netscape
	if has_version '>=netscape-navigator-4.79-r1' || has_version '>=netscape-communicator-4.79-r1' ; then
	if has_version '>=netscape-navigator-4.79-r1' || has_version '>=netscape-communicator-4.79-r1' ; then
		einfo "********************************************************"
		echo
		einfo "If you want to install the plugin for Netscape 4.x, type"
		einfo "If you want to install the plugin for Netscape 4.x, type"
		einfo
		einfo
		einfo "   cd /usr/lib/nsbrowser/plugins/"
		einfo "   cd /usr/lib/nsbrowser/plugins/"
		einfo "   ln -sf /opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so"
		einfo "   ln -sf /opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so"
		einfo "********************************************************"
		echo
	fi
	fi
	# if chpax is on the target system, set the appropriate PaX flags
	# if chpax is on the target system, set the appropriate PaX flags
 Lines 180-185    Link Here 
	# but may confuse things like AV scanners and automatic tripwire
	# but may confuse things like AV scanners and automatic tripwire
	if has_version "sys-apps/chpax"
	if has_version "sys-apps/chpax"
	then
	then
		echo
		einfo "setting up conservative PaX flags for jar, javac and java"
		einfo "setting up conservative PaX flags for jar, javac and java"
		for paxkills in "jar" "javac" "java"
		for paxkills in "jar" "javac" "java"
 Lines 197-218    Link Here 
		ewarn "can be given by #gentoo-hardened + pappy@gentoo.org"
		ewarn "can be given by #gentoo-hardened + pappy@gentoo.org"
	fi
	fi
	#Thanks to Douglas Pollock <douglas.pollock@magma.ca> for this
	echo
	#comment found on the sun-jdk 1.2.2 ebuild that he sent.
	einfo "*********************************************************"
	eerror "Some parts of Sun's JDK require XFree86 to be installed."
	eerror "Some parts of Sun's JDK require XFree86 to be installed."
	eerror "Be careful which Java libraries you attempt to use."
	eerror "Be careful which Java libraries you attempt to use."
	einfo "*********************************************************"
	echo
	einfo "******************************************************"
	einfo " After installing ${P} this"
	einfo " was set as the default JVM to run."
	einfo " When finished please run the following so your"
	einfo " enviroment gets updated."
	eerror "    /usr/sbin/env-update && source /etc/profile"
	einfo " Or use java-config program to set your preferred VM"
	einfo "******************************************************"
	ebeep 5
	ebeep 5
	epause 8
	epause 8
(-) dev-java/sun-jdk/sun-jdk-1.5.0_rc1.ebuild (-30 / +10 lines)
 Lines 2-9    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.5.0_rc1.ebuild,v 1.3 2004/09/06 18:44:20 ciaranm Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.5.0_rc1.ebuild,v 1.3 2004/09/06 18:44:20 ciaranm Exp $
IUSE="doc gnome kde mozilla jce"
inherit java eutils
inherit java eutils
amd64file="jdk-1_5_0-rc-linux-amd64.bin"
amd64file="jdk-1_5_0-rc-linux-amd64.bin"
 Lines 26-31    Link Here 
LICENSE="sun-bcla-java-vm"
LICENSE="sun-bcla-java-vm"
KEYWORDS="~x86 ~amd64"
KEYWORDS="~x86 ~amd64"
RESTRICT="fetch"
RESTRICT="fetch"
IUSE="doc gnome kde mozilla jce"
#
#
DEPEND=">=dev-java/java-config-1.2
DEPEND=">=dev-java/java-config-1.2
 Lines 66-78    Link Here 
src_unpack() {
src_unpack() {
	if [ ! -r ${DISTDIR}/${At} ]; then
	if [ ! -r ${DISTDIR}/${At} ]; then
		eerror "cannot read ${At}. Please check the permission and try again."
		die "cannot read ${At}. Please check the permission and try again."
		die
	fi
	fi
	if use jce; then
	if use jce; then
		if [ ! -r ${DISTDIR}/${jcefile} ]; then
		if [ ! -r ${DISTDIR}/${jcefile} ]; then
			eerror "cannot read ${jcefile}. Please check the permission and try again."
			die "cannot read ${jcefile}. Please check the permission and try again."
			die
		fi
		fi
	fi
	fi
 Lines 102-108    Link Here 
	${S}/bin/java -client -Xshare:dump
	${S}/bin/java -client -Xshare:dump
}
}
src_install () {
src_install() {
	local dirs="bin include jre lib man"
	local dirs="bin include jre lib man"
	dodir /opt/${P}
	dodir /opt/${P}
 Lines 128-140    Link Here 
		dosym /opt/${P}/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/
		dosym /opt/${P}/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/
	fi
	fi
	if use mozilla; then
	local plugin_dir="ns7-gcc29"
	local plugin_dir="ns7-gcc29"
	if has_version '>=gcc-3*' ; then
	if has_version '>=gcc-3*' ; then
		plugin_dir="ns7"
		plugin_dir="ns7"
	fi
	fi
	if use mozilla ; then
		if use x86 ; then
		if use x86 ; then
			install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
			install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
		else
		else
 Lines 175-181    Link Here 
	#      is a directory and will not be gzipped ;)
	#      is a directory and will not be gzipped ;)
}
}
pkg_postinst () {
pkg_postinst() {
	# Create files used as storage for system preferences.
	# Create files used as storage for system preferences.
	PREFS_LOCATION=/opt/${P}/jre
	PREFS_LOCATION=/opt/${P}/jre
	mkdir -p ${PREFS_LOCATION}/.systemPrefs
	mkdir -p ${PREFS_LOCATION}/.systemPrefs
 Lines 193-205    Link Here 
	#Show info about netscape
	#Show info about netscape
	if has_version '>=netscape-navigator-4.79-r1' || has_version '>=netscape-communicator-4.79-r1' ; then
	if has_version '>=netscape-navigator-4.79-r1' || has_version '>=netscape-communicator-4.79-r1' ; then
		einfo "********************************************************"
		echo
		einfo "If you want to install the plugin for Netscape 4.x, type"
		einfo "If you want to install the plugin for Netscape 4.x, type"
		einfo
		einfo
		einfo "   cd /usr/lib/nsbrowser/plugins/"
		einfo "   cd /usr/lib/nsbrowser/plugins/"
		einfo "   ln -sf /opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so"
		einfo "   ln -sf /opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so"
		einfo "********************************************************"
		echo
	fi
	fi
	# if chpax is on the target system, set the appropriate PaX flags
	# if chpax is on the target system, set the appropriate PaX flags
 Lines 207-212    Link Here 
	# but may confuse things like AV scanners and automatic tripwire
	# but may confuse things like AV scanners and automatic tripwire
	if has_version "sys-apps/chpax"
	if has_version "sys-apps/chpax"
	then
	then
		echo
		einfo "setting up conservative PaX flags for jar, javac and java"
		einfo "setting up conservative PaX flags for jar, javac and java"
		for paxkills in "jar" "javac" "java"
		for paxkills in "jar" "javac" "java"
 Lines 224-253    Link Here 
		ewarn "can be given by #gentoo-hardened + pappy@gentoo.org"
		ewarn "can be given by #gentoo-hardened + pappy@gentoo.org"
	fi
	fi
	#Thanks to Douglas Pollock <douglas.pollock@magma.ca> for this
	echo
	#comment found on the sun-jdk 1.2.2 ebuild that he sent.
	einfo "*********************************************************"
	eerror "Some parts of Sun's JDK require XFree86 to be installed."
	eerror "Some parts of Sun's JDK require XFree86 to be installed."
	eerror "Be careful which Java libraries you attempt to use."
	eerror "Be careful which Java libraries you attempt to use."
	einfo "*********************************************************"
	echo
	einfo "*********************************************************"
	echo
	einfo " After installing ${P} this"
	einfo " was set as the default JVM to run."
	einfo " When finished please run the following so your"
	einfo " enviroment gets updated."
	eerror "    /usr/sbin/env-update && source /etc/profile"
	einfo " Or use java-config program to set your preferred VM"
	einfo "*********************************************************"
	# warn about a default setting in Java 1.5.0 rc
	einfo "*********************************************************"
	einfo " Be careful: ${P}'s Java compiler uses"
	einfo " Be careful: ${P}'s Java compiler uses"
	einfo " '-source 1.5' as default. Some keywords such as 'enum'"
	einfo " '-source 1.5' as default. Some keywords such as 'enum'"
	einfo " are not valid identifiers any more in that mode,"
	einfo " are not valid identifiers any more in that mode,"
	einfo " which can cause incompatibility with certain sources."
	einfo " which can cause incompatibility with certain sources."
	einfo "*********************************************************"
	ebeep 5
	ebeep 5
	epause 8
	epause 8
(-) dev-java/sun-jre-bin/sun-jre-bin-1.4.2.05-r1.ebuild (-34 / +8 lines)
 Lines 2-10    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.4.2.05-r1.ebuild,v 1.1 2004/09/10 21:43:17 axxo Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.4.2.05-r1.ebuild,v 1.1 2004/09/10 21:43:17 axxo Exp $
IUSE="gnome kde mozilla"
inherit java nsplugins eutils
inherit java eutils
At="j2re-1_4_2_05-linux-i586.bin"
At="j2re-1_4_2_05-linux-i586.bin"
S="${WORKDIR}/j2re1.4.2_05"
S="${WORKDIR}/j2re1.4.2_05"
 Lines 15-20    Link Here 
LICENSE="sun-bcla-java-vm"
LICENSE="sun-bcla-java-vm"
KEYWORDS="~x86 -ppc -sparc -alpha -mips -hppa"
KEYWORDS="~x86 -ppc -sparc -alpha -mips -hppa"
RESTRICT="fetch"
RESTRICT="fetch"
IUSE="gnome kde mozilla"
DEPEND=">=dev-java/java-config-1.1.5
DEPEND=">=dev-java/java-config-1.1.5
	sys-apps/sed"
	sys-apps/sed"
 Lines 77-90    Link Here 
	dodoc CHANGES COPYRIGHT README LICENSE THIRDPARTYLICENSEREADME.txt
	dodoc CHANGES COPYRIGHT README LICENSE THIRDPARTYLICENSEREADME.txt
	dohtml Welcome.html ControlPanel.html
	dohtml Welcome.html ControlPanel.html
	if use mozilla ; then
	local plugin_dir="ns610"
	local plugin_dir="ns610"
	if has_version '>=gcc-3.2*' ; then
	if has_version '>=gcc-3.2*' ; then
		plugin_dir="ns610-gcc32"
		plugin_dir="ns610-gcc32"
	fi
	fi
	if use mozilla ; then
		install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so
		install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so
	fi
	fi
	inst_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so
	# create dir for system preferences
	# create dir for system preferences
	dodir /opt/${P}/.systemPrefs
	dodir /opt/${P}/.systemPrefs
 Lines 121-135    Link Here 
	touch /opt/${P}/.systemPrefs/.systemRootModFile
	touch /opt/${P}/.systemPrefs/.systemRootModFile
	chmod 644 /opt/${P}/.systemPrefs/.systemRootModFile
	chmod 644 /opt/${P}/.systemPrefs/.systemRootModFile
	java_pkg_postinst
	#Show info about netscape
	#Show info about netscape
	if has_version '>=netscape-navigator-4.79-r1' || has_version '>=netscape-communicator-4.79-r1' ; then
	if has_version '>=netscape-navigator-4.79-r1' || has_version '>=netscape-communicator-4.79-r1' ; then
		einfo "********************************************************"
		echo
		einfo "If you want to install the plugin for Netscape 4.x, type"
		einfo "If you want to install the plugin for Netscape 4.x, type"
		einfo
		einfo
		einfo "   cd /usr/lib/nsbrowser/plugins/"
		einfo "   cd /usr/lib/nsbrowser/plugins/"
		einfo "   ln -sf /opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so"
		einfo "   ln -sf /opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so"
		einfo "********************************************************"
		echo
	fi
	fi
	# if chpax is on the target system, set the appropriate PaX flags
	# if chpax is on the target system, set the appropriate PaX flags
 Lines 137-142    Link Here 
	# but may confuse things like AV scanners and automatic tripwire
	# but may confuse things like AV scanners and automatic tripwire
	if has_version "sys-apps/chpax"
	if has_version "sys-apps/chpax"
	then
	then
		echo
		einfo "setting up conservative PaX flags for jar, javac and java"
		einfo "setting up conservative PaX flags for jar, javac and java"
		for paxkills in "java"
		for paxkills in "java"
 Lines 154-189    Link Here 
		ewarn "can be given by #gentoo-hardened + pappy@gentoo.org"
		ewarn "can be given by #gentoo-hardened + pappy@gentoo.org"
	fi
	fi
	#Thanks to Douglas Pollock <douglas.pollock@magma.ca> for this
	echo
	#comment found on the sun-jre 1.2.2 ebuild that he sent.
	einfo "*********************************************************"
	eerror "Some parts of Sun's JDK require XFree86 to be installed."
	eerror "Some parts of Sun's JDK require XFree86 to be installed."
	eerror "Be careful which Java libraries you attempt to use."
	eerror "Be careful which Java libraries you attempt to use."
	einfo "*********************************************************"
	echo
	# Set as default VM if none exists
	if [ ! -f "${JAVAC}" ] ; then
		java_pkg_postinst
		einfo "******************************************************"
		einfo " After installing ${P} this"
		einfo " was set as the default JVM to run."
		einfo " When finished please run the following so your"
		einfo " enviroment gets updated."
		eerror "    /usr/sbin/env-update && source /etc/profile"
		einfo " Or use java-config program to set your preferred VM"
		einfo "******************************************************"
	fi
	ebeep 5
	ebeep 5
	epause 8
	epause 8
}
}
pkg_prerm() {
	if [ ! -z "$(java-config -J | grep ${P})" ] ; then
		java-config -J
		ewarn "It appears you are removing your default system VM!"
		ewarn "Please run java-config -L then java-config-S to set a new system VM!"
	fi
}
(-) eclass/java.eclass (-41 / +53 lines)
 Lines 12-61    Link Here 
VMHANDLE=${PN}-${PV}
VMHANDLE=${PN}-${PV}
function sed2() {
EXPORT_FUNCTIONS pkg_postinst pkg_prerm
	unset filename
	unset arglist
	local filename=""
	local arglist
	declare -a arglist
	while test $# -gt 0 ; do
		case $1 in
			-e)
				shift
				arglist[${#arglist[@]}]="-e"
				arglist[${#arglist[@]}]="$1"
			;;
			*)
				if [ -e "$1" ] ; then
					filename=$1
				fi
			;;
		esac
		shift
	done
	if [ ! -z $filename ] ; then
java_pkg_postinst() {
		mv "${filename}" "${filename}.orig"
	local jdk=${PN#*-}
		sed "${arglist[@]}" < ${filename}.orig > ${filename}
	if [ ${jdk:0:3} == "jdk" ]; then
		return 0
		java_set_default_vm_
	else
	else
		return 1
		# Only install the JRE as the system default if there's no JDK
		# installed. Installing a JRE over an existing JDK will result
		# in major breakage, see #9289.
		if [ ! -f "${JAVAC}" ]; then
			 ewarn "Found no JDK, setting ${VMHANDLE} as default system VM"
			java_set_default_vm_
	fi
	fi
	fi
	java_mozilla_clean_
}
}
java_pkg_postinst() {
java_pkg_prerm() {
#	if [ -z `java-config --java 2> /dev/null` ] ; then
	if java-config -J | grep -q ${P} ; then
#		einfo "No default VM found, setting ${VMHANDLE} as default"
		ewarn "It appears you are removing your default system VM!"
		einfo "Setting ${VMHANDLE} as default"
		ewarn "Please run java-config -L then java-config-S to set a new system VM!"
		einfo "Use java-config to reassign your VM."
	fi
}
java_set_default_vm_() {
		java-config --set-system-vm=${VMHANDLE}
		java-config --set-system-vm=${VMHANDLE}
		/usr/sbin/env-update
		/usr/sbin/env-update
		source /etc/profile
		source /etc/profile
#	fi
}
pkg_postinst() {
	echo
	java_pkg_postinst
	einfo " After installing ${P} this"
	einfo " was set as the default JVM to run."
	einfo " When finished please run the following so your"
	einfo " enviroment gets updated."
	eerror "	/usr/sbin/env-update && source /etc/profile"
	einfo " Or use java-config program to set your preferred VM"
}
}
system_arch() {
system_arch() {
 Lines 82-93    Link Here 
		> ${D}/etc/env.d/java/20`basename $1` || die
		> ${D}/etc/env.d/java/20`basename $1` || die
}
}
install_mozilla_plugin() {
	local bn
	bn=`basename $1`
	if use mozilla ; then
java_get_plugin_dir_() {
		dodir /usr/$(get_libdir)/mozilla/plugins
	echo /usr/$(get_libdir)/nsbrowser/plugins
		dosym $1 /usr/$(get_libdir)/mozilla/plugins/${bn}
}
install_mozilla_plugin() {
	if [ ! -f ${D}/$1 ] ; then
		die "Cannot find ${1}"
	fi
	fi
	local plugin_dir=$(java_get_plugin_dir_)
	dodir ${plugin_dir}
	dosym ${1} ${plugin_dir}/javaplugin.so
}
}
java_mozilla_clean_() {
	#Because previously some ebuilds installed symlinks outside of pkg_install
	#and are left behind, which forces you to manualy remove them to select the
	#jdk/jre you want to use for java
	local plugin_dir=$(java_get_plugin_dir_)
	for file in ${plugin_dir}/javaplugin_*; do
		rm -f ${file}
	done
	for file in ${plugin_dir}/libjavaplugin*; do
		rm -f ${file}
	done
}