pkgsrc/games/maelstrom-sdl/patches/patch-ab
dholland c614b88159 Put the scorefile in ${VARBASE}/games instead of under ${PREFIX}/share.
It is still mode 666, which is wrong (XXX), but this way:
   - the package will actually install again;
   - the score file is not overwritten every time you recompile/reinstall.

There's also an .if 0 block in the makefile that can be turned on to
install the game setgid so the score file can be mode 664. I'm not
comfortable turning this on without doing at least a basic audit, and
I don't have energy for that at the moment; but it's there and it
works if anyone feels inclined to make that tradeoff locally.

An alternative approach would be to write and install a setgid
scorefile helper program, but that's not really any improvement over
making the scores world writeable

PKGREVISION -> 8.
2011-05-06 05:28:39 +00:00

36 lines
1 KiB
Text

$NetBSD: patch-ab,v 1.4 2011/05/06 05:28:39 dholland Exp $
DESTDIR support.
Install the docs.
Use $(CP).
Don't install default scores file mode 666.
--- Makefile.in.orig 2001-07-23 03:56:05.000000000 +0000
+++ Makefile.in
@@ -432,21 +432,22 @@ maintainer-clean-generic clean mostlycle
# Special install rule for the game
install:
- make install_gamedata target=@GAME_INSTALLDIR@
+ make install_gamedata target=${DESTDIR}@GAME_INSTALLDIR@
+ make install_gamedocs target=${DESTDIR}$(prefix)/share/doc/Maelstrom
install_gamedata:
sh mkinstalldirs $(target)/
- cp -rv Images \
+ $(CP) -R Images \
Maelstrom_Fonts \
Maelstrom_Sounds \
Maelstrom_Sprites \
Maelstrom-Scores \
icon.bmp icon.xpm $(target)/
- chmod 666 $(target)/Maelstrom-Scores
+ chmod 644 $(target)/Maelstrom-Scores
install_gamedocs:
sh mkinstalldirs $(target)/
- cp -rv README* COPYING* Docs* $(target)/
+ $(CP) -R README* COPYING* Docs* $(target)/
# Rule to build tar-gzipped distribution package
$(PACKAGE)-$(VERSION).tar.gz: dist