abook stable port information

Package: abook
Version: 0.5.6
Revision: 1002
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 87d25df96864a7c507a4965e6d1da49d
PatchFile: %n.patch
PatchFile-MD5: ba1fd1ba4f16a9b2276f9c0418f67f94
Depends: <<
libgettext3-shlibs (>= 0.14.5-2),
libiconv,
libncurses5-shlibs (>= 5.4-20041023-1006),
libncursesw5-shlibs (>= 5.4-20041023-1001),
ncurses (>= 5.4-20041023-1006),
ncurses-shlibs (>= 5.3-20031018-1501),
readline5-shlibs (>= 5.0-1004)
<<
BuildDepends: <<
fink (>= 0.24.12-1),
gettext-bin (>= 0.14.5-2),
gettext-tools (>= 0.14.5-3),
libgettext3-dev (>= 0.14.5-2),
libiconv-dev,
libncurses5 (>= 5.4-20041023-1006),
libncursesw5 (>= 5.4-20041023-1001),
ncurses (>= 5.4-20041023-1006),
readline5 (>= 5.0-1004)
<<
Suggests: lynx, mutt
ConfigureParams: --with-readline=%p --mandir=%i/share/man --disable-dependency-tracking --with-libiconv-prefix=%p --with-libintl-prefix=%p
DocFiles: ANNOUNCE AUTHORS BUGS COPYING FAQ sample.abookrc INSTALL NEWS README THANKS TODO
Description: Text-based address-book for use with mutt
DescDetail: <<
Designed for use with mutt, abook can also be used on its own.
It can import from ldif, mutt alias, Pine address book
and export to ldif, Pine address book, html, mutt alias,
GnomeCard addressbook, elm alias, plain text and Spruce address book.
It supports i18n enconding.
<<
DescUsage: <<
For help, use the question mark inside abook. Numbers are used
to access a given field while editing a contact. To cycle through
fields, use h. See the man page abook (1) for details.
When importing a file, be aware that shortcut for home directory
is not recognized, but good news, spaces in filenames are recognized.
There is an optional sample.abookrc file in %p/share/doc/abook.
If you want to use/customize it, copy it to $(HOME)/.abook/ and
rename it abookrc. See the man page abookrc (5) for details.
For launching url, default browser is lynx, but you can define it
in abookrc as open to launch your preferred Mac OS X browser.
See the README file in %p/share/doc/abook to customize your
$(HOME)/.muttrc file so that you can request an email address
from abook.
See also the FAQ in %p/share/doc/abook for encoding conversion.
<<
DescPort: <<
The --with-readline option makes it compiled on Mac OS X.
Added libncursesw5, since it is for widec (mutt integration).
Added --disable-dependency-tracking to speed up build.
Changed dependency to readline5.

Upstream patch to ui.c fixes segfault in editor
<<
Homepage: http://abook.sourceforge.net/
License: GPL
DescPackaging: Formerly maintained by Michele Garoche
Maintainer: None

abook stable port .patch

diff -Nurd -x'*~' abook-0.5.6.orig/ui.c abook-0.5.6/ui.c
--- abook-0.5.6.orig/ui.c 2006-04-09 14:57:34.000000000 -0400
+++ abook-0.5.6/ui.c 2007-06-06 21:55:26.000000000 -0400
@@ -569,9 +569,13 @@
} 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 &&

abook _unstable_ port information

Package: abook
Version: 0.5.6
Revision: 1002
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 87d25df96864a7c507a4965e6d1da49d
PatchFile: %n.patch
PatchFile-MD5: ba1fd1ba4f16a9b2276f9c0418f67f94
Depends: <<
libgettext3-shlibs (>= 0.14.5-2),
libiconv,
libncurses5-shlibs (>= 5.4-20041023-1006),
libncursesw5-shlibs (>= 5.4-20041023-1001),
ncurses (>= 5.4-20041023-1006),
ncurses-shlibs (>= 5.3-20031018-1501),
readline5-shlibs (>= 5.0-1004)
<<
BuildDepends: <<
fink (>= 0.24.12-1),
gettext-bin (>= 0.14.5-2),
gettext-tools (>= 0.14.5-3),
libgettext3-dev (>= 0.14.5-2),
libiconv-dev,
libncurses5 (>= 5.4-20041023-1006),
libncursesw5 (>= 5.4-20041023-1001),
ncurses (>= 5.4-20041023-1006),
readline5 (>= 5.0-1004)
<<
Suggests: lynx, mutt
ConfigureParams: --with-readline=%p --mandir=%i/share/man --disable-dependency-tracking --with-libiconv-prefix=%p --with-libintl-prefix=%p
DocFiles: ANNOUNCE AUTHORS BUGS COPYING FAQ sample.abookrc INSTALL NEWS README THANKS TODO
Description: Text-based address-book for use with mutt
DescDetail: <<
Designed for use with mutt, abook can also be used on its own.
It can import from ldif, mutt alias, Pine address book
and export to ldif, Pine address book, html, mutt alias,
GnomeCard addressbook, elm alias, plain text and Spruce address book.
It supports i18n enconding.
<<
DescUsage: <<
For help, use the question mark inside abook. Numbers are used
to access a given field while editing a contact. To cycle through
fields, use h. See the man page abook (1) for details.
When importing a file, be aware that shortcut for home directory
is not recognized, but good news, spaces in filenames are recognized.
There is an optional sample.abookrc file in %p/share/doc/abook.
If you want to use/customize it, copy it to $(HOME)/.abook/ and
rename it abookrc. See the man page abookrc (5) for details.
For launching url, default browser is lynx, but you can define it
in abookrc as open to launch your preferred Mac OS X browser.
See the README file in %p/share/doc/abook to customize your
$(HOME)/.muttrc file so that you can request an email address
from abook.
See also the FAQ in %p/share/doc/abook for encoding conversion.
<<
DescPort: <<
The --with-readline option makes it compiled on Mac OS X.
Added libncursesw5, since it is for widec (mutt integration).
Added --disable-dependency-tracking to speed up build.
Changed dependency to readline5.

Upstream patch to ui.c fixes segfault in editor
<<
Homepage: http://abook.sourceforge.net/
License: GPL
DescPackaging: Formerly maintained by Michele Garoche
Maintainer: None

abook _unstable_ port .patch

diff -Nurd -x'*~' abook-0.5.6.orig/ui.c abook-0.5.6/ui.c
--- abook-0.5.6.orig/ui.c 2006-04-09 14:57:34.000000000 -0400
+++ abook-0.5.6/ui.c 2007-06-06 21:55:26.000000000 -0400
@@ -569,9 +569,13 @@
} 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 &&