Package: xserver-common, xserver-xfree86, xserver-xorg Version: 6.8.2.dfsg.1-5 Severity: wishlist Tags: patch
When booting a thin client, there is a need to configure the font server automatically at boot time. To make this happen, we preseed the configuration at boot time, and call dexconf to generate a new configuration. One of the values we want to set this way is the URL to the font server on the thin client network. This is at present not possible do to in dexconf. Please add a hidden debconf question to make it possible to specify the font server URL. This patch should make it possible. There are two changes needed to make this happen: - Use the debconf value of this template to add an extra FontPath if it is present. - Add new template $TEMPLATE_BASE/config/fontpath/fontserver to each server package (xserver-xorg and xserver-xfree86). This template should be identical for all packages implementing this feature. --- /usr/src/chroot-sid/usr/bin/dexconf 2005-08-10 11:14:39.000000000 +0200 +++ /tmp/dexconf.new 2005-08-15 20:41:53.579316901 +0200 @@ -247,10 +247,21 @@ fetch $TEMPLATE_BASE/config/write_files_section if [ "$RET" = "true" ]; then + db_get $TEMPLATE_BASE/config/fontpath/fontserver + if [ -n "$RET" ] ; then + FONTSERVER="$RET" + else + FONTSERVER="" + fi exec 4>"$DEXCONFTMPDIR/Files" cat >&4 <<SECTION Section "Files" FontPath "unix/:7100" # local font server +SECTION + if [ -n "$FONTSERVER" ] ; then + echo " FontPath \"$FONTSERVER\"" >&4 + fi + cat >&4 <<SECTION # if the local font server has problems, we can fall back on these FontPath "/usr/lib/X11/fonts/misc" FontPath "/usr/lib/X11/fonts/cyrillic" Here is a proposed debconf template for this variable: Template: xserver-xorg/config/fontpath/fontserver Type: string Description: Extra fontpath URL This is an internal (hidden) debconf question. It should not be translated. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.8-2-386 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages xserver-common depends on: ii debconf [debconf-2.0] 1.4.57 Debian configuration management sy ii libc6 2.3.5-3 GNU C Library: Shared libraries an ii x11-common 6.8.2.dfsg.1-5 X Window System (X.Org) infrastruc xserver-common recommends no packages. -- debconf information: xserver-common/xwrapper/nice_value/error: xserver-common/xwrapper/allowed_users: Console Users Only xserver-common/xwrapper/actual_allowed_users: console xserver-common/xwrapper/nice_value: -10 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]