#!/bin/sh # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package set -e SOURCE_DIR_JAR="/usr/share/java" SOURCE_DIR_SO="/usr/lib/libjmf-java" DEST_DIR_I386="/usr/lib/jvm/java-1.5.0-sun-1.5.0.19/jre/lib/i386" DEST_DIR_EXT="/usr/lib/jvm/java-1.5.0-sun-1.5.0.19/jre/lib/ext" JAR_FILES="jmf.jar mediaplayer.jar multiplayer.jar" SO_FILES="libjmcvid.so libjmmpa.so libjmmpx.so libjmfjawt.so libjmv4l.so libjmmpegv.so libjmutil.so libjmg723.so libjmh261.so libjmdaud.so libjmxlib.so libjmjpeg.so libjmgsm.so libjmh263enc.so " case "$1" in configure) # We have to link .so files and .jar files in jre for f in ${JAR_FILES} ; do ln -sf "$SOURCE_DIR_JAR/$f" "$DEST_DIR_EXT/$f" done for f in ${SO_FILES} ; do ln -sf "$SOURCE_DIR_SO/$f" "$DEST_DIR_I386/$f" done ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0