freebsd-ports/games/dsnake/files/pkg-install.in
Pav Lucistnik 8c2a3a470d - Also create scores and configuration when installing from a package
- Preserve modified scores and configuration across updates
- Install using ${INSTALL_xxx}, to ensure proper permissions and ownerships
- Pass command-line arguments through the wrapper script
- Replace the shell process with the game, to save some memory while playing
- Install documentation in ${DOCSDIR}, and respect ${NOPORTDOCS}

PR:		ports/84738
Submitted by:	jylefort

- Allow on amd64
2005-08-29 13:36:14 +00:00

11 lines
213 B
Bash

#!/bin/sh
if [ "$2" = "POST-INSTALL" ]; then
for f in %%CONFIG_FILES%%; do
if [ ! -f %%DATADIR%%/$f ]; then
touch %%DATADIR%%/$f
chown root:wheel %%DATADIR%%/$f
chmod 666 %%DATADIR%%/$f
fi
done
fi