Guillaume Rousse <[EMAIL PROTECTED]> writes:
> There is a problem tough in icebreaker rpm: icebreaker.score is installed as
> root.root, altough the %attr directive is games.games in specfile...
>[...]
> [root@silbermann guillaume]# ll /var/lib/games/
> total 0
> -rw-r--r-- 1 root root 0 jui 20 13:54 icebreaker.scores
As it is ghost, this may be an old version of the file (do you have tested your
package or run it as root without the file ?)
> Morevoer, what the use of creating this file both in %install section:
> touch $RPM_BUILD_ROOT%{_localstatedir}/games/icebreaker.scores
> AND in %postun section:
> touch %{_localstatedir}/games/icebreaker.scores
Because rpm is not happy if not created during build of package, and after this
is to make sure the file is created, as during installation rpm do nothing.
> Finally, should not the /var/lib/games directory itself (owned by filesystem
> package) be owned by root.games, with 775 perm, so as allow any game to
> create its own score file if necessary ?
Yes, this could be better effectively.
Fran�ois.