postinst is in libvlc-bin 3.0.1-3build1.
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 | #!/bin/sh
set -e
run_vlc_cache_gen() {
if ! test -d /usr/lib/x86_64-linux-gnu/vlc/plugins
then
return
fi
files=`find /usr/lib/x86_64-linux-gnu/vlc/plugins -name '*.so' -type f -print -quit`
if test -n "$files"
then
# run vlc-cache-gen since there are plugins
if ! /usr/lib/x86_64-linux-gnu/vlc/vlc-cache-gen /usr/lib/x86_64-linux-gnu/vlc/plugins
then
echo "WARNING: Regenerating VLC plugin cache failed."
echo "Please run '/usr/lib/x86_64-linux-gnu/vlc/vlc-cache-gen /usr/lib/x86_64-linux-gnu/vlc/plugins' manually."
fi
else
# no plugins, so remove plugins.dat
rm -f /usr/lib/x86_64-linux-gnu/vlc/plugins/plugins.dat
fi
}
case "$1" in
triggered)
run_vlc_cache_gen
exit 0
;;
configure)
dpkg-trigger /usr/lib/x86_64-linux-gnu/vlc/plugins
;;
esac
|