[Pkg-nethack-devel] nethack/debian changelog,1.21,1.22 nethack-common.postinst,1.8,1.9 rules,1.9,1.10

Joshua Kwan joshk-guest@quantz.debian.org
Sun, 26 Oct 2003 07:52:48 +0000


Update of /cvsroot/pkg-nethack/nethack/debian
In directory quantz:/tmp/cvs-serv7271/debian

Modified Files:
	changelog nethack-common.postinst rules 
Log Message:
Some experimental dpkg-statoverride stuff. Install recover not setgid
by default.


Index: changelog
===================================================================
RCS file: /cvsroot/pkg-nethack/nethack/debian/changelog,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- changelog	25 Oct 2003 07:05:47 -0000	1.21
+++ changelog	26 Oct 2003 07:52:46 -0000	1.22
@@ -16,8 +16,10 @@
       (Closes: #154750)
     - No longer build-depend on libxaw7-dev | libxaw-dev anymore, just
       libxaw7-dev.
-
- -- Joshua M. Kwan <joshk@triplehelix.org>  Sat, 25 Oct 2003 00:04:17 -0700
+    - Use dpkg-statoverride(1) for storing recover setgid information if
+      enabled.
+    
+ -- Joshua Kwan <joshk@triplehelix.org>  Sun, 26 Oct 2003 00:48:47 -0700
 
 nethack (3.4.2-2) unstable; urgency=low
 

Index: nethack-common.postinst
===================================================================
RCS file: /cvsroot/pkg-nethack/nethack/debian/nethack-common.postinst,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- nethack-common.postinst	24 Oct 2003 23:40:09 -0000	1.8
+++ nethack-common.postinst	26 Oct 2003 07:52:46 -0000	1.9
@@ -85,14 +85,23 @@
     db_get nethack-common/recover-setgid
 
     if [ "$RET" = false ]; then
+      # Remove the statoverride that may have been left over from other
+      # configurations
+      if dpkg-statoverride --list /usr/lib/games/nethack/recover >/dev/null
+        dpkg-statoverride --remove /usr/lib/games/nethack/recover
+      fi
+      
+      # Just in case
       chmod 755 /usr/lib/games/nethack/recover
     else
+      if ! dpkg-statoverride --list /usr/lib/games/nethack/recover >/dev/null
+        dpkg-statoverride --add root games 2755 /usr/lib/games/nethack/recover
+      fi
+      
       chmod 2755 /usr/lib/games/nethack/recover
     fi
     
     db_stop
-    
-    install -d /var/games/nethack/save -o root -g games -m 775
     
     for file in perm record logfile; do
       test -e /var/games/nethack/$file || install -m 0664 -o root -g games \

Index: rules
===================================================================
RCS file: /cvsroot/pkg-nethack/nethack/debian/rules,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- rules	24 Oct 2003 23:39:00 -0000	1.9
+++ rules	26 Oct 2003 07:52:46 -0000	1.10
@@ -132,7 +132,7 @@
 	chgrp -R games debian/nethack-common/var/games/nethack
 	chmod -R 0775 debian/nethack-common/var/games/nethack
 
-	install -m 02755 -o root -g games util/recover \
+	install -m 0755 -o root -g games util/recover \
 	  debian/nethack-common/usr/lib/games/nethack/recover
 
 	install -m 0755 -o root -g root debian/recover-helper \