Magellan Linux

Contents of /branches/magellan-next/core/java-environment/java-environment-1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9665 - (show annotations) (download)
Wed Jan 4 13:04:33 2012 UTC (12 years, 5 months ago) by niro
File size: 783 byte(s)
- ver bump to 1-r1
1 # $Id$
2
3 PNAME="java-environment"
4 PVER="1"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-java"
8 DESCRIPTIOn="Default Java Runtime Environment used by all JRE/JDKs"
9 HOMEPAGE="http://magellan-linux.de"
10
11 sminclude mtools java
12
13 UP2DATE="echo ${PVER}"
14
15 src_install()
16 {
17 minstalldir /etc/env.d || die
18
19 # install java environment into /etc/env.d
20 MCONFIG="/etc/env.d/22java-global-classpath
21 mclearconfig || die
22 maddconfig "CLASSPATH=\"${JAVA_CLASSPATH_DIR}\"" || die
23
24 MCONFIG="/etc/env.d/30java-eof-classpath"
25 mclearconfig || die
26 maddconfig 'CLASSPATH="."' || die
27 }
28
29 preinstall()
30 {
31 # force java env update
32 [ -f ${MROOT}/etc/env.d/22java-global-classpath ] && rm ${MROOT}/etc/env.d/22java-global-classpath
33 [ -f ${MROOT}/etc/env.d/30java-eof-classpath ] && rm ${MROOT}/etc/env.d/30java-eof-classpath
34 }