X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=lib%2Fjavase.sh;h=20756e7be2ce4ce095b33053a9a5645491e29415;hp=a98a915fa4d395ed9436ee6927783875f426c7c9;hb=2a9168df2bfed5c3353dfea956029a572d2a1e9b;hpb=1c05d6f0e114cff3d49a4a32348a0c154012ac1d diff --git a/lib/javase.sh b/lib/javase.sh index a98a915..20756e7 100644 --- a/lib/javase.sh +++ b/lib/javase.sh @@ -3,7 +3,7 @@ j2se_readme() { Package for $j2se_title --- -This package has been automatically created with java-package ($version). +This package has been automatically created with java-package ($version). All files from the original distribution should have been installed in the directory $jvm_base$j2se_name. Please take a look at this directory for further information. @@ -29,7 +29,7 @@ Section: non-free/devel Priority: optional Maintainer: $maintainer_name <$maintainer_email> Build-Depends: debhelper (>= 4.0.0) -Standards-Version: 3.7.2 +Standards-Version: 3.9.5 EOF } @@ -45,7 +45,7 @@ subdirectories. ---------------------------------------------------------------------- EOF - ( + ( cd "$install_dir" find * -type f -iname copyright | while read file; do @@ -122,7 +122,7 @@ fi exit 0 EOF chmod 755 "$debian_dir/postinst" - + cat > "$debian_dir/prerm" << EOF #!/bin/bash @@ -186,7 +186,7 @@ jinfos() { j2se_build() { cd "$tmp" echo "Create debian package:" - + #export DH_VERBOSE=1 export DH_COMPAT=7 export DH_OPTIONS=--tmpdir="$install_dir" @@ -221,7 +221,7 @@ j2se_build() { fi done # suppress some warnings - dh_shlibdeps -l"$ldpath" 2>&1 | + dh_shlibdeps --exclude=fxavcodecplugin -l"$ldpath" 2>&1 | { grep -v "warning: format of \`NEEDED lib.*\.so' not recognized" >&2 || true; } echo " dh_gencontrol" dh_gencontrol @@ -232,7 +232,7 @@ j2se_build() { local deb_filename="$( echo "${j2se_package}_"*.deb )" echo " copy $deb_filename into directory $working_dir/" cp "$deb_filename" "$working_dir/" - if [ -n "$genchanges" ]; then + if [ -n "$genchanges" ]; then echo " dpkg-genchanges" local changes_filename="${deb_filename%.deb}.changes" dpkg-genchanges -b -u. > "$changes_filename" @@ -241,8 +241,10 @@ j2se_build() { fi cat << EOF -The Debian package has been created in the current directory. You can -install the package as root (e.g. dpkg -i $deb_filename). +The Debian package has been created in the current directory. +You can install the package as root with: + + dpkg -i $deb_filename EOF }