]> git.sven.stormbind.net Git - sven/java-package.git/commitdiff
Display usage info on install, docs polish
authorCédric Pineau <cedric.pineau@gmail.com>
Wed, 25 Jan 2012 21:40:10 +0000 (22:40 +0100)
committerCédric Pineau <cedric.pineau@gmail.com>
Thu, 26 Jan 2012 15:55:19 +0000 (16:55 +0100)
12 files changed:
Makefile
README
debian/README.Debian
debian/changelog
debian/control
debian/copyright
debian/postinst [new file with mode: 0644]
debian/prerm [new file with mode: 0644]
debian/rules
debian/templates [new file with mode: 0644]
make-jpkg
make-jpkg.1

index e0afbfc7ccb1032208e3150388d8ab33490f2520..8fde721e2608a3b164a6036d37a048e2b80c0e6f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,13 +5,11 @@ default: build
 
 .PHONY: build
 build:
 
 .PHONY: build
 build:
-       echo "java-package currently supports the following binary packages:" \
-               > SUPPORTED
+       echo "java-package currently supports the following binary packages:" > SUPPORTED
        echo >> SUPPORTED
        echo "(This list is automatically generated, do not edit)" >> SUPPORTED
        echo >> SUPPORTED
        echo >> SUPPORTED
        echo "(This list is automatically generated, do not edit)" >> SUPPORTED
        echo >> SUPPORTED
