summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad House <brad_mssw@gentoo.org>2003-12-24 02:22:08 +0000
committerBrad House <brad_mssw@gentoo.org>2003-12-24 02:22:08 +0000
commitfc0833afaff3aec5b0d4e90666fe877f7ebbcde8 (patch)
tree5ac75ba51d0e5a25d450e49dc3cc76a02604090d /dev-java/blackdown-jdk
parentdegrade (diff)
downloadgentoo-2-fc0833afaff3aec5b0d4e90666fe877f7ebbcde8.tar.gz
gentoo-2-fc0833afaff3aec5b0d4e90666fe877f7ebbcde8.tar.bz2
gentoo-2-fc0833afaff3aec5b0d4e90666fe877f7ebbcde8.zip
multiarch stuff
Diffstat (limited to 'dev-java/blackdown-jdk')
-rw-r--r--dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild44
1 files changed, 40 insertions, 4 deletions
diff --git a/dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild b/dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild
index 46b07a75bd7f..ee173770f8a1 100644
--- a/dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild
+++ b/dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild,v 1.2 2003/12/23 16:55:30 brad_mssw Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.4.2_rc1.ebuild,v 1.3 2003/12/24 02:22:08 brad_mssw Exp $
IUSE="doc"
@@ -14,9 +14,24 @@ JV="${JV/_rc1/}"
S="${WORKDIR}/j2sdk${JV}"
DESCRIPTION="Blackdown Java Development Kit ${PV}"
J_URI="ftp://ftp.tux.org/pub/java/JDK-${JV}"
-
-A="j2sdk-${JV}-${JREV}-linux-amd64.bin"
-SRC_URI="${J_URI}/amd64/${JREV}/${A}"
+SRC_URI="amd64? ( ${J_URI}/amd64/${JREV}/j2sdk-${JV}-${JREV}-linux-amd64.bin )
+ x86? ( ${J_URI}/i386/${JREV}/j2sdk-${JV}-${JREV}-linux-i586-gcc3.2.bin )
+ sparc? ( ${J_URI}/sparc/${JREV}/j2sdk-${JV}-${JREV}-linux-sparc.bin )"
+
+
+if [ "${ARCH}" = "amd64" ]
+then
+ A="j2sdk-${JV}-${JREV}-linux-amd64.bin"
+elif [ "${ARCH}" = "x86" ]
+then
+ A="j2sdk-${JV}-${JREV}-linux-i586-gcc3.2.bin"
+elif [ "${ARCH}" = "sparc" ]
+then
+ A="j2sdk-${JV}-${JREV}-linux-sparc.bin"
+elif [ "${ARCH}" = "ppc" ]
+then
+ A="j2sdk-${JV}-${JREV}-linux-ppc.bin"
+fi
HOMEPAGE="http://www.blackdown.org"
@@ -137,5 +152,26 @@ pkg_postinst () {
# Set as default system VM if none exists
java_pkg_postinst
+ # if chpax is on the target system, set the appropriate PaX flags
+ # this will not hurt the binary, it modifies only unused ELF bits
+ # but may confuse things like AV scanners and automatic tripwire
+ if has_version "sys-apps/chpax"
+ then
+ einfo "setting up conservative PaX flags for jar and javac"
+
+ for paxkills in "jar" "javac" "java"
+ do
+ chpax -${CHPAX_CONSERVATIVE_FLAGS} /opt/${PN}-${PV}/bin/$paxkills
+ done
+
+ # /opt/blackdown-jdk-1.4.1/jre/bin/java_vm
+ chpax -${CHPAX_CONSERVATIVE_FLAGS} /opt/${PN}-${PV}/jre/bin/java_vm
+
+ einfo "you should have seen lots of chpax output above now"
+ ewarn "make sure the grsec ACL contains those entries also"
+ ewarn "because enabling it will override the chpax setting"
+ ewarn "on the physical files - help for PaX and grsecurity"
+ ewarn "can be given by #gentoo-hardened + pappy@gentoo.org"
+ fi
}