From 7e83307cd555f364c8d96b63d2b8626e8d998f3c Mon Sep 17 00:00:00 2001 From: sturm Date: Fri, 9 Jan 2004 20:49:36 +0000 Subject: [PATCH] don't touch /root/.mbscore in fake @extra --- games/moon-buggy/patches/patch-Makefile_in | 11 +++++++++++ games/moon-buggy/pkg/DEINSTALL | 4 ++-- games/moon-buggy/pkg/PLIST | 3 ++- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 games/moon-buggy/patches/patch-Makefile_in diff --git a/games/moon-buggy/patches/patch-Makefile_in b/games/moon-buggy/patches/patch-Makefile_in new file mode 100644 index 00000000000..21952e52d5d --- /dev/null +++ b/games/moon-buggy/patches/patch-Makefile_in @@ -0,0 +1,11 @@ +$OpenBSD: patch-Makefile_in,v 1.1 2004/01/09 20:49:36 sturm Exp $ +--- Makefile.in.orig 2004-01-09 21:17:06.000000000 +0100 ++++ Makefile.in 2004-01-09 21:17:19.000000000 +0100 +@@ -661,7 +661,6 @@ install-data-hook: + || chmod 664 "$(DESTDIR)$(scoredir)/mbscore" ; } \ + && chmod 575 "$(DESTDIR)$(scoredir)" ; \ + fi +- $(DESTDIR)$(bindir)/moon-buggy -c + + uninstall-local: + rm -f $(DESTDIR)$(scoredir)/mbscore diff --git a/games/moon-buggy/pkg/DEINSTALL b/games/moon-buggy/pkg/DEINSTALL index 88c914e908f..ff330eb5f7a 100644 --- a/games/moon-buggy/pkg/DEINSTALL +++ b/games/moon-buggy/pkg/DEINSTALL @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/03/18 20:07:43 naddy Exp $ +# $OpenBSD: DEINSTALL,v 1.2 2004/01/09 20:49:36 sturm Exp $ # # moon-buggy de-installation @@ -34,7 +34,7 @@ fi # case $2 in DEINSTALL) - if [ -d $SCORE_DIR ]; then + if [ $PKG_DELETE_EXTRA != "Yes" -a -d $SCORE_DIR ]; then do_notice "$1" fi ;; diff --git a/games/moon-buggy/pkg/PLIST b/games/moon-buggy/pkg/PLIST index 022457647f6..15131823925 100644 --- a/games/moon-buggy/pkg/PLIST +++ b/games/moon-buggy/pkg/PLIST @@ -1,4 +1,5 @@ -@comment $OpenBSD: PLIST,v 1.1.1.1 2001/03/18 20:07:42 naddy Exp $ +@comment $OpenBSD: PLIST,v 1.2 2004/01/09 20:49:36 sturm Exp $ bin/moon-buggy man/man6/moon-buggy.6 @exec mkdir -p -m775 /var/games/moon-buggy +@extraunexec rm -fr /var/games/moon-buggy