+abook (0.5.6-5) unstable; urgency=low
+
+  * Add Homepage to source control stanca.
+  * Bump Standards-Version to 3.7.3, menu file was already updated.
+  * New debconf translation: Russion by Yuri Kozlov (closes: #451813)
+  * Pull search_ctrl-d_segfault_fix patch from upstream (closes: #462145)
+
+ -- Gerfried Fuchs <rhonda@debian.at>  Thu, 24 Jan 2008 20:01:26 +0100
+
 abook (0.5.6-4) unstable; urgency=low
 
   * New debconf translation: Dutch by Bart Cornelis (closes: #415513)
 
 Section: mail
 Priority: optional
 Maintainer: Gerfried Fuchs <rhonda@debian.at>
-Standards-Version: 3.7.2
-Build-Depends: libncursesw5-dev, libreadline5-dev | libreadline-dev, po-debconf
+Standards-Version: 3.7.3
+Build-Depends: libncursesw5-dev, libreadline5-dev | libreadline-dev, po-debconf, quilt
+Homepage: http://abook.sourceforge.net/
 
 Package: abook
 Architecture: any
 
--- /dev/null
+Index: abook-0.5.6/ui.c
+===================================================================
+--- abook-0.5.6.orig/ui.c
++++ abook-0.5.6/ui.c
+@@ -569,9 +569,13 @@ ui_find(int next)
+       } else {
+               char *s;
+               s = ui_readline("/", findstr, MAX_FIELD_LEN - 1, 0);
+-              strncpy(findstr, s, MAX_FIELD_LEN);
+-              free(s);
+               refresh_screen();
++              if(s == NULL) {
++                      return; /* user cancelled (ctrl-G) */
++              } else {
++                      strncpy(findstr, s, MAX_FIELD_LEN);
++                      free(s);
++              }
+       }
+ 
+       if( (item = find_item(findstr, curitem + !!next, search_fields)) < 0 &&
 
--- /dev/null
+01search_ctrl-d_segfault_fix
 
--- /dev/null
+# translation of ru.po to Russian
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Yuri Kozlov <kozlov.y@gmail.com>, 2007.
+msgid ""
+msgstr ""
+"Project-Id-Version: 0.5.6-4\n"
+"Report-Msgid-Bugs-To: abook@packages.debian.org\n"
+"POT-Creation-Date: 2007-01-22 23:01+0100\n"
+"PO-Revision-Date: 2007-11-18 21:39+0300\n"
+"Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms:  nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid "Do you want to enable abook system wide for mutt?"
+msgstr "Включить общесистемное использование abook в mutt?"
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid ""
+"abook offers the possibility to be used as query backend from within mutt.  "
+"If you acknowledge this question the package will create an /etc/Muttrc.d/"
+"abook.rc file that enables querying the abook database and adding mail "
+"addresses to abook with pressing \"A\" from pager mode."
+msgstr ""
+"abook можно использовать как сервер запросов из mutt. "
+"Если вы ответите утвердительно, то будет создан файл "
+"/etc/Muttrc.d/abook.rc, настройки которого активируют возможность "
+"запросов к базе данных abook и настраивают добавление почтовых адресов "
+"в abook по нажатию клавиши \"A\" из режима просмотра письма."
+
 
 PKG = abook
 TMP = $(CURDIR)/debian/$(PKG)
 
+QUILT_STAMPFN = patch-stamp
+include /usr/share/quilt/quilt.make
 
 CFLAGS = -g -Wall
 INSTALL = install
 #export DH_VERBOSE=1
 
 
-clean:
+clean: unpatch
        $(checkdir)
        $(checkroot)
        rm -rf build-stamp $(TMP) debian/files debian/substvars
 
 
 build: build-stamp
-build-stamp:
+build-stamp: patch-stamp
        $(checkdir)
        ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
                 --infodir=\$${prefix}/share/info