Contents of /branches/magellan-next/core/java-environment/java-environment-1-r1.smage2
Parent Directory | Revision Log
Revision 9666 -
(show annotations)
(download)
Wed Jan 4 13:06:45 2012 UTC (12 years, 8 months ago) by niro
File size: 805 byte(s)
Wed Jan 4 13:06:45 2012 UTC (12 years, 8 months ago) by niro
File size: 805 byte(s)
-fixed
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 | msetfeature "!strip" |
13 | |
14 | UP2DATE="echo ${PVER}" |
15 | |
16 | src_install() |
17 | { |
18 | minstalldir /etc/env.d || die |
19 | |
20 | # install java environment into /etc/env.d |
21 | MCONFIG="/etc/env.d/22java-global-classpath" |
22 | mclearconfig || die |
23 | maddconfig "CLASSPATH=\"${JAVA_CLASSPATH_DIR}\"" || die |
24 | |
25 | MCONFIG="/etc/env.d/30java-eof-classpath" |
26 | mclearconfig || die |
27 | maddconfig 'CLASSPATH="."' || die |
28 | } |
29 | |
30 | preinstall() |
31 | { |
32 | # force java env update |
33 | [ -f ${MROOT}/etc/env.d/22java-global-classpath ] && rm ${MROOT}/etc/env.d/22java-global-classpath |
34 | [ -f ${MROOT}/etc/env.d/30java-eof-classpath ] && rm ${MROOT}/etc/env.d/30java-eof-classpath |
35 | } |