Skip to content
Snippets Groups Projects
  1. Apr 07, 2024
  2. Sep 10, 2023
  3. Oct 06, 2019
  4. Nov 02, 2018
  5. Oct 23, 2018
  6. Oct 22, 2018
  7. Oct 16, 2018
  8. Jan 04, 2017
  9. Sep 11, 2016
  10. Sep 10, 2016
    • Tony Mancill's avatar
      tweak manpage formatting · 47952fa7
      Tony Mancill authored
      47952fa7
    • Tony Mancill's avatar
      update changelog for manpage updates · 054e2a4f
      Tony Mancill authored
      054e2a4f
    • Tony Mancill's avatar
      add --jce-policy to the manpage · d3337d23
      Tony Mancill authored
      Update ordering of options in --help to more closely match manpage.
      d3337d23
    • Tony Mancill's avatar
      freshen the manpage example for JDK 8 · b8341365
      Tony Mancill authored
      b8341365
    • Tony Mancill's avatar
      update changelog · b1811c2a
      Tony Mancill authored
      b1811c2a
    • Tony Mancill's avatar
      apply patch for --jce-policy (Closes: #833301) · bdce5a0b
      Tony Mancill authored
      From 600a834bfb5b36b59b3fd75e01e38abf945651fc Mon Sep 17 00:00:00 2001
      From: Alex Brown <alexpbrown9@gmail.com>
      Date: Tue, 2 Aug 2016 12:38:53 -0400
      Subject: [PATCH] Add --jce-policy option
      
      This should give users the option to add the unlimited strength
      cryptography files to the install. Example:
      
      make-jpkg --jce-policy /tmp/jce_policy-8.zip /tmp/jdk-8u101-linux-x64.tar.gz
      ---
       lib/common.sh |  9 +++++++++
       lib/javase.sh |  3 +++
       make-jpkg     | 10 ++++++++++
       3 files changed, 22 insertions(+)
      
      diff --git a/lib/common.sh b/lib/common.sh
      index 73d729f..ca09f07 100644
      --- a/lib/common.sh
      +++ b/lib/common.sh
      @@ -128,6 +128,15 @@ EOF
           fi
       }
      
      +extract_jce() {
      +  local zip_file="$1"
      +  local dest_dir="$2"
      +
      +  echo "Installing unlimited strength cryptography files using $zip_file"
      +  for f in {US_export,local}_policy.jar; do
      +    unzip -o -j -d "$dest_dir" "$zip_file" "*/$f"
      +  done
      +}
      
       read_maintainer_info() {
           if [ -z "$maintainer_name" ]; then
      diff --git a/lib/javase.sh b/lib/javase.sh
      index ed0745c..6c01270 100644
      --- a/lib/javase.sh
      +++ b/lib/javase.sh
      @@ -293,6 +293,9 @@ j2se_run() {
           local target="$package_dir/$j2se_name"
           install -d -m 755 "$( dirname "$target" )"
           extract_bin "$archive_path" "$j2se_expected_min_size" "$target"
      +    if [[ -n "$jce_archive" ]]; then
      +      extract_jce "$jce_path" "$target/jre/lib/security"
      +    fi
           rm -rf "$target/.systemPrefs"
           echo "9" > "$debian_dir/compat"
           j2se_readme > "$debian_dir/README.Debian"
      diff --git a/make-jpkg b/make-jpkg
      index 6e53003..69d83c9 100755
      --- a/make-jpkg
      +++ b/make-jpkg
      @@ -32,6 +32,7 @@ fi
      
       genchanges=""
       build_source=""
      +jce_archive=""
      
       ### check for run in fakeroot
      
      @@ -79,6 +80,8 @@ Supported java binary distributions currently include:
      
       The following options are recognized:
      
      +  --jce-policy FILE    Replace cryptography files with unlimited strength versions
      +                       from downloaded archive
         --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
      @@ -116,6 +119,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
      @@ -162,6 +169,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
      
      --
      2.8.1
      bdce5a0b
    • Tony Mancill's avatar
      interim changelog · 98306665
      Tony Mancill authored
      98306665
    • Tony Mancill's avatar
      bump std-ver to 3.9.8 · f6de9366
      Tony Mancill authored
      f6de9366
    • Tony Mancill's avatar
      add --distribution patch (Closes: #819537) · 3507a234
      Tony Mancill authored
      Author: Martin Gerhard Loschwitz <m.loschwitz@syseleven.de>
      Date:   Wed Mar 30 10:18:20 2016 +0200
      
      Add the "--distribution" parameter
      
      This commit adds the "--distribution" paramater, effectively allowing to
      specify the target distribution in the changelog of the resulting java
      package. This feature is particularly helpful when dealing with local
      repositories maintained by software such as reprepro and organized based
      on different distributions.
      3507a234
  11. Mar 18, 2016
  12. Mar 17, 2016
Loading