[Pkg-sks-commit] r40 - sks/trunk/sks/debian

chrism at alioth.debian.org chrism at alioth.debian.org
Thu Jun 19 14:39:38 UTC 2008


Author: chrism
Date: 2008-06-19 14:39:37 +0000 (Thu, 19 Jun 2008)
New Revision: 40

Added:
   sks/trunk/sks/debian/postrm
   sks/trunk/sks/debian/prerm
Modified:
   sks/trunk/sks/debian/postinst
Log:
[project @ 41]
cleanups

Original author: fabbione
Date: 2003-12-03 12:17:20.453493+00:00

Modified: sks/trunk/sks/debian/postinst
===================================================================
--- sks/trunk/sks/debian/postinst	2008-06-19 14:38:26 UTC (rev 39)
+++ sks/trunk/sks/debian/postinst	2008-06-19 14:39:37 UTC (rev 40)
@@ -2,9 +2,6 @@
 
 # checking debian-sks account
 
-# this is ugly but it works around a silly problem of grep
-# exits code.
-
 uid=`getent passwd debian-sks | cut -d ":" -f 3`
 home=`getent passwd debian-sks | cut -d ":" -f 6`
 
@@ -39,13 +36,19 @@
     debian-sks
 fi
 
-# chowning things around
-chown -R debian-sks \
-	/var/lib/sks \
-	/var/log/sks \
-	/var/run/sks \
-	/var/spool/sks
+# ch{owning,moding} things around
+# note that sks creates files/dirs with 700/600 permissions
+# permissions as default. so let's stick with it for the
+# installation. We will do nothing across upgrades.
 
+if [ "$2" = "" ]; then
+    for i in lib log run spool; do
+	chown -R debian-sks:nogroup /var/$i/sks
+	chmod -R 700 /var/$i/sks
+	find /var/$i/sks -type f -exec chmod 600 '{}' ';'
+    done
+fi
+
 #DEBHELPER#
 
 exit 0

Added: sks/trunk/sks/debian/postrm
===================================================================
--- sks/trunk/sks/debian/postrm	                        (rev 0)
+++ sks/trunk/sks/debian/postrm	2008-06-19 14:39:37 UTC (rev 40)
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = "purge" ]; then
+    # logs has to be removed according to policy.
+    # not sure about spool/lib stuff
+    rm -rf /var/log/sks
+fi
+
+exit 0


Property changes on: sks/trunk/sks/debian/postrm
___________________________________________________________________
Name: svn:executable
   + *

Added: sks/trunk/sks/debian/prerm
===================================================================
--- sks/trunk/sks/debian/prerm	                        (rev 0)
+++ sks/trunk/sks/debian/prerm	2008-06-19 14:39:37 UTC (rev 40)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+exit 0


Property changes on: sks/trunk/sks/debian/prerm
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-sks-commit mailing list