Subject: Re: A couple of package issues
To: John Darrow <>
From: None <>
List: tech-pkg
Date: 06/20/2001 01:16:05
On Tue, 19 Jun 2001, John Darrow wrote:
> 2. games/xsoldier currently modifies the internal Imakefile to install
> a scorefile in /var/games.  This scorefile isn't listed in PLIST, so
> it gets left over on your build machine, and it means that systems
> installed from a binary package won't have a scorefile installed.
> My question is, is there already a game which has the "definitive" way
> to set up a scorefile?  If not, I'd propose something similar to the
> way used for modifiable files by (e.g.) mail/imp:
> INSTALL script looks to see if a scorefile is already present, and, if
> not, creates it.
> DEINSTALL script looks to see if the scorefile has changed from the
> default (for many cases, the default would be zero-length, so this
> would be easy, others might require some sort of .dist file on a
> case-by-case basis), if not, deletes the scorefile, otherwise prints a
> message indicating the user should delete it if it is no longer
> needed.
> This should hopefully allow package version updates (if the scorefile
> format hasn't changed), without cluttering up systems where the
> scorefile is never used (such as the build system).

I guess you could as well do this in two lines in PLIST...

@exec [ -f /var/games/bla ] || ${INSTALL} -g games -m 664 /var/games/bla
@unexec [ -s /var/games/bla ] || ${RM} -f /var/games/bla

 - Hubert

Hubert Feyrer <>