Author: frank
Date: 2006-02-16 16:27:33 +0000 (Thu, 16 Feb 2006)
New Revision: 894

Modified:
   tex-common/trunk/debian/postinst.in
   tex-common/trunk/debian/templates
Log:
re-add ls-R handling, only for the font cache directory

Modified: tex-common/trunk/debian/postinst.in
===================================================================
--- tex-common/trunk/debian/postinst.in 2006-02-16 16:17:52 UTC (rev 893)
+++ tex-common/trunk/debian/postinst.in 2006-02-16 16:27:33 UTC (rev 894)
@@ -19,6 +19,7 @@
 ls-R
 '
 FONTCACHE_PERMS=<:=$FONTCACHE_PERMS:>
+FONTCACHE_LSR=/var/cache/fonts/ls-R
 
 
 umask 022
@@ -126,8 +127,13 @@
       db_get tex-common/groupname || true
       GROUP="$RET"
       if [ -n "$GROUP" ] ; then
+       echo -n "Adjusting permissions of TeX font cache ... "
+       test -e $FONTCACHE_LSR || echo "$ls_R_magic" > $FONTCACHE_LSR
+       chmod 664 $FONTCACHE_LSR
+       chown ":$GROUP" $FONTCACHE_LSR
         find /var/cache/fonts -type d -print0 | xargs -0r chmod 
$FONTCACHE_PERMS
        find /var/cache/fonts -type d -print0 | xargs -0r chown "root:$GROUP"
+       echo "done."
       fi
     fi
 

Modified: tex-common/trunk/debian/templates
===================================================================
--- tex-common/trunk/debian/templates   2006-02-16 16:17:52 UTC (rev 893)
+++ tex-common/trunk/debian/templates   2006-02-16 16:27:33 UTC (rev 894)
@@ -8,8 +8,9 @@
  .
  If you accept, you can specify a group name and *all* directories under
  /var/cache/fonts will get ownership root:<groupname> and permission
- bits 3755 (i.e. writeable for the group <groupname>, sticky and setgid
- bit set).
+ bits 3755 (i.e. writable for the group <groupname>, sticky and setgid
+ bit set).  Accordingly, the ls-R index file will be owned and writable
+ by that group.
 
 Template: tex-common/groupname
 Type: string


_______________________________________________
Pkg-tetex-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-tetex-commits

Reply via email to