postinst is in sympow 1.023-5.
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 | #!/bin/sh
# postinst script for sympow
set -e
SYMPOW=/usr/bin/sympow
ENDIANTUPLE=$($SYMPOW -dump-endiantuple)
SYMPOW_PKGCACHEDIR=/var/cache/sympow
SYMPOW_PKGCACHEDATADIR=$SYMPOW_PKGCACHEDIR/datafiles
SYMPOW_PKGCACHEDATABINDIR=$SYMPOW_PKGCACHEDATADIR/$ENDIANTUPLE
case "${1}" in
configure)
if [ ! -d $SYMPOW_PKGCACHEDIR ]; then
mkdir -p $SYMPOW_PKGCACHEDIR
chown 0:0 $SYMPOW_PKGCACHEDIR
chmod ug+rwx $SYMPOW_PKGCACHEDIR
fi
if [ ! -d $SYMPOW_PKGCACHEDATADIR ]; then
mkdir -p $SYMPOW_PKGCACHEDATADIR
chown 0:0 $SYMPOW_PKGCACHEDATADIR
chmod ug+rwx,o+rwt,ug+s $SYMPOW_PKGCACHEDATADIR
fi
if [ ! -d $SYMPOW_PKGCACHEDATABINDIR ]; then
mkdir -p $SYMPOW_PKGCACHEDATABINDIR
chown 0:0 $SYMPOW_PKGCACHEDATABINDIR
chmod ug+rwx,o+rwt,ug+s $SYMPOW_PKGCACHEDATABINDIR
fi
;;
*)
;;
esac
exit 0
|