We have a patched version of java-package here that updates the JCE policy files as part of the package build. Can this patch be added to the next release?

diff -r -uw java-package-0.41/lib/j2sdk.sh ../java-package-0.41/lib/j2sdk.sh
--- java-package-0.41/lib/j2sdk.sh    2007-10-25 16:45:40.000000000 -0400
+++ ../java-package-0.41/lib/j2sdk.sh    2008-04-23 12:58:28.360872000 -0400
@@ -46,6 +46,15 @@
    j2se_build
}

+function install_security_policy() {
+    local jce_zip="$1"
+    local dest="$2/jre/lib/security"
+ echo "Updating to unlimited jurisdiction security policy using $jce_zip"
+    for f in {US_export,local}_policy.jar; do
+        unzip -p "$jce_zip" "jce/$f" > "$dest/$f"
+    done
+}
+
# build debian package
function j2sdk_run() {
    echo
@@ -56,6 +65,9 @@
    local target="$install_dir$j2se_base"
    install -d -m 755 "$( dirname "$target" )"
    extract_bin "$archive_path" "$j2se_expected_min_size" "$target"
+    if [[ -n "$jce_policy_zipfile" ]]; then
+        install_security_policy "$jce_policy_zipfile" "$target"
+    fi
    rm -rf "$target/.systemPrefs"
    j2sdk_readme > "$debian_dir/README.Debian"
    j2sdk_changelog > "$debian_dir/changelog"
diff -r -uw java-package-0.41/make-jpkg ../java-package-0.41/make-jpkg
--- java-package-0.41/make-jpkg    2007-09-14 11:24:15.000000000 -0400
+++ ../java-package-0.41/make-jpkg    2008-04-23 12:58:08.697386000 -0400
@@ -73,6 +73,7 @@
--email EMAIL email address used in the maintainer field of the package
  --changes          create a .changes file
  --revision         add debian revision
+  --jce-policy ZIPFILE   replace the jce security policy files

  --help             display this help and exit
  --version          output version information and exit
@@ -112,6 +113,14 @@
    [ $# -le 1 ] && missing_argument "$1"
    shift
    maintainer_email="$1"
+    elif [[ "x$1" == x--jce-policy ]]; then
+    [ $# -le 1 ] && missing_argument "$1"
+    shift
+    jce_policy_zipfile="$1"
+    # make this into an absolute pathname.
+    if ! echo $jce_policy_zipfile | egrep "^/" > /dev/null; then
+        jce_policy_zipfile="$working_dir/$jce_policy_zipfile";
+    fi
    elif [[ "x$1" == x--revision ]]; then
    [ $# -le 1 ] && missing_argument "$1"
    shift




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to