-       grep -h "SUPPORTED$$" $(wildcard lib/*-*.sh) | sed 's/"//g;s/).*//' \
-               >> SUPPORTED
+       grep -h "SUPPORTED$$" $(wildcard lib/*-*.sh) | sed 's/"//g;s/).*//' >> SUPPORTED
 
 .PHONY: clean
 clean:
 
 .PHONY: clean
 clean:
diff --git a/README b/README
index 4163b90f116c0054352fbcde4288f06c0e8c0324..7367c22bf58c1b7f3166df8d7fd3495e0008096e 100644 (file)
--- a/README
+++ b/README
@@ -1,17 +1,21 @@
 
 * To be done : 
 
 
 * To be done : 
 
-(from Matthias Klose <doko@ubuntu.com>)
-- install into a multiarch location to allow installing the i386 client vm on amd64 and ia64. 
-
-(else)
+- update java-package wiki page : http://wiki.debian.org/JavaPackage?action=edit&editor=text
 - make symbolic links for j2se/jre/bin/* in j2se/bin/ to avoid duplication
 - make symbolic links for j2se/jre/man/man1/* in j2se/man/man1 to avoid duplication
 - make symbolic links for j2se/jre/man/ja_JP.UTF-8 in j2se/man/ja to avoid duplication
 - make symbolic links for j2se/jre/bin/* in j2se/bin/ to avoid duplication
 - make symbolic links for j2se/jre/man/man1/* in j2se/man/man1 to avoid duplication
 - make symbolic links for j2se/jre/man/ja_JP.UTF-8 in j2se/man/ja to avoid duplication
+- install into a multiarch location to allow installing the i386 client vm on amd64 and ia64 (Matthias Klose <doko@ubuntu.com>)
 - ? kinit, klist, and ktab not installed; handling of /etc/krb5.conf not addressed
 
 
 
 - ? kinit, klist, and ktab not installed; handling of /etc/krb5.conf not addressed
 
 
 
+* Resources :
+
+http://wiki.debian.org/JavaPackage
+http://packages.qa.debian.org/j/java-package.html
+
+
 
 * Main variables used in the scripts :
 
 
 * Main variables used in the scripts :
 
index daef0e549b9412e8f7e93f6f08e65ab3cef04aa4..f1ce1f2ebc5aa05874ba7e1e6969466e485d3218 100644 (file)
@@ -1,31 +1,25 @@
 java-package
 ------------
 
 java-package
 ------------
 
-This package can be used to install various non-free external Java packages
-under Debian.
+This package can be used to build Debian packages for various non-free external Java binary distributions.
 
 Please note that Debian recommends the use of openjdk-6-jdk/openjdk-6-jre
 or openjdk-7-jdk/openjdk-7-jre.
 
 It includes the 'make-jpkg' command to do this, see 'man make-jpkg' for more
 
 Please note that Debian recommends the use of openjdk-6-jdk/openjdk-6-jre
 or openjdk-7-jdk/openjdk-7-jre.
 
 It includes the 'make-jpkg' command to do this, see 'man make-jpkg' for more
-information about generating java packages.
+information about building java packages.
 
 Typical usage consists in
 - downloading one of the java binary archive listed below
 - invoking make-jpkg to build a Debian package from the downloaded archive
 - installing the generated package
 
 
 Typical usage consists in
 - downloading one of the java binary archive listed below
 - invoking make-jpkg to build a Debian package from the downloaded archive
 - installing the generated package
 
-Supported packages currently include:
-
- * Oracle :
-   - The J2SE Development Kit (JDK), version 6 (update >= 10), 7
-   - The J2SE Runtime Environment (JRE), version 6 (update >= 10), 7
-   - The J2SE API Javadoc, version 6 (update >= 10), 7
-
-   Download: 
-   http://www.oracle.com/technetwork/java/javase/downloads
-   
-   (Choose tar.gz archives, i586 or amd64, do _not_ choose the RPM!)
+Supported java binary distributions currently include:
+  * Oracle (http://www.oracle.com/technetwork/java/javase/downloads) :
+    - The J2SE Development Kit (JDK), version 6 (update >= 10), 7
+    - The J2SE Runtime Environment (JRE), version 6 (update >= 10), 7
+    - The J2SE API Javadoc, version 6 (update >= 10), 7
+  (Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!)
 
 All other previously supported jvm (Blackdown, IBM, ..) have been removed and
 will only be added back on users demand.
 
 All other previously supported jvm (Blackdown, IBM, ..) have been removed and
 will only be added back on users demand.
index 89b37b7bedbeeaf0e08e44c33e64263f0f52a6c2..0662e4fa7efbba2c8439ea63c4449996b4fdb01e 100644 (file)
@@ -6,6 +6,7 @@ java-package (0.50) UNRELEASED; urgency=low
   * Add support for Oracle Java 7
   * Add support for .jinfo file (update-java-alternatives tool)
   * Use jdk included jre binaries (jdk/jre/bin/*)
   * Add support for Oracle Java 7
   * Add support for .jinfo file (update-java-alternatives tool)
   * Use jdk included jre binaries (jdk/jre/bin/*)
+  * Print usage information on install
 
  -- Cédric Pineau <cedric.pineau@gmail.com>  Thu, 22 Dec 2011 11:42:13 +0100
 
 
  -- Cédric Pineau <cedric.pineau@gmail.com>  Thu, 22 Dec 2011 11:42:13 +0100
 
index 45da97018b2ead3a8cf3076b9097048d4674ce5b..5fc19f279abb8a866c6401fd1007aa5f9e89a12b 100644 (file)
@@ -10,19 +10,20 @@ Standards-Version: 3.9.2
 
 Package: java-package
 Architecture: all
 
 Package: java-package
 Architecture: all
-Depends:  ${misc:Depends}, debhelper, fakeroot, unzip, libx11-6, libasound2
+Depends:  ${misc:Depends}, debhelper, fakeroot, unzip, libx11-6, libasound2, debconf (>= 0.5) | debconf-2.0
 Recommends: dpkg-dev, gcc
 Suggests: openjdk-6-jre, openjdk-7-jre
 Description: utility for building Java related Debian packages
 Recommends: dpkg-dev, gcc
 Suggests: openjdk-6-jre, openjdk-7-jre
 Description: utility for building Java related Debian packages
- This package provides the capability to create a Debian package from
- a Java distribution by just running make-jpkg <java binary archive file>.
+ This package provides the capability to build a Debian package from
+ a Java binary distribution by running make-jpkg <java binary archive file>.
  (with archive files downloaded from providers listed below)
  .
  (with archive files downloaded from providers listed below)
  .
- This program currently works with the following Java Runtime
- Environments and Development Kits:
- .
-  * Oracle(TM) 6 Standard Edition
-  * Oracle(TM) 7 Standard Edition
+ Supported java binary distributions currently include:
+   * Oracle (http://www.oracle.com/technetwork/java/javase/downloads) :
+     - The J2SE Development Kit (JDK), version 6 (update >= 10), 7
+     - The J2SE Runtime Environment (JRE), version 6 (update >= 10), 7
+     - The J2SE API Javadoc, version 6 (update >= 10), 7
+   (Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!)
  .
  Please note that Debian recommends the use of openjdk-6-jdk/openjdk-6-jre
  or openjdk-7-jdk/openjdk-7-jre. java-package will install non-free packages.
  .
  Please note that Debian recommends the use of openjdk-6-jdk/openjdk-6-jre
  or openjdk-7-jdk/openjdk-7-jre. java-package will install non-free packages.
index 850e5851a4c8942195131ef5ccc4e2d250aede40..9d1eadf2a41ec4122d0c7749c98ab6ff385735ce 100644 (file)
@@ -2,8 +2,9 @@ java-package is based upon the j2se-package application originally
 written by Hubert Schmid.
 
 The original source can always be found at:
 written by Hubert Schmid.
 
 The original source can always be found at:
-http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/java-package/?cvsroot=pkg-java
+git://git.debian.org/git/pkg-java/java-package.git
 
 
+Copyright (C) 2011-2012  Cédric Pineau
 Copyright (C) 2005  Barry Hawkins
 Copyright (C) 2004-2005  Jeroen van Wolffelaar
 Copyright (C) 2003  Hubert Schmid
 Copyright (C) 2005  Barry Hawkins
 Copyright (C) 2004-2005  Jeroen van Wolffelaar
 Copyright (C) 2003  Hubert Schmid
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..9c24044
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]
+then
+       . /usr/share/debconf/confmodule
+       db_input high java-package/postinst-note || true
+       db_go
+fi
+
+exit 0
diff --git a/debian/prerm b/debian/prerm
new file mode 100644 (file)
index 0000000..600b078
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "purge" ]
+then
+       . /usr/share/debconf/confmodule
+       db_purge
+fi
+
+exit 0
index 7859d0bf319baa7a45f6cac73dda71a0cf6423f9..ca5eea3a0e3cb39b50c957bffaf3fe53a3bd49e7 100755 (executable)
@@ -26,6 +26,7 @@ install: build
        dh_testroot
        dh_clean -k
        dh_installdirs
        dh_testroot
        dh_clean -k
        dh_installdirs
+       dh_installdebconf
        install -m 755 make-jpkg.out $(B)/usr/bin/make-jpkg
        cp lib/*.sh $(B)/usr/share/java-package/
        find $(B) -type d -name .svn | xargs -r rm -r
        install -m 755 make-jpkg.out $(B)/usr/bin/make-jpkg
        cp lib/*.sh $(B)/usr/share/java-package/
        find $(B) -type d -name .svn | xargs -r rm -r
diff --git a/debian/templates b/debian/templates
new file mode 100644 (file)
index 0000000..249a1d6
--- /dev/null
@@ -0,0 +1,13 @@
+Template: java-package/postinst-note
+Type: note
+Description: Java-package is now installed - You can invoke make-jpkg to build Java Debian packages
+ To use it:
+   1) download one of the java binary archive listed below
+   2) invoke make-jpkg <archive-file> to build a Debian package from the downloaded archive-
+   3) install the generated package using dpkg
+ .
+ Supported Java binary distributions currently include:
+   * Oracle :
+     - The J2SE Development Kit (JDK), version 6 (update >= 10), 7
+     - The J2SE Runtime Environment (JRE), version 6 (update >= 10), 7
+     - The J2SE API Javadoc, version 6 (update >= 10), 7
index 5a788db11f5795e0300956ddd6d62b6c6d64032b..0e1d315a45b9e56b359440f96d274d0b24132bd2 100755 (executable)
--- a/make-jpkg
+++ b/make-jpkg
@@ -67,7 +67,16 @@ print_usage() {
        cat << EOF
 Usage: $program_name [OPTION]... FILE
 
        cat << EOF
 Usage: $program_name [OPTION]... FILE
 
-$program_name builds Debian packages from Java binary distributions.
+$program_name builds a Debian package from the given Java binary distribution FILE
+
+Supported java binary distributions currently include:
+  * Oracle (http://www.oracle.com/technetwork/java/javase/downloads) :
+    - The J2SE Development Kit (JDK), version 6 (update >= 10), 7
+    - The J2SE Runtime Environment (JRE), version 6 (update >= 10), 7
+    - The J2SE API Javadoc, version 6 (update >= 10), 7
+  (Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!)
+
+The following options are recognized:
 
   --full-name NAME   full name used in the maintainer field of the package
   --email EMAIL      email address used in the maintainer field of the package
 
   --full-name NAME   full name used in the maintainer field of the package
   --email EMAIL      email address used in the maintainer field of the package
index 96c30a02a1005d20eb1e66067178b624502383be..88878fd24fdee9358aa3e33e68b0a56bd0f5d165 100644 (file)
@@ -16,7 +16,7 @@
 .\" .sp <n>    insert n+1 empty lines
 .\" for manpage-specific macros, see man(7)
 .SH NAME
 .\" .sp <n>    insert n+1 empty lines
 .\" for manpage-specific macros, see man(7)
 .SH NAME
-make-jpkg \- build Debian packages from Java binary distributions
+make-jpkg \- builds Debian packages from Java binary distributions
 .SH SYNOPSIS
 .B make-jpkg
 [\fIOPTION\fR]... [\fIFILE\fR]
 .SH SYNOPSIS
 .B make-jpkg
 [\fIOPTION\fR]... [\fIFILE\fR]
@@ -25,11 +25,15 @@ make-jpkg \- build Debian packages from Java binary distributions
 .\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
 .\" respectively.
 .PP
 .\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
 .\" respectively.
 .PP
-\fBmake-jpkg\fP creates a Debian package from the given Java
+\fBmake-jpkg\fP builds a Debian package from the given Java
 distribution FILE.
 distribution FILE.
-This program works currently with the following Java REs, SDKs and APIs archive files:
- Oracle(TM) 6 Standard Edition (starting with update 10)
- Oracle(TM) 7 Standard Edition
+.PP
+Supported java binary distributions currently include:
+  * Oracle (http://www.oracle.com/technetwork/java/javase/downloads) :
+    - The J2SE Development Kit (JDK), version 6 (update >= 10), 7
+    - The J2SE Runtime Environment (JRE), version 6 (update >= 10), 7
+    - The J2SE API Javadoc, version 6 (update >= 10), 7
+  (Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!)
 .PP
 The following options are recognized:
 .TP
 .PP
 The following options are recognized:
 .TP
@@ -57,7 +61,7 @@ and execute
 .B make-jpkg
 .I file
 with the downloaded file. The program asks the user for additional
 .B make-jpkg
 .I file
 with the downloaded file. The program asks the user for additional
-information and creates a Debian binary package in the current
+information and builds a Debian binary package in the current
 directory.
 .PP
 The program requires about 200 MB free disk space in a temporary
 directory.
 .PP
 The program requires about 200 MB free disk space in a temporary
@@ -74,7 +78,7 @@ This generate a Debian package in the current directory, that can be installed u
 .IP
 dpkg -i oracle-j2sdk1.7_1.7.0+update2_amd64.deb
 .PP
 .IP
 dpkg -i oracle-j2sdk1.7_1.7.0+update2_amd64.deb
 .PP
-When you're done, you can remove initial download as well as generated package:
+When you're done, you can delete initial download as well as generated package:
 .IP
 rm <path_to_download_directory>/jdk-7u2-linux-x64.tar.gz oracle-j2sdk1.7_1.7.0+update2_amd64.deb
 .PP
 .IP
 rm <path_to_download_directory>/jdk-7u2-linux-x64.tar.gz oracle-j2sdk1.7_1.7.0+update2_amd64.deb
 .PP