X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=make-jpkg;h=3db992cfd6494949383b1fe86a13277852ac2a80;hp=826b2da46acba2ab3ccca6e2a375b2324e7f0a1d;hb=f03071c526a332c9650568cb1f32361c96fef9d8;hpb=3e9a25f5082e092184800ceeeedcafb9c1ea32a8 diff --git a/make-jpkg b/make-jpkg index 826b2da..3db992c 100755 --- a/make-jpkg +++ b/make-jpkg @@ -32,6 +32,7 @@ fi genchanges="" build_source="" +jce_archive="" ### check for run in fakeroot @@ -72,21 +73,25 @@ $program_name builds a Debian package from the given Java binary distribution FI Supported java binary distributions currently include: * Oracle (http://www.oracle.com/technetwork/java/javase/downloads) : - - The Java Development Kit (JDK), version 6 and 7 - - The Java Runtime Environment (JRE), version 6 and 7 - - The Java API Javadoc, version 6 and 7 + - The Java Development Kit (JDK), version 6, 7 and 8 + - The Java Runtime Environment (JRE), version 6, 7 and 8 + - The Java API Javadoc, version 6, 7 and 8 (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 - --changes create a .changes file - --revision add debian revision - --source build a source package instead of a binary deb 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 + --distribution DIST Define the distribution to use in the changelog + --priority PRIORITY Override default package priority + --changes create a .changes file + --revision add debian revision + --source build a source package instead of a binary deb package + --with-system-certs integrate with the system's keystore + --jce-policy FILE Replace cryptography files with versions from FILE - --help display this help and exit - --version output version information and exit + --help display this help and exit + --version output version information and exit EOF } @@ -115,6 +120,10 @@ while [[ $# -gt 0 && "x$1" == x--* ]]; do elif [[ "x$1" == x--help ]]; then print_usage exit 0 + elif [[ "x$1" == x--jce-policy ]]; then + [ $# -le 1 ] && missing_argument "$1" + shift + jce_archive="$1" elif [[ "x$1" == x--full-name ]]; then [ $# -le 1 ] && missing_argument "$1" shift @@ -123,6 +132,14 @@ while [[ $# -gt 0 && "x$1" == x--* ]]; do [ $# -le 1 ] && missing_argument "$1" shift maintainer_email="$1" + elif [[ "x$1" == x--distribution ]]; then + [ $# -le 1 ] && missing_argument "$1" + shift + distribution="$1" + elif [[ "x$1" == x--priority ]]; then + [ $# -le 1 ] && missing_argument "$1" + shift + priority_override="$1" elif [[ "x$1" == x--revision ]]; then [ $# -le 1 ] && missing_argument "$1" shift @@ -131,6 +148,8 @@ while [[ $# -gt 0 && "x$1" == x--* ]]; do genchanges="true" elif [[ "x$1" == x--source ]]; then build_source="true" + elif [[ "x$1" == x--with-system-certs ]]; then + create_cert_softlinks="true" else unrecognized_option "$1" fi @@ -159,6 +178,9 @@ archive_name="$( basename "$archive" )" archive_dir="$( cd "$( dirname "$archive" )" ; pwd )" archive_path="$archive_dir/$archive_name" +jce_name="$( basename "$jce_archive" )" +jce_dir="$( cd "$( dirname "$jce_archive" )" ; pwd )" +jce_path="$jce_dir/$jce_name" # error handling