[gnome-games/gnome-3-4] swell-foop: Install score file with correct permissions



commit 39cc2f3a77dc44dd9f368dd4623eb3a589e07dba
Author: Michael Biebl <biebl debian org>
Date:   Tue May 22 10:39:24 2012 +1200

    swell-foop: Install score file with correct permissions

 swell-foop/src/Makefile.am |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/swell-foop/src/Makefile.am b/swell-foop/src/Makefile.am
index a81e180..dc9cd50 100644
--- a/swell-foop/src/Makefile.am
+++ b/swell-foop/src/Makefile.am
@@ -32,4 +32,9 @@ swell_foop_LDADD =	\
 	$(CLUTTER_GTK_LIBS)	\
 	$(INTLLIBS)
 
+install-exec-hook:
+	-if test "$(setgid)" = "true"; then \
+	  chgrp $(scores_group) $(DESTDIR)$(bindir)/swell-foop && chmod 2555 $(DESTDIR)$(bindir)/swell-foop ;\
+	fi
+
 -include $(top_srcdir)/git.mk



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]