preinst is in libqgsttools-p1-touch 5.1.1+git20131205+8230c02-0ubuntu4.
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 | pkg=libqgsttools-p1-touch
divert_dir="/var/lib/$pkg-diverted"
if [ install = "$1" ]; then
if [ ! -d "$divert_dir" ]; then
mkdir -p "$divert_dir"
fi
for version in 1.0.0 1.0 1; do
dpkg-divert --package "$pkg" --add --rename \
--divert \
"$divert_dir"/libqgsttools_p.so.$version.diverted-$pkg \
/usr/lib/x86_64-linux-gnu/libqgsttools_p.so.$version
done
fi
|