freebsd-ports/games/linux-savage/pkg-install

26 lines
611 B
Text
Raw Normal View History

#!/bin/sh
[ "$2" != "POST-INSTALL" ] && exit 0
scripts_file=$PKG_PREFIX/scripts.log
laspatch_file=$PKG_PREFIX/updater/lastpatch.txt
patchindex_file=$PKG_PREFIX/updater/patchindex.txt
if ! [ -e $scripts_file ]; then
touch $scripts_file
chown root:wheel $scripts_file 2>/dev/null
chmod 666 $scripts_file
fi
if ! [ -e $laspatch_file ]; then
echo "savage20031022a-patch.tar.gz" > $laspatch_file
chown root:wheel $laspatch_file 2>/dev/null
chmod 666 $laspatch_file
fi
if ! [ -e $patchindex_file ]; then
touch $patchindex_file
chown root:wheel $patchindex_file 2>/dev/null
chmod 666 $patchindex_file
fi