[subversion-commit] SVN tetex commit + diffs: r208 - tetex-bin/trunk/debian

Frank Küster frank at costa.debian.org
Thu Oct 6 16:28:51 UTC 2005


Author: frank
Date: 2005-10-06 16:28:50 +0000 (Thu, 06 Oct 2005)
New Revision: 208

Modified:
   tetex-bin/trunk/debian/changelog
   tetex-bin/trunk/debian/config.in
   tetex-bin/trunk/debian/postinst.in
   tetex-bin/trunk/debian/templates
Log:
  * Removed the ls-R questions from config.in, they are now in
    tex-common.  [frank]
  * Unregister obsolete debconf questions in postinst [frank]


Modified: tetex-bin/trunk/debian/changelog
===================================================================
--- tetex-bin/trunk/debian/changelog	2005-10-06 15:40:57 UTC (rev 207)
+++ tetex-bin/trunk/debian/changelog	2005-10-06 16:28:50 UTC (rev 208)
@@ -2,13 +2,16 @@
 
   * install the links to omfonts and clean up the manpage and format links
     (closes: #327129) [stubner]
-  * move fmt.d/00tetex.cnf to 01tetex.cnf in preinst
-  * Switched patches to use -p1
+  * move fmt.d/00tetex.cnf to 01tetex.cnf in preinst [frank]
+  * Switched patches to use -p1 [frank]
+  * Removed the ls-R questions from config.in, they are now in
+    tex-common.  [frank]
+  * Unregister obsolete debconf questions in postinst [frank]
   * add manpage for a2ping (closes: #332397) [stubner]
   * add sam2p to Suggests (closes: #332301) [stubner]
   * remove additional manpages meanwhile provided by upstream [stubner]
   
- -- Ralf Stubner <ralf.stubner at web.de>  Thu,  6 Oct 2005 17:36:20 +0200
+ -- Frank Küster <frank at debian.org>  Thu,  6 Oct 2005 18:27:24 +0200
 
 tetex-bin (3.0-7) experimental; urgency=low
 

Modified: tetex-bin/trunk/debian/config.in
===================================================================
--- tetex-bin/trunk/debian/config.in	2005-10-06 15:40:57 UTC (rev 207)
+++ tetex-bin/trunk/debian/config.in	2005-10-06 16:28:50 UTC (rev 208)
@@ -2,7 +2,7 @@
 #!/bin/sh -e
 # 
 # config maintainer script for the Debian <:=${PACKAGE}:> package.
-# $Id: config.in,v 1.1.2.1 2004/12/21 11:29:05 frank Exp $
+# $Id$
 <:=@COPYRIGHT:>//
 
 # Give names to the commandline arguments
@@ -26,24 +26,6 @@
 fi
 
 
-## do the things we have to do always
-
-# ls-R handling (taken from old config script, copyright?)
-db_input low tetex-bin/lsr-perms || true
-db_go
-
-db_get tetex-bin/lsr-perms
-if [ x"$RET" = x"true" ]; then
-    db_beginblock
-    db_input low tetex-bin/groupname || true
-    db_input low tetex-bin/groupperm || true
-    db_input low tetex-bin/userperm || true
-    db_endblock
-fi
-
-db_go
-
-
 # Local Variables:
 # mode: shell-script
 # skeleton-pair: t

Modified: tetex-bin/trunk/debian/postinst.in
===================================================================
--- tetex-bin/trunk/debian/postinst.in	2005-10-06 15:40:57 UTC (rev 207)
+++ tetex-bin/trunk/debian/postinst.in	2005-10-06 16:28:50 UTC (rev 208)
@@ -25,7 +25,10 @@
 LDAT_PATTERNS="<:=$LDAT_PATTERNS:>"
 LDAT_VERSION=2.0.2a-1 # this should be the version of tetex-base
                       # that ships the correct language.dflt    
+OBSOLETE_DEBCONFQ="tetex-bin/lsr-perms tetex-bin/groupname tetex-bin/groupperm tetex-bin/userperm"
 
+
+
 umask 022
 
 # Give names to the commandline arguments - only the first 
@@ -92,7 +95,9 @@
 # upgrade from woody    
     # handling of fmtutil.cnf
     # determine which kind of fmtutil setup was used previously
-    if dpkg --compare-versions "old_version" lt 1.0.7+20021025-7; then
+    # TODO:
+    # what about sarge? It allows a non-generated fmtutil.cnf, too, doesn't it?
+    if dpkg --compare-versions "$old_version" lt 1.0.7+20021025-7; then
       # we use the original file shipped with woody statically
       COMPARE_FMTCNF=$WOODY_FMTCNF
     else
@@ -138,6 +143,18 @@
 	update-alternatives --auto $program
       fi
     done
+
+# upgrade from sarge
+    # deregister unused debconf questions.  We depend on tex-common, therefore it will
+    # be configured first, and since old 3.0 versions are only in experimental, we don't
+    # care about those who upgrade from there and might loose their answers.
+    if dpkg --compare-versions "$old_version" lt 3.0; then
+      # upgrade from sarge or old etch devel versions
+      for question in $OBSOLETE_DEBCONFQ; do
+	db_unregister $question
+      done
+    fi
+
 # normal install
     update-alternatives --install /usr/bin/xdvi.bin xdvi.bin /usr/bin/xdvi.real 30
     update-alternatives --install /usr/bin/oxdvi.bin oxdvi.bin /usr/bin/oxdvi.real 30

Modified: tetex-bin/trunk/debian/templates
===================================================================
--- tetex-bin/trunk/debian/templates	2005-10-06 15:40:57 UTC (rev 207)
+++ tetex-bin/trunk/debian/templates	2005-10-06 16:28:50 UTC (rev 208)
@@ -1,40 +1,3 @@
-Template: tetex-bin/lsr-perms
-Type: boolean
-Default: true
-_Description: Use debconf to manage permissions of ls-R files?
- A lot of font files have to be generated before they can be used by
- xdvi, dvips etc. These files are stored in /var/cache/fonts, so that
- they do not need to be regenerated every time. ls-R files tell the
- system which files already exist, and where to find them.
- .
- Accepting this option will allow you to easily manage the permissions of
- those ls-R files using debconf. Otherwise you will have to manually
- ensure that they get useful but safe permissions.
-
-Template: tetex-bin/groupname
-Type: string
-Default: users
-_Description: Which group should own the ls-R files?
- Modification of ls-R files can be restricted to the members of one group
- which owns them.  To take advantage of this, add the users to the group of
- your choice, and enter that group name here.  The default group, 'users', is
- appropriate for most systems.
-
-Template: tetex-bin/groupperm
-Type: boolean
-Default: true
-_Description: Allow group members to modify ls-R files?
- Accepting this option will allow members of the owning group to modify the
- ls-R files.
-
-Template: tetex-bin/userperm
-Type: boolean
-Default: false
-_Description: Allow all users to modify ls-R files?
- Accepting this option will allow all users to modify ls-R files.  This is
- generally not a good idea for security reasons; you should instead
- restrict such access to members of one group.
-
 Template: tetex-bin/cnf_name
 Type: note
 _Description: Change of name of files in /etc/texmf/texmf.d/




More information about the Pkg-tetex-commits mailing list