Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 279 lines (193 sloc) 9.149 kB
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
1 OAB-Java6
2 =========
405faa9 @flexiondotorg Added option to use existing signing key. git clone use http, fixes #27.
authored
3 oab-java6.sh v0.2.2 - Create a local 'apt' repository for Ubuntu Java packages.
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
4 Copyright (c) Martin Wimpress, http://flexion.org. MIT License
5
6 By running this script to download Java you acknowledge that you have
7 read and accepted the terms of the Oracle end user license agreement.
8
9 * http://www.oracle.com/technetwork/java/javase/terms/license/
10
11 Usage
12 -----
13 ::
14
15 sudo ./oab-java6.sh
16
17 Optional parameters
18
405faa9 @flexiondotorg Added option to use existing signing key. git clone use http, fixes #27.
authored
19 * -c : Remove pre-existing packages from /var/local/oab/deb
20 * -k <gpg-key-id> : Use the specified existing key instead of generating one
21 * -s : Skip building if the packages already exist
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
22 * -h : This help
23
24 How do I download and run this thing?
25 -------------------------------------
26 Like this.
27 ::
28
29 cd ~/
405faa9 @flexiondotorg Added option to use existing signing key. git clone use http, fixes #27.
authored
30 wget https://github.com/flexiondotorg/oab-java6/raw/0.2.2/oab-java6.sh -O oab-java6.sh
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
31 chmod +x oab-java6.sh
32 sudo ./oab-java6.sh
33
34 If you are behind a proxy you may need to run using:
35 ::
36
37 sudo -i ./oab-java6.sh
38
525ecdc @gontadu Little spelling and grammar stuff
gontadu authored
39 If you want to see what this script is doing while it is running then execute
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
40 the following from another shell:
41 ::
42
43 tail -f ./oab-java6.sh.log
44
45 How it works
46 ------------
47 This script is merely a wrapper for the most excellent Debian packaging
48 scripts prepared by Janusz Dziemidowicz.
49
50 * https://github.com/rraptorr/sun-java6
51
52 The basic execution steps are:
53
54 * Remove, my now disabled, Java PPA 'ppa:flexiondotorg/java'.
55 * Install the tools required to build the Java packages.
56 * Create download cache in /var/local/oab/pkg.
57 * Download the i586 and x64 Java install binaries from Oracle. Yes, both are required.
58 * Clone the build scripts from https://github.com/rraptorr/sun-java6
59 * Build the Java packages applicable to your system.
60 * Create local apt repository in /var/local/oab/deb for the newly built Java Packages.
61 * Create a GnuPG signing key in /var/local/oab/gpg if none exists.
62 * Sign the local apt repository using the local GnuPG signing key.
63
64 What gets installed?
65 --------------------
66 Nothing!
67
68 This script will no longer try and directly install or upgrade any Java
69 packages, instead a local apt repository is created that hosts locally
70 built Java packages applicable to your system. It is up to you to install
71 or upgrade the Java packages you require using apt-get, aptitude or
72 synaptic, etc. For example, once this script has been run you can simply
73 install the JRE by executing the following from a shell.
74 ::
75
76 sudo apt-get install sun-java6-jre
77
78 Or if you already have the *"official"* Ubuntu packages installed then you
79 can upgrade by executing the following from a shell.
80 ::
81
82 sudo apt-get upgrade
83
84 The local apt repository is just that, **local**. It is not accessible
85 remotely and oab-java6.sh will never enable that capability to ensure
86 compliance with Oracle's asinine license requirements.
87
405faa9 @flexiondotorg Added option to use existing signing key. git clone use http, fixes #27.
authored
88 By default, the script creates a temporary GPG keyring in the working
89 directory. In order to use the current user's GPG chain instead, specify
90 the key ID of an existing secret key. Run gpg -K to list available keys.
91
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
92 Known Issues
93 ------------
94
95 * The Oracle download servers can be horribly slow. My script caches the downloads so you only need download each file once.
96
97 What is 'oab'?
98 --------------
99 Because, O.A.B! ;-)
100
101
102 History
103 =======
104
405faa9 @flexiondotorg Added option to use existing signing key. git clone use http, fixes #27.
authored
105 0.2.2
106 -----
107 * Added an option to use a pre-existing signing key. Thanks to Hannes Schmidt.
108 * The ``git clone`` of ``rraptorr/sun-java6`` now uses http rather than https.
109
110 * Closes : https://github.com/flexiondotorg/oab-java6/issues/27
111
9083f3f @flexiondotorg Readying for 0.2.1
authored
112 0.2.1
113 -----
114 * Fixed downloading from ``edelivery.oracle.com`` (again). Thanks to onlymostlydead (Mark).
115
116 * Closes : https://github.com/flexiondotorg/oab-java6/issues/28
117
79204ba @flexiondotorg Fixed download from edelivery.oracle.com, closes #13. Fixed rebuildin…
authored
118 0.2.0
119 -----
120
121 * Fixed downloading from ``edelivery.oracle.com`` when ``ca-certificates`` is not installed.
122
123 * Closes : https://github.com/flexiondotorg/oab-java6/issues/22
124
125 * Fixed the skip rebuilding behaviour so it works as described.
126 * Fixed the format of ``apt`` source file.
127 * Documentation is now self referencing.
128
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
129 0.1.9
130 -----
131
66f4680 @flexiondotorg Fix documentation formatting.
authored
132 * Fixed download of the Oracle binary packages, which now requires cookies. Thanks to Martin Polden and Miah Johnson.
97a29e1 @flexiondotorg Nested bullets are fixed.
authored
133
134 * Closes : https://github.com/flexiondotorg/oab-java6/issues/18
135
66f4680 @flexiondotorg Fix documentation formatting.
authored
136 * Added an option (-s) to skip rebuilding if packages already exist, tanks to Derek Chen-Becker.
79204ba @flexiondotorg Fixed download from edelivery.oracle.com, closes #13. Fixed rebuildin…
authored
137 * Added a comment to the ``apt`` source file, thanks to Eshwar Andhavarapu.
66f4680 @flexiondotorg Fix documentation formatting.
authored
138 * Added documentation for user running the script behind a proxy server, thanks to Olzhas.
97a29e1 @flexiondotorg Nested bullets are fixed.
authored
139
140 * Closes : https://github.com/flexiondotorg/oab-java6/issues/12
141
66f4680 @flexiondotorg Fix documentation formatting.
authored
142 * Should now build on Ubuntu 12.04 LTS, but untested.
143 * Updated documentation which is now correctly formatted as reStructuredText.
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
144
145 0.1.8
146 -----
147
66f4680 @flexiondotorg Fix documentation formatting.
authored
148 * Added dynamic determination of Java package URLs and sizes.
149 * Added an option (``-c``) to optionally clean .deb package.
97a29e1 @flexiondotorg Nested bullets are fixed.
authored
150
151 * Closes : https://github.com/flexiondotorg/oab-java6/issues/10
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
152
153 0.1.7
154 -----
155
66f4680 @flexiondotorg Fix documentation formatting.
authored
156 * Fixed GPG key creation on VMware ESX Server.
97a29e1 @flexiondotorg Nested bullets are fixed.
authored
157
158 * Closes : https://github.com/flexiondotorg/oab-java6/issues/11
159
66f4680 @flexiondotorg Fix documentation formatting.
authored
160 * Fixed clone of the ``sun-java6`` repository for users behind restrictive firewalls, thanks to Thorsten Möllers.
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
161
162 0.1.6
163 -----
164
66f4680 @flexiondotorg Fix documentation formatting.
authored
165 * Fixed downloading of ``common.sh`` when ca-certificates is not installed.
97a29e1 @flexiondotorg Nested bullets are fixed.
authored
166
167 * Closes : https://github.com/flexiondotorg/oab-java6/issues/3
168
66f4680 @flexiondotorg Fix documentation formatting.
authored
169 * Updated to support Java6u31
97a29e1 @flexiondotorg Nested bullets are fixed.
authored
170
171 * Closes : https://github.com/flexiondotorg/oab-java6/issues/7
172 * Closes : https://github.com/flexiondotorg/oab-java6/issues/8
173 * NOTE! Requires that the upstream script tags Java6u31 as stable, see the following ticket https://github.com/rraptorr/sun-java6/issues/3
174
66f4680 @flexiondotorg Fix documentation formatting.
authored
175 * Prevent script from running under Ubuntu Precise as it is currently known to be unsupported.
97a29e1 @flexiondotorg Nested bullets are fixed.
authored
176
177 * Closes : https://github.com/flexiondotorg/oab-java6/issues/4
178
66f4680 @flexiondotorg Fix documentation formatting.
authored
179 * Prevent automated key generation when running in an OpenVZ container because I'm too stupid to work out a proper solution
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
180
181 0.1.5
182 -----
183
66f4680 @flexiondotorg Fix documentation formatting.
authored
184 * Fixed missing code that actually does the build.
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
185
186 0.1.4
187 -----
188
66f4680 @flexiondotorg Fix documentation formatting.
authored
189 * Added GnuPG signing of the local ``apt`` repository.
190 * Updated package building to preserve the upstream package urgency.
191 * Re-factored to remove hard coded versions, now uses ``debian/changelog``.
192 * Fixed the ``override`` file generation to ensure it doesn't contain duplicates.
193 * Updated documentation.
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
194
195 0.1.3
196 -----
197
66f4680 @flexiondotorg Fix documentation formatting.
authored
198 * Added checking out of tagged releases of the upstream scripts.
97a29e1 @flexiondotorg Nested bullets are fixed.
authored
199
200 * Closes : https://github.com/flexiondotorg/oab-java6/issues/1
201
66f4680 @flexiondotorg Fix documentation formatting.
authored
202 * Added loose distribution checking so it should now work with Linux Mint and other Ubuntu derivatives.
97a29e1 @flexiondotorg Nested bullets are fixed.
authored
203
204 * Closes : https://github.com/flexiondotorg/oab-java6/issues/2
205
66f4680 @flexiondotorg Fix documentation formatting.
authored
206 * Added the creation of a local ``apt`` repository
207 * Removed installation of Java packages, you can now use ``apt-get`` yourself
208 * Updated documentation
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
209
210 0.1.2
211 -----
212
66f4680 @flexiondotorg Fix documentation formatting.
authored
213 * Fixed build requirements.
214 * Fixed install of ``ia32-sun-java6-bin`` on 64-bit systems.
215 * Fixed install of Java browser plug-in on systems without a supported browser.
216 * Added runtime requirements.
217 * Added TODO.
218 * Updated documentation.
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
219
220 0.1.1
221 -----
222
66f4680 @flexiondotorg Fix documentation formatting.
authored
223 * Updated to use dynamic version detection throughout.
224 * Fixed package installation when upgrading.
225 * Minor documentation updates.
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
226
227 0.1.0
228 -----
229
66f4680 @flexiondotorg Fix documentation formatting.
authored
230 * Initial release.
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
231
232 Credits
233 =======
234
235 This package is written and maintained by Martin Wimpress, <code@flexion.org>
236
237 Other contributors, listed alphabetically, are:
238
239 * Derek Chen-Becker - Added an option to skip rebuilding packages.
240 * Eshwar Andhavarapu - Added comments in the apt source file.
405faa9 @flexiondotorg Added option to use existing signing key. git clone use http, fixes #27.
authored
241 * Hannes Schmidt - Added an option to use a pre-existing signing key.
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
242 * Martin Polden - Fixed download binary packages from Oracle.
243 * Miah Johnson - Fixed download binary packages from Oracle.
c5bce45 @flexiondotorg Minor doc updates
authored
244 * onlymostlydead - Fixed downloading from Oracle (again).
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
245 * Thorsten Möllers - Fixed git cloning for users behind restrictive firewalls.
246
247 Many thanks for all contributions!
248
249 Todo
250 ====
251
c5bce45 @flexiondotorg Minor doc updates
authored
252 * Add support for JCE Unlimited Strength Jurisdiction Policy Files.
8e66677 @flexiondotorg Merged several pull requests which close #18 and close #12.
authored
253 * Check the binary packages downloaded from Oracle are the correct size.
254 * Add support to build for a given Ubuntu distribution.
255 * Add support to optionally build using ``pbuilder``.
256 * Add support for Java 7.
257
258 License
259 =======
260
261 Copyright (c) 2012 Martin Wimpress, http://flexion.org/
262
263 Permission is hereby granted, free of charge, to any person obtaining a copy of
264 this software and associated documentation files (the "Software"), to deal in
265 the Software without restriction, including without limitation the rights to
266 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
267 the Software, and to permit persons to whom the Software is furnished to do so,
268 subject to the following conditions:
269
270 The above copyright notice and this permission notice shall be included in all
271 copies or substantial portions of the Software.
272
273 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
274 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
275 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
276 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
277 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
278 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.