Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

Commit

Permalink
Migrated to a solution that create a local 'apt' repository
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Jan 17, 2012
1 parent 4955af8 commit 3b6f4db
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 137 deletions.
7 changes: 7 additions & 0 deletions CHANGES
Expand Up @@ -2,6 +2,13 @@
History
=======

0.1.3
-----

* Added the creation of a local 'apt' repository
* Removed installation of Java packages, you can now use 'apt-get' yourself
* Updated documentation

0.1.2
-----

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -2,7 +2,7 @@
License
=======

A wrapper for Janusz Dziemidowicz Debian packaging scripts for Java.
Create a local 'apt' repository for Ubuntu Java packages.
Copyright (c) 2012 Martin Wimpress, http://flexion.org/

Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
81 changes: 35 additions & 46 deletions README
@@ -1,8 +1,8 @@
oab-java6.sh v0.1.2 - Install Java 6u30 from locally built packages.
oab-java6.sh v0.1.3 - Create a local 'apt' repository for Ubuntu Java packages.
Copyright (c) 2012 Flexion.Org, http://flexion.org. MIT License

By running this script to download and/or install Java you acknowledge that
you have read and accepted the terms of the Oracle end user license agreement.
By running this script to download Java you acknowledge that you have
read and accepted the terms of the Oracle end user license agreement.

- http://www.oracle.com/technetwork/java/javase/terms/license/

Expand All @@ -13,72 +13,58 @@ the following from another shell:

Usage

sudo ./oab-java6.sh -k [jre|jdk]

So to install the JRE execute the following:

sudo ./oab-java6.sh -k jre

Required parameters
-k : Specify the Java kit you want to install [jre|jdk]
sudo ./oab-java6.sh

Optional parameters
-h : This help

How do I download and run this thing?
=====================================
The quick and simple solution is to do the following at the shell:
Like this.

cd ~/
wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java6.sh -O oab-java6.sh
chmod +x oab-java6.sh
sudo ./oab-java6.sh -k [jre|jdk]
sudo ./oab-java6.sh

How it works
============
This script is merely a wrapper for most excllent Debian packaging
This script is merely a wrapper for the most excllent Debian packaging
scripts prepared by Janusz Dziemidowicz.

- https://github.com/rraptorr/sun-java6

The basic execution steps are:

- Remove, my now disabled, Java PPA 'ppa:flexiondotorg/java'.
- Install the tools required to build the packages.
- Create download and build caches under '/var/local/oab'.
- Download the i586 and x64 Java 6 install binaries. Yes, both are required.
- Install the tools required to build the Java packages.
- Create download cache in '/var/local/oab/pkg'.
- Download the i586 and x64 Java 6 install binaries from Oracle. Yes, both are required.
- Clone the build scripts from https://github.com/rraptorr/sun-java6
- Build all the Java 6u30 packages applicable to your system.
- Install the packages that were just built.
- Build the Java 6u30 packages applicable to your system.
- Create local 'apt' repository in '/var/local/oab/deb' for the newly built Java Packages

What gets installed?
====================
If you elect to install the JRE the following packages are installed:

* sun-java6-bin
* sun-java6-jre
* sun-java6-fonts
Nothing!

If you elect to install the JDK this following packages are installed,
in addition to those from the JRE above.
This script will no longer try and directly install or upgrade any Java
packages, instead a local 'apt' repository is created that hosts locally
built Java packages applicable to your system. It is up to you to install
or upgrade the Java packages you require using 'apt-get', 'aptitude' or
'synaptic', etc. For example, once this script has been run you can simply
install the JRE by executing the following from a shell.

* sun-java6-jdk
* sun-java6-source
sudo apt-get install sun-java6-jre

The Java browser plugin is installed, **but only if a supported web browser
is already installed**. This is a safe guard to prevent servers from
installing a web browser and all its dependencies.
Or if you already have the "official" Ubuntu packages installed then you
can upgrade by executing the folowing from a shell.

* sun-java6-plugin
sudo apt-get upgrade

What is not installed?
======================
When electing to install the JDK the Java Development Kit demos and
examples, 'sun-java6-demo' and the Java DB distribution of Apache
Derby 'sun-java6-javadb' are not installed by default. Should you
require those packages, execute the following:

sudo dpkg -i /var/local/oab/deb/sun-java6-demo_6.30-3~oneiric1_amd64.deb
sudo dpkg -i /var/local/oab/deb/sun-java6-javadb_6.30-3~oneiric1_all.deb
The local 'apt' repository is just that, **local**. It is not accessible
remotely and oab-java6.sh will never enable that capability to ensure
compliance with Oracle's asinine license requirements.

What is 'oab'?
==============
Expand All @@ -88,6 +74,13 @@ Because, O.A.B! ;-)
History
=======

0.1.3
-----

* Added the creation of a local 'apt' repository
* Removed installation of Java packages, you can now use 'apt-get' yourself
* Updated documentation

0.1.2
-----

Expand All @@ -113,16 +106,12 @@ History
Todo
====

* Package descriptions and versions should be dynamically determined in the
documentation.
* Built .deb dependencies should be dynamically determined.
* Add an option to build only, but not install.
* Add support for Java 7.

License
=======

A wrapper for Janusz Dziemidowicz Debian packaging scripts for Java.
Create a local 'apt' repository for Ubuntu Java packages.
Copyright (c) 2012 Martin Wimpress, http://flexion.org/

Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
4 changes: 0 additions & 4 deletions TODO
Expand Up @@ -2,8 +2,4 @@
Todo
====

* Package descriptions and versions should be dynamically determined in the
documentation.
* Built .deb dependencies should be dynamically determined.
* Add an option to build only, but not install.
* Add support for Java 7.

0 comments on commit 3b6f4db

Please sign in to comment.