diff options
author | pav <pav@FreeBSD.org> | 2005-08-29 21:36:14 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-08-29 21:36:14 +0800 |
commit | bf2a4415f1bc2184b6a27b3b6a1b1b6135b0b21b (patch) | |
tree | 8ac38915588e628dcd2ab6de5e5a6e093e86cf75 /games/dsnake/files | |
parent | 46821acb593b61198da741f6bc89050628949795 (diff) | |
download | freebsd-ports-gnome-bf2a4415f1bc2184b6a27b3b6a1b1b6135b0b21b.tar.gz freebsd-ports-gnome-bf2a4415f1bc2184b6a27b3b6a1b1b6135b0b21b.tar.zst freebsd-ports-gnome-bf2a4415f1bc2184b6a27b3b6a1b1b6135b0b21b.zip |
- 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
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 |