Lines 2-9
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $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 $ |
3 |
# $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 $ |
4 |
|
4 |
|
5 |
IUSE="doc gnome kde mozilla jce" |
|
|
6 |
|
7 |
inherit java eutils |
5 |
inherit java eutils |
8 |
|
6 |
|
9 |
amd64file="jdk-1_5_0-rc-linux-amd64.bin" |
7 |
amd64file="jdk-1_5_0-rc-linux-amd64.bin" |
Lines 26-31
Link Here
|
26 |
LICENSE="sun-bcla-java-vm" |
24 |
LICENSE="sun-bcla-java-vm" |
27 |
KEYWORDS="~x86 ~amd64" |
25 |
KEYWORDS="~x86 ~amd64" |
28 |
RESTRICT="fetch" |
26 |
RESTRICT="fetch" |
|
|
27 |
IUSE="doc gnome kde mozilla jce" |
29 |
|
28 |
|
30 |
# |
29 |
# |
31 |
DEPEND=">=dev-java/java-config-1.2 |
30 |
DEPEND=">=dev-java/java-config-1.2 |
Lines 66-78
Link Here
|
66 |
|
65 |
|
67 |
src_unpack() { |
66 |
src_unpack() { |
68 |
if [ ! -r ${DISTDIR}/${At} ]; then |
67 |
if [ ! -r ${DISTDIR}/${At} ]; then |
69 |
eerror "cannot read ${At}. Please check the permission and try again." |
68 |
die "cannot read ${At}. Please check the permission and try again." |
70 |
die |
|
|
71 |
fi |
69 |
fi |
72 |
if use jce; then |
70 |
if use jce; then |
73 |
if [ ! -r ${DISTDIR}/${jcefile} ]; then |
71 |
if [ ! -r ${DISTDIR}/${jcefile} ]; then |
74 |
eerror "cannot read ${jcefile}. Please check the permission and try again." |
72 |
die "cannot read ${jcefile}. Please check the permission and try again." |
75 |
die |
|
|
76 |
fi |
73 |
fi |
77 |
fi |
74 |
fi |
78 |
|
75 |
|
Lines 102-108
Link Here
|
102 |
${S}/bin/java -client -Xshare:dump |
99 |
${S}/bin/java -client -Xshare:dump |
103 |
} |
100 |
} |
104 |
|
101 |
|
105 |
src_install () { |
102 |
src_install() { |
106 |
local dirs="bin include jre lib man" |
103 |
local dirs="bin include jre lib man" |
107 |
dodir /opt/${P} |
104 |
dodir /opt/${P} |
108 |
|
105 |
|
Lines 128-140
Link Here
|
128 |
dosym /opt/${P}/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/ |
125 |
dosym /opt/${P}/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/ |
129 |
fi |
126 |
fi |
130 |
|
127 |
|
131 |
|
128 |
if use mozilla; then |
132 |
local plugin_dir="ns7-gcc29" |
129 |
local plugin_dir="ns7-gcc29" |
133 |
if has_version '>=gcc-3*' ; then |
130 |
if has_version '>=gcc-3*' ; then |
134 |
plugin_dir="ns7" |
131 |
plugin_dir="ns7" |
135 |
fi |
132 |
fi |
136 |
|
133 |
|
137 |
if use mozilla ; then |
|
|
138 |
if use x86 ; then |
134 |
if use x86 ; then |
139 |
install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so |
135 |
install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so |
140 |
else |
136 |
else |
Lines 175-181
Link Here
|
175 |
# is a directory and will not be gzipped ;) |
171 |
# is a directory and will not be gzipped ;) |
176 |
} |
172 |
} |
177 |
|
173 |
|
178 |
pkg_postinst () { |
174 |
pkg_postinst() { |
179 |
# Create files used as storage for system preferences. |
175 |
# Create files used as storage for system preferences. |
180 |
PREFS_LOCATION=/opt/${P}/jre |
176 |
PREFS_LOCATION=/opt/${P}/jre |
181 |
mkdir -p ${PREFS_LOCATION}/.systemPrefs |
177 |
mkdir -p ${PREFS_LOCATION}/.systemPrefs |
Lines 193-205
Link Here
|
193 |
|
189 |
|
194 |
#Show info about netscape |
190 |
#Show info about netscape |
195 |
if has_version '>=netscape-navigator-4.79-r1' || has_version '>=netscape-communicator-4.79-r1' ; then |
191 |
if has_version '>=netscape-navigator-4.79-r1' || has_version '>=netscape-communicator-4.79-r1' ; then |
196 |
einfo "********************************************************" |
192 |
echo |
197 |
einfo "If you want to install the plugin for Netscape 4.x, type" |
193 |
einfo "If you want to install the plugin for Netscape 4.x, type" |
198 |
einfo |
194 |
einfo |
199 |
einfo " cd /usr/lib/nsbrowser/plugins/" |
195 |
einfo " cd /usr/lib/nsbrowser/plugins/" |
200 |
einfo " ln -sf /opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so" |
196 |
einfo " ln -sf /opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so" |
201 |
einfo "********************************************************" |
|
|
202 |
echo |
203 |
fi |
197 |
fi |
204 |
|
198 |
|
205 |
# if chpax is on the target system, set the appropriate PaX flags |
199 |
# if chpax is on the target system, set the appropriate PaX flags |
Lines 207-212
Link Here
|
207 |
# but may confuse things like AV scanners and automatic tripwire |
201 |
# but may confuse things like AV scanners and automatic tripwire |
208 |
if has_version "sys-apps/chpax" |
202 |
if has_version "sys-apps/chpax" |
209 |
then |
203 |
then |
|
|
204 |
echo |
210 |
einfo "setting up conservative PaX flags for jar, javac and java" |
205 |
einfo "setting up conservative PaX flags for jar, javac and java" |
211 |
|
206 |
|
212 |
for paxkills in "jar" "javac" "java" |
207 |
for paxkills in "jar" "javac" "java" |
Lines 224-253
Link Here
|
224 |
ewarn "can be given by #gentoo-hardened + pappy@gentoo.org" |
219 |
ewarn "can be given by #gentoo-hardened + pappy@gentoo.org" |
225 |
fi |
220 |
fi |
226 |
|
221 |
|
227 |
#Thanks to Douglas Pollock <douglas.pollock@magma.ca> for this |
222 |
echo |
228 |
#comment found on the sun-jdk 1.2.2 ebuild that he sent. |
|
|
229 |
einfo "*********************************************************" |
230 |
eerror "Some parts of Sun's JDK require XFree86 to be installed." |
223 |
eerror "Some parts of Sun's JDK require XFree86 to be installed." |
231 |
eerror "Be careful which Java libraries you attempt to use." |
224 |
eerror "Be careful which Java libraries you attempt to use." |
232 |
einfo "*********************************************************" |
|
|
233 |
echo |
234 |
|
225 |
|
235 |
einfo "*********************************************************" |
226 |
echo |
236 |
einfo " After installing ${P} this" |
|
|
237 |
einfo " was set as the default JVM to run." |
238 |
einfo " When finished please run the following so your" |
239 |
einfo " enviroment gets updated." |
240 |
eerror " /usr/sbin/env-update && source /etc/profile" |
241 |
einfo " Or use java-config program to set your preferred VM" |
242 |
einfo "*********************************************************" |
243 |
|
244 |
# warn about a default setting in Java 1.5.0 rc |
245 |
einfo "*********************************************************" |
246 |
einfo " Be careful: ${P}'s Java compiler uses" |
227 |
einfo " Be careful: ${P}'s Java compiler uses" |
247 |
einfo " '-source 1.5' as default. Some keywords such as 'enum'" |
228 |
einfo " '-source 1.5' as default. Some keywords such as 'enum'" |
248 |
einfo " are not valid identifiers any more in that mode," |
229 |
einfo " are not valid identifiers any more in that mode," |
249 |
einfo " which can cause incompatibility with certain sources." |
230 |
einfo " which can cause incompatibility with certain sources." |
250 |
einfo "*********************************************************" |
|
|
251 |
|
231 |
|
252 |
ebeep 5 |
232 |
ebeep 5 |
253 |
epause 8 |
233 |
epause 8 |