From bf2a4415f1bc2184b6a27b3b6a1b1b6135b0b21b Mon Sep 17 00:00:00 2001 From: pav Date: Mon, 29 Aug 2005 13:36:14 +0000 Subject: - 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 --- games/dsnake/files/pkg-deinstall.in | 9 +++++++++ games/dsnake/files/pkg-install.in | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 games/dsnake/files/pkg-deinstall.in create mode 100644 games/dsnake/files/pkg-install.in (limited to 'games/dsnake/files') 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 -- cgit