Subject: Re: pkg/7968: games/xscrabble submission
To: None <mcmahill@mtl.mit.edu>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-pkg
Date: 07/13/1999 02:53:45
On Mon, 12 Jul 1999 mcmahill@mtl.mit.edu wrote:
> so what exactly does the line:
> 
> @exec if [ ! -f /var/games/moria.scores ]; then cp -p
> %D/share/games/moria/scores.dist /var/games/moria.scores; fi
> 
> 
> in /usr/pkgsrc/games/moria/pkg/PLIST
> 
> do?
> 
> I guess I never did understand the exec/unexec stuff in PLIST.
> 
> So should I move the line in my package source Makefile that does
> 
>         @if [ ! -f /var/games/xscrabble.scores ]; then \
>                 ${CP} -p ${WRKSRC}/xscrabble.scores \
>                         /var/games/xscrabble.scores ; \
>         fi
> 
> from the do-install target to post-install?  or should I just add a line
> like yours in PLIST?

It doesn't matter if this code is in do-install or post-install, it will
be executed in any way. Unfortunately, the code has to be in PLIST _too_
so it can be executed when installed from a binary package.


 - Hubert

-- 
NetBSD - Better for your uptime than Viagra