postinst is in libglide3 2002.04.10ds1-7.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ "$1" = "configure" ] ; then
db_get 'libglide3/driver'
target='/usr/lib/libglide3.so.3'
if [ "$RET" = "h3" ]; then
drv_lib='/usr/lib/glide3/libglide3_h3.so.3.10.0';
elif [ "$RET" = "h5" ]; then
drv_lib='/usr/lib/glide3/libglide3_h5.so.3.10.0';
else
exit 1;
fi
if [ -e $target ] ; then {
if [ -L $target ] ; then {
rm $target;
} else {
db_subst libglide3/error e1 "ERROR!"
db_subst libglide3/error e2 "ERROR: $target exists but is not a symlink!"
db_go
exit 1;
} fi
} fi
ln -s $drv_lib $target
fi
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
|