X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=lib%2Fjavase.sh;h=7c328999021d2c7720cbd143cf0a55c2fc89b8ba;hp=0254725a4560d124a1446f1b73942cca9a05cd4b;hb=bdc0b6eb75d6c746f6754d762a4a3a6a27125324;hpb=22b3a1de060127863bd8f454c75c5578483a8d52 diff --git a/lib/javase.sh b/lib/javase.sh index 0254725..7c32899 100644 --- a/lib/javase.sh +++ b/lib/javase.sh @@ -12,7 +12,7 @@ EOF j2se_changelog() { cat << EOF -$j2se_package ($j2se_version) unstable; urgency=low +$j2se_package ($j2se_version) unstable; urgency=medium * This package was created with java-package ($version). @@ -21,12 +21,15 @@ EOF } j2se_control() { + if test -n "$build_depends"; then + build_depends=", $build_depends" + fi cat << EOF Source: $j2se_package Section: non-free/devel Priority: optional Maintainer: $maintainer_name <$maintainer_email> -Build-Depends: debhelper (>= 9) +Build-Depends: debhelper (>= 9)${build_depends} Standards-Version: 3.9.5 EOF @@ -74,10 +77,26 @@ override_dh_compress: dh_compress \$(shell find $j2se_name/man/ -type f ! -name '*.gz' -printf '${jvm_base##/}/%p\n') override_dh_shlibdeps: - dh_shlibdeps --exclude=fxavcodecplugin -l\$(shell find $j2se_name -type f -name '*.so*' -printf '${jvm_base##/}/%h\n' | sort -u | tr '\n' ':' | sed 's/:\$\$//') + dh_shlibdeps --exclude=fxavcodecplugin --exclude=avplugin -l\$(shell find $j2se_name -type f -name '*.so*' -printf '${jvm_base##/}/%h\n' | sort -u | tr '\n' ':' | sed 's/:\$\$//') + +override_dh_strip_nondeterminism: + # Disable dh_strip_nondeterminism to speed up the build EOF } +j2se_doc_rules() { + cat << EOF +#!/usr/bin/make -f + +%: + dh \$@ + +override_dh_strip_nondeterminism: + # Disable dh_strip_nondeterminism to speed up the build +EOF +} + + j2se_install_scripts() { cat > "$debian_dir/postinst" << EOF #!/bin/bash @@ -123,8 +142,16 @@ if [ "\$1" = configure ]; then update-alternatives --install "\$link_path/\$link_name" "\$plugin_name" "\$plugin" $j2se_priority fi } - EOF + if [ "$create_cert_softlinks" == "true" ];then + cat >> "$debian_dir/postinst" << EOF + for subdir in lib/security jre/lib/security;do + if [ -f $jvm_base$j2se_name/\$subdir/cacerts ]; then + ln -sf /etc/ssl/certs/java/cacerts $jvm_base$j2se_name/\$subdir/cacerts + fi + done +EOF + fi eval "$j2se_install" >> "$debian_dir/postinst" cat >> "$debian_dir/postinst" << EOF