diff options
Diffstat (limited to 'games/dsnake/files')
-rw-r--r-- | games/dsnake/files/pkg-deinstall.in | 9 | ||||
-rw-r--r-- | games/dsnake/files/pkg-install.in | 11 |
2 files changed, 20 insertions, 0 deletions
diff --git a/games/dsnake/files/pkg-deinstall.in b/games/dsnake/files/pkg-deinstall.in new file mode 100644 index 000000000000..e3f75bf9bfe2 --- /dev/null +++ b/games/dsnake/files/pkg-deinstall.in @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$2" = "DEINSTALL" ]; then + for f in %%CONFIG_FILES%%; do + if [ ! -s %%DATADIR%%/$f ]; then + rm -f %%DATADIR%%/$f + fi + done +fi diff --git a/games/dsnake/files/pkg-install.in b/games/dsnake/files/pkg-install.in new file mode 100644 index 000000000000..501c5ba27b11 --- /dev/null +++ b/games/dsnake/files/pkg-install.in @@ -0,0 +1,11 @@ +#!/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 |