summaryrefslogtreecommitdiff
path: root/mail/balsa
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2007-09-20 20:50:48 +0000
committerwiz <wiz@pkgsrc.org>2007-09-20 20:50:48 +0000
commit4bd293377e125e4d7713d2edc869bbd084fa4865 (patch)
tree7dc12b7133089fd747451522d34bc1c7ea352112 /mail/balsa
parent5dc67c435434bb6ada03834fcb4be7556d403477 (diff)
downloadpkgsrc-4bd293377e125e4d7713d2edc869bbd084fa4865.tar.gz
Move balsa2 to balsa, to make directory name match PKGNAME.
Diffstat (limited to 'mail/balsa')
-rw-r--r--mail/balsa/DESCR8
-rw-r--r--mail/balsa/Makefile62
-rw-r--r--mail/balsa/PLIST161
-rw-r--r--mail/balsa/distinfo16
-rw-r--r--mail/balsa/options.mk17
-rw-r--r--mail/balsa/patches/patch-aa22
-rw-r--r--mail/balsa/patches/patch-ab14
-rw-r--r--mail/balsa/patches/patch-ac13
-rw-r--r--mail/balsa/patches/patch-ae13
-rw-r--r--mail/balsa/patches/patch-af13
-rw-r--r--mail/balsa/patches/patch-ag18
-rw-r--r--mail/balsa/patches/patch-ah12
-rw-r--r--mail/balsa/patches/patch-ai12
-rw-r--r--mail/balsa/patches/patch-aj12
-rw-r--r--mail/balsa/patches/patch-ak12
-rw-r--r--mail/balsa/patches/patch-ba13
16 files changed, 418 insertions, 0 deletions
diff --git a/mail/balsa/DESCR b/mail/balsa/DESCR
new file mode 100644
index 00000000000..1145d85b9ee
--- /dev/null
+++ b/mail/balsa/DESCR
@@ -0,0 +1,8 @@
+ Balsa is an e-mail reader. This client is part of the GNOME2 desktop
+environment. It supports local mailboxes, POP3 and IMAP. It supports:
+
+ * Local mailboxes (mbox, maildir, mh)
+ * POP3
+ * IMAP
+ * MIME (in progress)
+ * many other things that I can't think of right now! :-)
diff --git a/mail/balsa/Makefile b/mail/balsa/Makefile
new file mode 100644
index 00000000000..fd387b22eb4
--- /dev/null
+++ b/mail/balsa/Makefile
@@ -0,0 +1,62 @@
+# $NetBSD: Makefile,v 1.55 2007/09/20 20:50:49 wiz Exp $
+
+DISTNAME= balsa-2.3.10
+PKGREVISION= 9
+CATEGORIES= mail gnome
+MASTER_SITES= http://balsa.gnome.org/ \
+ ftp://ftp.newton.cx/pub/balsa/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://balsa.gnome.org/
+COMMENT= GNOME2 EMail client
+
+USE_DIRS+= gnome2-1.5
+USE_LIBTOOL= yes
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake intltool msgfmt perl pkg-config
+
+CONFIGURE_ARGS+= --with-gpgme=${BUILDLINK_PREFIX.gpgme:Q}/bin/gpgme-config
+CONFIGURE_ARGS+= --disable-more-warnings
+CONFIGURE_ARGS+= --enable-threads
+CONFIGURE_ARGS+= --enable-pcre
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+CONFIGURE_ENV+= ac_cv_lib_iconv_iconv_open=yes
+
+EGDIR= ${PREFIX}/share/examples/balsa
+.for cnf in balsa.soundlist email.soundlist
+CONF_FILES+= ${EGDIR}/${cnf} ${PKG_SYSCONFDIR}/sound/events/${cnf}
+.endfor
+
+.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
+
+BUILDLINK_TRANSFORM+= rm:-DGNOME_DISABLE_DEPRECATED
+BUILDLINK_TRANSFORM+= rm:-DGNOME_VFS_DISABLE_DEPRECATED
+BUILDLINK_TRANSFORM+= rm:-DGTK_DISABLE_DEPRECATED
+
+BUILDLINK_API_DEPENDS.gmime+= gmime>=2.1.9
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/libbonobo/buildlink3.mk"
+.include "../../devel/libgnome/buildlink3.mk"
+.include "../../devel/libgnomeui/buildlink3.mk"
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../mail/gmime/buildlink3.mk"
+.include "../../mail/libesmtp/buildlink3.mk"
+.include "../../net/ORBit2/buildlink3.mk"
+.include "../../print/libgnomeprint/buildlink3.mk"
+.include "../../print/libgnomeprintui/buildlink3.mk"
+.include "../../security/gpgme/buildlink3.mk"
+.include "../../sysutils/gnome-vfs/buildlink3.mk"
+.include "../../textproc/aspell/buildlink3.mk"
+.include "../../textproc/scrollkeeper/omf.mk"
+.include "../../www/gtkhtml38/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/balsa/PLIST b/mail/balsa/PLIST
new file mode 100644
index 00000000000..55c5d27d526
--- /dev/null
+++ b/mail/balsa/PLIST
@@ -0,0 +1,161 @@
+@comment $NetBSD: PLIST,v 1.7 2007/09/20 20:50:49 wiz Exp $
+bin/balsa
+bin/balsa-ab
+lib/bonobo/servers/GNOME_Balsa.server
+man/man1/balsa.1
+share/applications/balsa.desktop
+share/balsa/hicolor/16x16/apps/balsa-encrypted.png
+share/balsa/hicolor/16x16/apps/balsa-mark-all.png
+share/balsa/hicolor/16x16/apps/balsa-mbox-draft.png
+share/balsa/hicolor/16x16/apps/balsa-mbox-sent.png
+share/balsa/hicolor/16x16/apps/balsa-mbox-tray-empty.png
+share/balsa/hicolor/16x16/apps/balsa-mbox-tray-full.png
+share/balsa/hicolor/16x16/apps/balsa-next-flagged.png
+share/balsa/hicolor/16x16/apps/balsa-next-part.png
+share/balsa/hicolor/16x16/apps/balsa-next-unread.png
+share/balsa/hicolor/16x16/apps/balsa-next.png
+share/balsa/hicolor/16x16/apps/balsa-postpone.png
+share/balsa/hicolor/16x16/apps/balsa-previous-part.png
+share/balsa/hicolor/16x16/apps/balsa-previous.png
+share/balsa/hicolor/16x16/apps/balsa-reply-all.png
+share/balsa/hicolor/16x16/apps/balsa-signature-bad.png
+share/balsa/hicolor/16x16/apps/balsa-signature-good.png
+share/balsa/hicolor/16x16/apps/balsa-signature-notrust.png
+share/balsa/hicolor/16x16/apps/balsa-signature-unknown.png
+share/balsa/hicolor/22x22
+share/balsa/hicolor/24x24/apps/balsa-crypt-check.png
+share/balsa/hicolor/24x24/apps/balsa-encrypt.png
+share/balsa/hicolor/24x24/apps/balsa-encrypted.png
+share/balsa/hicolor/24x24/apps/balsa-mark-all.png
+share/balsa/hicolor/24x24/apps/balsa-marked-new.png
+share/balsa/hicolor/24x24/apps/balsa-next-flagged.png
+share/balsa/hicolor/24x24/apps/balsa-next-part.png
+share/balsa/hicolor/24x24/apps/balsa-next-unread.png
+share/balsa/hicolor/24x24/apps/balsa-next.png
+share/balsa/hicolor/24x24/apps/balsa-postpone.png
+share/balsa/hicolor/24x24/apps/balsa-preview.png
+share/balsa/hicolor/24x24/apps/balsa-previous-part.png
+share/balsa/hicolor/24x24/apps/balsa-previous.png
+share/balsa/hicolor/24x24/apps/balsa-reply-all.png
+share/balsa/hicolor/24x24/apps/balsa-sign.png
+share/balsa/hicolor/24x24/apps/balsa-signature-bad.png
+share/balsa/hicolor/24x24/apps/balsa-signature-good.png
+share/balsa/hicolor/24x24/apps/balsa-signature-notrust.png
+share/balsa/hicolor/24x24/apps/balsa-signature-unknown.png
+share/balsa/hicolor/24x24/apps/balsa-trash-empty.png
+share/balsa/pixmaps/attachment.png
+share/balsa/pixmaps/balsa-logo.png
+share/balsa/pixmaps/balsa-top.png
+share/balsa/pixmaps/balsa-watermark.png
+share/balsa/pixmaps/balsa_icon.png
+share/balsa/pixmaps/balsa_logo.png
+share/examples/balsa/balsa.soundlist
+share/gnome/help/balsa/C/balsa.xml
+share/gnome/help/balsa/C/fdl-appendix.xml
+share/gnome/help/balsa/C/figures/address-book-ldap.png
+share/gnome/help/balsa/C/figures/address-book-modify.png
+share/gnome/help/balsa/C/figures/address-book-start.png
+share/gnome/help/balsa/C/figures/address-book-vcard.png
+share/gnome/help/balsa/C/figures/address-book.png
+share/gnome/help/balsa/C/figures/balsa_logo.png
+share/gnome/help/balsa/C/figures/druid-start.png
+share/gnome/help/balsa/C/figures/example-alias.png
+share/gnome/help/balsa/C/figures/figuresdobaaddress-book-modify.png
+share/gnome/help/balsa/C/figures/main-window-toolbar.png
+share/gnome/help/balsa/C/figures/main-window.png
+share/gnome/help/balsa/C/figures/message-window.png
+share/gnome/help/balsa/C/figures/msg-part-select.png
+share/gnome/help/balsa/C/figures/newmsg-window-attachments.png
+share/gnome/help/balsa/C/figures/newmsg-window-toolbar.png
+share/gnome/help/balsa/C/figures/newmsg-window.png
+share/gnome/help/balsa/C/figures/preferences-window.png
+share/gnome/help/balsa/C/figures/spell-check.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-application-pgp-signature.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-application-pkcs7-mime.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-application-pkcs7-signature.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-application-x-pkcs7-signature.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-message-disposition-notification.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-message-external-body.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-message.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-multipart-alternative.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-multipart-encrypted.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-multipart-signed.png
+share/icons/hicolor/48x48/mimetypes/gnome-mime-multipart.png
+share/idl/Balsa.idl
+share/locale/am/LC_MESSAGES/balsa.mo
+share/locale/az/LC_MESSAGES/balsa.mo
+share/locale/bg/LC_MESSAGES/balsa.mo
+share/locale/ca/LC_MESSAGES/balsa.mo
+share/locale/cs/LC_MESSAGES/balsa.mo
+share/locale/da/LC_MESSAGES/balsa.mo
+share/locale/de/LC_MESSAGES/balsa.mo
+share/locale/el/LC_MESSAGES/balsa.mo
+share/locale/en_CA/LC_MESSAGES/balsa.mo
+share/locale/en_GB/LC_MESSAGES/balsa.mo
+share/locale/es/LC_MESSAGES/balsa.mo
+share/locale/et/LC_MESSAGES/balsa.mo
+share/locale/fi/LC_MESSAGES/balsa.mo
+share/locale/fr/LC_MESSAGES/balsa.mo
+share/locale/ga/LC_MESSAGES/balsa.mo
+share/locale/he/LC_MESSAGES/balsa.mo
+share/locale/hi/LC_MESSAGES/balsa.mo
+share/locale/hr/LC_MESSAGES/balsa.mo
+share/locale/hu/LC_MESSAGES/balsa.mo
+share/locale/it/LC_MESSAGES/balsa.mo
+share/locale/ja/LC_MESSAGES/balsa.mo
+share/locale/ko/LC_MESSAGES/balsa.mo
+share/locale/lt/LC_MESSAGES/balsa.mo
+share/locale/lv/LC_MESSAGES/balsa.mo
+share/locale/ml/LC_MESSAGES/balsa.mo
+share/locale/ms/LC_MESSAGES/balsa.mo
+share/locale/nb/LC_MESSAGES/balsa.mo
+share/locale/ne/LC_MESSAGES/balsa.mo
+share/locale/nl/LC_MESSAGES/balsa.mo
+share/locale/nn/LC_MESSAGES/balsa.mo
+share/locale/no/LC_MESSAGES/balsa.mo
+share/locale/pa/LC_MESSAGES/balsa.mo
+share/locale/pl/LC_MESSAGES/balsa.mo
+share/locale/pt/LC_MESSAGES/balsa.mo
+share/locale/pt_BR/LC_MESSAGES/balsa.mo
+share/locale/ro/LC_MESSAGES/balsa.mo
+share/locale/ru/LC_MESSAGES/balsa.mo
+share/locale/rw/LC_MESSAGES/balsa.mo
+share/locale/sk/LC_MESSAGES/balsa.mo
+share/locale/sl/LC_MESSAGES/balsa.mo
+share/locale/sq/LC_MESSAGES/balsa.mo
+share/locale/sr/LC_MESSAGES/balsa.mo
+share/locale/sr@Latn/LC_MESSAGES/balsa.mo
+share/locale/sv/LC_MESSAGES/balsa.mo
+share/locale/tr/LC_MESSAGES/balsa.mo
+share/locale/uk/LC_MESSAGES/balsa.mo
+share/locale/vi/LC_MESSAGES/balsa.mo
+share/locale/wa/LC_MESSAGES/balsa.mo
+share/locale/zh_CN/LC_MESSAGES/balsa.mo
+share/locale/zh_HK/LC_MESSAGES/balsa.mo
+share/locale/zh_TW/LC_MESSAGES/balsa.mo
+share/omf/balsa/balsa-C.omf
+share/pixmaps/gnome-balsa2.png
+share/sounds/balsa/newmail.wav
+share/sounds/balsa/startup.wav
+@dirrm share/sounds/balsa
+@comment in xdg-dirs: @dirrm share/sounds
+@comment in xdg-dirs: @dirrm share/pixmaps
+@dirrm share/omf/balsa
+@comment in scrollkeeper: @dirrm share/omf
+@comment in ORBit2: @dirrm share/idl
+@comment in hicolor-icon-theme: @dirrm share/icons/hicolor/48x48/mimetypes
+@comment in hicolor-icon-theme: @dirrm share/icons/hicolor
+@dirrm share/gnome/help/balsa/C/figures
+@dirrm share/gnome/help/balsa/C
+@dirrm share/gnome/help/balsa
+@comment in gnome2-dirs: @dirrm share/gnome/help
+@dirrm share/examples/balsa
+@dirrm share/balsa/pixmaps
+@dirrm share/balsa/hicolor/24x24/apps
+@dirrm share/balsa/hicolor/24x24
+@dirrm share/balsa/hicolor/16x16/apps
+@dirrm share/balsa/hicolor/16x16
+@dirrm share/balsa/hicolor
+@dirrm share/balsa
+@comment in xdg-dirs: @dirrm share/applications
+@comment in libbonobo: @dirrm lib/bonobo/servers
diff --git a/mail/balsa/distinfo b/mail/balsa/distinfo
new file mode 100644
index 00000000000..743a2c9260f
--- /dev/null
+++ b/mail/balsa/distinfo
@@ -0,0 +1,16 @@
+$NetBSD: distinfo,v 1.12 2007/09/20 20:50:50 wiz Exp $
+
+SHA1 (balsa-2.3.10.tar.bz2) = 74315661721a7b222403988b2af8fbc690c1ddc4
+RMD160 (balsa-2.3.10.tar.bz2) = 2fba2b3ae62e0fa3c3d8092f559f8ab7a488c22c
+Size (balsa-2.3.10.tar.bz2) = 3273478 bytes
+SHA1 (patch-aa) = 4093290f39ee76d1a02a80c84ecf8d38ddadd3d7
+SHA1 (patch-ab) = 47083f65d404e64ee238bc3e4f3e25008f5f82c8
+SHA1 (patch-ac) = 808f4546204fbc4a23007291637e4b4ca4175db1
+SHA1 (patch-ae) = fcd0ab1c062018b42469b033a98b4575ee2851f3
+SHA1 (patch-af) = 53e77f5f5df0e05f503713f7be163589c2381f07
+SHA1 (patch-ag) = 47036c9108405f25e862ea6402220a70bd0a0cc9
+SHA1 (patch-ah) = 9a17ea3c3f302acf4380c7868ab8c769d9acfc39
+SHA1 (patch-ai) = 44e704eefd63873900609d7c7186469b4b5214d1
+SHA1 (patch-aj) = 4d068d3aa551c11edcc2c7fdc189ebab98a69953
+SHA1 (patch-ak) = a5a5a31d49c1d79610c4ea73557039b2a1b8076d
+SHA1 (patch-ba) = 76b51ced11626e6f36e0763ca64519cc8605c936
diff --git a/mail/balsa/options.mk b/mail/balsa/options.mk
new file mode 100644
index 00000000000..aab7d45426f
--- /dev/null
+++ b/mail/balsa/options.mk
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2007/09/20 20:50:50 wiz Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.balsa
+PKG_SUPPORTED_OPTIONS= ldap ssl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mldap)
+CONFIGURE_ARGS+= --with-ldap
+. include "../../databases/openldap-client/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mssl)
+CONFIGURE_ARGS+= --with-ssl=${BUILDLINK_PREFIX.openssl}
+. include "../../security/openssl/buildlink3.mk"
+.endif
diff --git a/mail/balsa/patches/patch-aa b/mail/balsa/patches/patch-aa
new file mode 100644
index 00000000000..4031c243dca
--- /dev/null
+++ b/mail/balsa/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.13 2007/09/20 20:50:51 wiz Exp $
+
+--- configure.orig 2006-02-11 13:51:23.000000000 +0000
++++ configure
+@@ -23041,7 +23041,7 @@ if test "${ac_cv_lib_esmtp_smtp_start_se
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lesmtp -lpthread $LIBS"
++LIBS="-lesmtp ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -23100,7 +23100,7 @@ fi
+ echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_start_session" >&5
+ echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_start_session" >&6
+ if test $ac_cv_lib_esmtp_smtp_start_session = yes; then
+- LIBS="$LIBS -lesmtp -lpthread"
++ LIBS="$LIBS -lesmtp ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
+ else
+ { { echo "$as_me:$LINENO: error: *** You enabled ESMTP but esmtp library is not found." >&5
+ echo "$as_me: error: *** You enabled ESMTP but esmtp library is not found." >&2;}
diff --git a/mail/balsa/patches/patch-ab b/mail/balsa/patches/patch-ab
new file mode 100644
index 00000000000..5612fd19ed2
--- /dev/null
+++ b/mail/balsa/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.9 2007/09/20 20:50:51 wiz Exp $
+
+--- src/threads.h.orig 2003-01-25 23:04:31.000000000 +1000
++++ src/threads.h
+@@ -21,6 +21,9 @@
+
+ #ifndef __THREADS_H__
+ #define __THREADS_H__
++
++#include <pthread.h>
++
+ /* FIXME: mailbox_lock is really an internal libbalsa mutex. */
+ extern pthread_mutex_t mailbox_lock;
+
diff --git a/mail/balsa/patches/patch-ac b/mail/balsa/patches/patch-ac
new file mode 100644
index 00000000000..7469641c8eb
--- /dev/null
+++ b/mail/balsa/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.3 2007/09/20 20:50:51 wiz Exp $
+
+--- sounds/Makefile.in.orig 2004-11-20 20:58:54.000000000 +0000
++++ sounds/Makefile.in
+@@ -227,7 +227,7 @@ target_alias = @target_alias@
+ balsa_SOUNDS = startup.wav newmail.wav
+ balsasoundsdir = $(datadir)/sounds/balsa
+ balsasounds_DATA = $(balsa_SOUNDS)
+-soundlistdir = $(sysconfdir)/sound/events
++soundlistdir = ${prefix}/share/examples/balsa
+ soundlist_in_files = balsa.soundlist.in
+ soundlist_DATA = $(soundlist_in_files:.soundlist.in=.soundlist)
+ EXTRA_DIST = $(balsa_SOUNDS) $(soundlist_in_files)
diff --git a/mail/balsa/patches/patch-ae b/mail/balsa/patches/patch-ae
new file mode 100644
index 00000000000..9c06eb23625
--- /dev/null
+++ b/mail/balsa/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2007/09/20 20:50:52 wiz Exp $
+
+--- libbalsa/filter-file.c.orig 2004-10-30 09:35:58.000000000 +0000
++++ libbalsa/filter-file.c
+@@ -30,7 +30,7 @@
+ #include "config.h"
+
+ /* define _XOPEN_SOURCE to make strptime visible */
+-#define _XOPEN_SOURCE
++#define _XOPEN_SOURCE 600
+ /* extensions needed additonally on Solaris for strptime */
+ #define __EXTENSIONS__
+ #include <stdlib.h>
diff --git a/mail/balsa/patches/patch-af b/mail/balsa/patches/patch-af
new file mode 100644
index 00000000000..2908c5718f4
--- /dev/null
+++ b/mail/balsa/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2007/09/20 20:50:52 wiz Exp $
+
+--- src/filter-edit-callbacks.c.orig 2003-07-25 20:01:17.000000000 +0200
++++ src/filter-edit-callbacks.c 2003-07-25 20:01:30.000000000 +0200
+@@ -25,7 +25,7 @@
+
+ #include "config.h"
+
+-#define _XOPEN_SOURCE /* glibc2 needs this */
++#define _XOPEN_SOURCE 600 /* glibc2 needs this */
+ /* yellow dog has crappy libc and needs pthread.h to be included here */
+ #ifdef BALSA_USE_THREADS
+ # include <pthread.h>
diff --git a/mail/balsa/patches/patch-ag b/mail/balsa/patches/patch-ag
new file mode 100644
index 00000000000..ec4726d0612
--- /dev/null
+++ b/mail/balsa/patches/patch-ag
@@ -0,0 +1,18 @@
+$NetBSD: patch-ag,v 1.1 2007/09/20 20:50:53 wiz Exp $
+
+--- libbalsa/imap/imap-handle.c.orig 2005-06-11 10:23:54.000000000 +0200
++++ libbalsa/imap/imap-handle.c
+@@ -20,9 +20,13 @@
+
+ #define _POSIX_C_SOURCE 199506L
+ #define _XOPEN_SOURCE 500
++#define _NETBSD_SOURCE 1
+
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#ifdef __NetBSD__
++#include <netinet/in.h>
++#endif
+ #include <netdb.h>
+ #include <glib.h>
+ #include <glib-object.h>
diff --git a/mail/balsa/patches/patch-ah b/mail/balsa/patches/patch-ah
new file mode 100644
index 00000000000..4151f0c9079
--- /dev/null
+++ b/mail/balsa/patches/patch-ah
@@ -0,0 +1,12 @@
+$NetBSD: patch-ah,v 1.1 2007/09/20 20:50:53 wiz Exp $
+
+--- libbalsa/imap/imap-search.c.orig 2005-06-22 22:08:59.000000000 +0200
++++ libbalsa/imap/imap-search.c
+@@ -19,6 +19,7 @@
+
+ #define _POSIX_C_SOURCE 199506L
+ #define _XOPEN_SOURCE 500
++#define _NETBSD_SOURCE 1
+
+ #include <string.h>
+ #include <time.h>
diff --git a/mail/balsa/patches/patch-ai b/mail/balsa/patches/patch-ai
new file mode 100644
index 00000000000..e974e948ac6
--- /dev/null
+++ b/mail/balsa/patches/patch-ai
@@ -0,0 +1,12 @@
+$NetBSD: patch-ai,v 1.1 2007/09/20 20:50:53 wiz Exp $
+
+--- libbalsa/mailbox_mh.c.orig 2005-05-22 23:11:29.000000000 +0200
++++ libbalsa/mailbox_mh.c
+@@ -26,6 +26,7 @@
+ #define _XOPEN_SOURCE_EXTENDED 1
+ /* to compile this on BSD/Darwin */
+ #undef _POSIX_SOURCE
++#define _NETBSD_SOURCE 1
+
+ #include <unistd.h>
+ #include <fcntl.h>
diff --git a/mail/balsa/patches/patch-aj b/mail/balsa/patches/patch-aj
new file mode 100644
index 00000000000..215cea9ff38
--- /dev/null
+++ b/mail/balsa/patches/patch-aj
@@ -0,0 +1,12 @@
+$NetBSD: patch-aj,v 1.1 2007/09/20 20:50:54 wiz Exp $
+
+--- libbalsa/misc.c.orig 2005-06-22 21:01:51.000000000 +0200
++++ libbalsa/misc.c
+@@ -24,6 +24,7 @@
+
+ #define _SVID_SOURCE 1
+ #define _XOPEN_SOURCE 500
++#define _NETBSD_SOURCE 1
+ #include <ctype.h>
+ #include <dirent.h>
+ #include <errno.h>
diff --git a/mail/balsa/patches/patch-ak b/mail/balsa/patches/patch-ak
new file mode 100644
index 00000000000..27689d4370e
--- /dev/null
+++ b/mail/balsa/patches/patch-ak
@@ -0,0 +1,12 @@
+$NetBSD: patch-ak,v 1.1 2007/09/20 20:50:54 wiz Exp $
+
+--- libbalsa/misc.h.orig 2006-02-11 13:54:44.000000000 +0000
++++ libbalsa/misc.h
+@@ -32,6 +32,7 @@
+ #endif
+
+ #ifdef HAVE_PCRE
++# include <pcre.h>
+ # include <pcreposix.h>
+ #else
+ # include <sys/types.h>
diff --git a/mail/balsa/patches/patch-ba b/mail/balsa/patches/patch-ba
new file mode 100644
index 00000000000..1e1dcbf03da
--- /dev/null
+++ b/mail/balsa/patches/patch-ba
@@ -0,0 +1,13 @@
+$NetBSD: patch-ba,v 1.3 2007/09/20 20:50:55 wiz Exp $
+
+--- ./libbalsa/address-book-ldap.c.orig 2005-08-25 23:29:45.000000000 +0200
++++ ./libbalsa/address-book-ldap.c
+@@ -732,7 +731,7 @@ libbalsa_address_book_ldap_modify_addres
+ }
+ /* fall through */
+ default:
+- fprintf(stderr, "ldap_modify for dn=\2%s\" failed[0x%x]: %s\n",
++ fprintf(stderr, "ldap_modify for dn=\"%s\" failed[0x%x]: %s\n",
+ dn, rc, ldap_err2string(rc));
+ }
+ } while(cnt++<1);