izbacen chpax
[jre-cn.git] / debian / postinst
diff --git a/debian/postinst b/debian/postinst
deleted file mode 100755 (executable)
index 676d423..0000000
+++ /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