X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=jre-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=0000000000000000000000000000000000000000;hp=676d423a032d09b03ff3389ced96362e7b38e917;hb=7802927c9cde95c1824a27128777a5fa71fcbb43;hpb=806bd73abbb510a68648329238b19c515b98cd82 diff --git a/debian/postinst b/debian/postinst deleted file mode 100755 index 676d423..0000000 --- a/debian/postinst +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -set -e - -[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx - -case "$1" in - configure) - # continue below - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - exit 0 - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 0 - ;; -esac - -libdir="/usr/lib/jvm/java-6-sun/jre" - -if [ -x /usr/sbin/chpax ]; then - chpax=/usr/sbin/chpax -elif [ -x /sbin/chpax ]; then - chpax=/sbin/chpax -elif uname -r | grep -q grsec; then - # no chpax found in default places - echo "Warning: Grsecurity kernel detected but no chpax found." - echo "Your java applications might not work until you run" - echo - echo "chpax -rs $libdir/bin/java" - echo - echo "Possibly even" - echo - echo "chpax -rs $libdir/bin/\*" - echo -fi - -if [ ! -x $libdir/bin/java ]; then - echo "java not found in $libdir/bin. _Very_ strange." - exit 0 -fi - -if uname -r | grep -q grsec; then - if [ "$chpax" ] && \ - ! $chpax -v $libdir/bin/java | egrep -q "flags for $libdir/bin/java \(...r.s\)"; then - $chpax -rs $libdir/bin/java - fi -fi