Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 22526 Details for
Bug 36266
blackdown-jdk-1.4.2_beta.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild for blackdown jdk 1.4.2-rc1
blackdown-jdk-1.4.2_beta.ebuild (text/plain), 4.41 KB, created by
Mikko Tiihonen
on 2003-12-21 16:43:55 UTC
(
hide
)
Description:
ebuild for blackdown jdk 1.4.2-rc1
Filename:
MIME Type:
Creator:
Mikko Tiihonen
Created:
2003-12-21 16:43:55 UTC
Size:
4.41 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.4.1.ebuild,v 1.14 2003/11/14 17:40:30 pappy Exp $ > >IUSE="doc" > >inherit java nsplugins > >JREV="rc1" > >PVER="`echo ${PV} | sed 's/_beta//'`" >S="${WORKDIR}/j2sdk${PVER}" >DESCRIPTION="Blackdown Java Development Kit ${PV}" >J_URI="ftp://ftp.uk.linux.org/pub/linux/java/JDK-${PVER}" >if [ "`gcc -dumpversion | cut -f1 -d.`" -eq "3" -a "`gcc -dumpversion | cut -f2 -d.`" -ge "2" ] ; then > SRC_URI="x86? ( ${J_URI}/i386/${JREV}/j2sdk-${PVER}-${JREV}-linux-i586-gcc3.2.bin ) > amd64? ( ${J_URI}/amd64/${JREV}/j2sdk-${PVER}-${JREV}-linux-amd64.bin )" >else > SRC_URI="x86? ( ${J_URI}/i386/${JREV}/j2sdk-${PVER}-${JREV}-linux-i586-gcc2.95.bin )" >fi >SRC_URI="${SRC_URI} sparc? ( ${J_URI}/sparc/${JREV}/j2sdk-${PVER}-${JREV}-linux-sparc-gcc3.2.bin )" > ># this is needed for proper operating under a PaX kernel without activated grsecurity acl >CHPAX_CONSERVATIVE_FLAGS="pemsv" > >HOMEPAGE="http://www.blackdown.org" > >SLOT="1.4.2" >LICENSE="sun-bcla-java-vm" >KEYWORDS="x86 -ppc -sparc amd64" > >DEPEND="virtual/glibc > >=dev-java/java-config-0.2.6 > doc? ( =dev-java/java-sdk-docs-1.4.2* )" > >PROVIDE="virtual/jdk-1.4.2 > virtual/jre-1.4.2 > virtual/java-scheme-2" > >PACKED_JARS="lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/charsets.jar >jre/lib/ext/localedata.jar jre/lib/plugin.jar jre/javaws/javaws.jar" > ># Extract the 'skip' value (offset of tarball) we should pass to tail >get_offset() { > [ ! -f "$1" ] && return > > local offset="`gawk ' > /^[[:space:]]*skip[[:space:]]*=/ { > > sub(/^[[:space:]]*skip[[:space:]]*=/, "") > SKIP = $0 > } > > END { print SKIP } > ' $1`" > > eval echo $offset >} > >src_unpack () { > local offset="`get_offset ${DISTDIR}/${A}`" > > if [ -z "${offset}" ] ; then > eerror "Failed to get offset of tarball!" > die "Failed to get offset of tarball!" > fi > > echo ">>> Unpacking ${A}..." > tail -n +${offset} ${DISTDIR}/${A} | tar --no-same-owner -jxp > > # unpack the jars > if [ -f ${S}/lib/unpack ]; then > UNPACK_CMD=${S}/lib/unpack > chmod +x $UNPACK_CMD > for i in $PACKED_JARS; do > PACK_FILE=${S}/`dirname $i`/`basename $i .jar`.pack > if [ -f ${PACK_FILE} ]; then > echo " unpacking: $i" > $UNPACK_CMD ${PACK_FILE} ${S}/$i > rm -f ${PACK_FILE} > fi > done > fi >} > > >src_install () { > local PLATFORM= > > dodir /opt/${P} > > cp -a ${S}/{jre,bin,lib,man,include} ${D}/opt/${P} > > dodir /opt/${P}/share/java > cp -a ${S}/{demo,src.zip} ${D}/opt/${P}/share > > dodoc COPYRIGHT LICENSE README INSTALL THIRDPARTYLICENSEREADME.txt > dohtml README.html > > # Install mozilla plugin > if [ "${ARCH}" = "x86" ] ; then > PLATFORM="i386" > fi > > if [ "${ARCH}" = "amd64" ] ; then > PLATFORM="amd64" > fi > > if [ "${ARCH}" = "sparc" ] ; then > PLATFORM="sparc" > fi > > inst_plugin /opt/${P}/jre/plugin/${PLATFORM}/mozilla/libjavaplugin_oji.so > > # create dir for system preferences > dodir /opt/${P}/.systemPrefs > > find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \; > > dosed "s/standard symbols l/symbol/g" \ > /opt/${P}/jre/lib/font.properties > > # install env into /etc/env.d > set_java_env ${FILESDIR}/${VMHANDLE} || die > > # Fix for bug 26629 > if [ "${PROFILE_ARCH}" = "sparc64" ] > then > dosym /opt/${P}/jre/lib/sparc /opt/${P}/jre/lib/sparc64 > fi >} > >pkg_postinst () { > # Create files used as storage for system preferences. > touch /opt/${P}/.systemPrefs/.system.lock > chmod 644 /opt/${P}/.systemPrefs/.system.lock > touch /opt/${P}/.systemPrefs/.systemRootModFile > chmod 644 /opt/${P}/.systemPrefs/.systemRootModFile > > # 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.2/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 >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 36266
: 22526