Whitespace.
[slapos.git] / component / java / buildout.cfg
1 [buildout]
2
3 parts =
4   java
5
6 [jdk-6u27-no-user-interaction-patch]
7 recipe = hexagonit.recipe.download
8 url = ${:_profile_base_location_}/${:filename}
9 download-only = true
10 filename = jdk-6u27-no-user-interaction.patch
11 md5sum = 4c4303240647a114d07f3c411b2e6b5b
12
13 [java]
14 <= java-re
15
16 [java-re]
17 <= java-re-1.6.0
18
19 [java-sdk]
20 <= java-sdk-1.6.0
21
22 [java-re-1.6.0]
23 recipe = slapos.recipe.build
24 slapos_promisee =
25   directory:bin
26   directory:lib
27   directory:man
28   directory:plugin
29   directory:javaws
30   file:lib/rt.jar
31   file:bin/java
32 x86 = http://javadl.sun.com/webapps/download/AutoDL?BundleId=52240 0bd27d325c5ce11ce863d982ad052f7f
33 x86-64 =  http://javadl.sun.com/webapps/download/AutoDL?BundleId=52242 a4d929bc4d6511290c07c3745477b77b
34 script =
35   if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
36   download_file = self.download(self.options['url'], self.options.get('md5sum'))
37   extract_dir = tempfile.mkdtemp(self.name)
38   os.chdir(extract_dir)
39   (download_dir, filename) = os.path.split(download_file)
40   auto_extract_bin = os.path.join(extract_dir, filename)
41   shutil.move(download_file, auto_extract_bin)
42   os.chmod(auto_extract_bin, 0777)
43   subprocess.call([auto_extract_bin])
44   self.cleanup_dir_list.append(extract_dir)
45   workdir = guessworkdir(extract_dir)
46   self.copyTree(os.path.join(workdir, "jre1.6.0_27"), "%(location)s")
47
48 [java-sdk-1.6.0]
49 recipe = slapos.recipe.build
50 slapos_promisee =
51   directory:bin
52   directory:lib
53   directory:man
54   directory:plugin
55   directory:javaws
56   file:jre/lib/rt.jar
57   file:bin/java
58 x86 = http://download.oracle.com/otn-pub/java/jdk/6u27-b07/jdk-6u27-linux-i586.bin bdb5f05bd20c6aa9a4729726191bf6fd
59 x86-64 = http://download.oracle.com/otn-pub/java/jdk/6u27-b07/jdk-6u27-linux-x64.bin 94f93a3ff03f824a238ecd79ad90433e
60 script =
61   if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
62   download_file = self.download(self.options['url'], self.options.get('md5sum'))
63   extract_dir = tempfile.mkdtemp(self.name)
64   os.chdir(extract_dir)
65   (download_dir, filename) = os.path.split(download_file)
66   auto_extract_bin = os.path.join(extract_dir, filename)
67   shutil.move(download_file, auto_extract_bin)
68   os.chmod(auto_extract_bin, 0777)
69   subprocess.call(["patch", auto_extract_bin, "-i", "${jdk-6u27-no-user-interaction-patch:location}/${jdk-6u27-no-user-interaction-patch:filename}"])
70   subprocess.call([auto_extract_bin])
71   self.cleanup_dir_list.append(extract_dir)
72   workdir = guessworkdir(extract_dir)
73   self.copyTree(os.path.join(workdir, "jdk1.6.0_27"), "%(location)s")
74
75 [java-sdk-1.7.0]
76 recipe = slapos.recipe.build
77 slapos_promisee =
78   directory:bin
79   directory:lib
80   directory:man
81   directory:jre
82   file:jre/lib/rt.jar
83   file:bin/java
84   file:bin/javac
85 x86 = http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz f97244a104f03731e5ff69f0dd5a9927
86 x86-64 = http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64.tar.gz b3c1ef5faea7b180469c129a49762b64
87 script =
88   if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
89   extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum')))
90   workdir = guessworkdir(extract_dir)
91   self.copyTree(workdir, "%(location)s")
92