Package: ntlmaps Version: 0.9.9.0.1-4 Severity: normal Tags: patch Hy,
We today tried to setup the ntlmaps package and ran into the following issue: Debconf ask for a proxy, that can looks like this: - proxy.your_domain - http://proxy.your_domain Choosing the second option makes the postinstall script die with a sed error nb 2. This is due to the fact that the second option uses /, that does not deal with sed default behaviour. You will find included a patch that corrects this issue and by the way simplifies the sed command usage. Best regard -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.20 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Versions of packages ntlmaps depends on: ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy ii python 2.4.4-2 An interactive high-level object-o ii python-support 0.5.6 automated rebuilding support for p ntlmaps recommends no packages. -- debconf information excluded
--- postinst.orig 2007-02-06 20:46:20.941490726 +0100 +++ postinst 2007-02-06 20:40:55.826586442 +0100 @@ -54,12 +54,13 @@ cp -a -f $CONFIG_FILE $CONFIG_FILE.tmp # update to the new values -sed -e "s/^[[:blank:]]*$LISTENPORT_ENTRY:.*/$LISTENPORT_ENTRY: $LISTENPORT/" \ - -e "s/^[[:blank:]]*$PARENTPROXY_ENTRY:.*/$PARENTPROXY_ENTRY: $PARENTPROXY/" \ - -e "s/^[[:blank:]]*$PARENTPROXYPORT_ENTRY:.*/$PARENTPROXYPORT_ENTRY: $PARENTPROXYPORT/" \ - -e "s/^[[:blank:]]*$NTDOMAIN_ENTRY:.*/$NTDOMAIN_ENTRY: $NTDOMAIN/" \ - -e "s/^[[:blank:]]*$NTUSER_ENTRY:.*/$NTUSER_ENTRY: $NTUSER/" \ - < $CONFIG_FILE > $CONFIG_FILE.tmp +sed -e " + s/^[[:blank:]]*$LISTENPORT_ENTRY:.*/$LISTENPORT_ENTRY: $LISTENPORT/ + s|^[[:blank:]]*$PARENTPROXY_ENTRY:.*|$PARENTPROXY_ENTRY: $PARENTPROXY| + s/^[[:blank:]]*$PARENTPROXYPORT_ENTRY:.*/$PARENTPROXYPORT_ENTRY: $PARENTPROXYPORT/ + s/^[[:blank:]]*$NTDOMAIN_ENTRY:.*/$NTDOMAIN_ENTRY: $NTDOMAIN/ + s/^[[:blank:]]*$NTUSER_ENTRY:.*/$NTUSER_ENTRY: $NTUSER/ + " < $CONFIG_FILE > $CONFIG_FILE.tmp mv -f $CONFIG_FILE.tmp $CONFIG_FILE