$OpenBSD: patch-gnotski_Makefile_in,v 1.5 2009/12/17 09:10:02 ajacoutot Exp $

Install the .scores files into share/ , to @sample them
into /var/games/ later.

--- gnotski/Makefile.in.orig	Thu Dec 17 01:13:43 2009
+++ gnotski/Makefile.in	Thu Dec 17 09:23:56 2009
@@ -425,7 +425,7 @@ psdir = @psdir@
 pyexecdir = @pyexecdir@
 pythondir = @pythondir@
 sbindir = @sbindir@
-scoredir = @scoredir@
+scoredir = ${pkgdatadir}/scores/
 scores_group = @scores_group@
 scores_user = @scores_user@
 setgid = @setgid@
@@ -1060,16 +1060,11 @@ install-scorefiles-local:
 	-$(mkinstalldirs) $(DESTDIR)$(scoredir)
 	-for i in ${SCOREFILES} ; do \
 	  touch             $(DESTDIR)$(scoredir)/gnotski.$$i.scores; \
-	  chown $(scores_user):$(scores_group) $(DESTDIR)$(scoredir)/gnotski.$$i.scores; \
-	  chmod 664         $(DESTDIR)$(scoredir)/gnotski.$$i.scores; \
 	done
 
 install-data-local: install-schemas-local install-scorefiles-local
 
 install-exec-hook:
-	-if test "$(setgid)" = "true"; then \
-	  chgrp $(scores_group) $(DESTDIR)$(bindir)/gnotski && chmod 2555 $(DESTDIR)$(bindir)/gnotski ;\
-	fi
 
 @INTLTOOL_SCHEMAS_RULE@
 @INTLTOOL_DESKTOP_RULE@
