Import zarafa-libvmime-0.7.1

VMime is a powerful C++ class library for working with MIME messages and
Internet messaging services like IMAP, POP or SMTP.
This is a modified libvmime library for use with the Zarafa Outlook
Sharing service.

"just do it" robert@, ok jasper@
This commit is contained in:
ajacoutot 2009-02-16 09:42:47 +00:00
parent 396c2bfc5e
commit e3728e9aa3
16 changed files with 356 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
COMMENT= modified libvmime library for Zarafa
DISTNAME= libvmime-0.7.1
PKGNAME= zarafa-${DISTNAME}
CATEGORIES= mail devel
# We patched the source to rename the libraries so that this package can
# cohabitate with the "official" one (i.e. devel/libvmime).
SHARED_LIBS+= vmime-zarafa 0.0 # .7.1
EXTRACT_SUFX= .tar.bz2
USE_LIBTOOL= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
EXTRA_CFLAGS="${CFLAGS}"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--includedir=${PREFIX}/include/zarafa \
--enable-messaging \
--enable-messaging-proto-pop3 \
--enable-messaging-proto-smtp \
--enable-messaging-proto-imap \
--enable-messaging-proto-maildir \
--enable-messaging-proto-sendmail \
--enable-platform-posix
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (zarafa/libvmime-0.7.1.tar.bz2) = gfBqdx0t4B1ZgmNYOOtfag==
RMD160 (zarafa/libvmime-0.7.1.tar.bz2) = JZmDyIRBCMgEC8uuLqU+RTqBESQ=
SHA1 (zarafa/libvmime-0.7.1.tar.bz2) = MP773THC+kaXaYTxjU0hvzwuwgo=
SHA256 (zarafa/libvmime-0.7.1.tar.bz2) = /DR2rsVlNBWUx8TcqYJTlpW2HsuSpDjxmGDpEwygGeM=
SIZE (zarafa/libvmime-0.7.1.tar.bz2) = 418302

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- Makefile.in.orig Sun Oct 12 10:29:08 2008
+++ Makefile.in Sun Oct 12 10:29:51 2008
@@ -483,7 +483,7 @@ info: info-recursive
info-am:
-install-data-am: install-docDATA install-pkgconfigDATA
+install-data-am:
install-exec-am:

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- src/Makefile.in.orig Wed Jan 28 22:49:26 2009
+++ src/Makefile.in Wed Jan 28 22:49:52 2009
@@ -357,7 +357,7 @@ target_vendor = @target_vendor@
AUTOMAKE_OPTIONS = no-dependencies foreign
INTERNALS =
INCLUDES = -I$(top_srcdir) -I$(srcdir) @PKGCONFIG_CFLAGS@ @EXTRA_CFLAGS@
-lib_LTLIBRARIES = libvmime.la
+lib_LTLIBRARIES = libvmime-zarafa.la
libvmime_la_LDFLAGS = -export-dynamic -version-info @LIBRARY_VERSION@ @PKGCONFIG_LIBS@ @EXTRA_LIBS@
libvmime_la_SOURCES = address.cpp \
addressList.cpp \
@@ -494,7 +494,7 @@ clean-libLTLIBRARIES:
echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \
done
-libvmime.la: $(libvmime_la_OBJECTS) $(libvmime_la_DEPENDENCIES)
+libvmime-zarafa.la: $(libvmime_la_OBJECTS) $(libvmime_la_DEPENDENCIES)
$(CXXLINK) -rpath $(libdir) $(libvmime_la_LDFLAGS) $(libvmime_la_OBJECTS) $(libvmime_la_LIBADD) $(LIBS)
mostlyclean-compile:

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_charset_cpp,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- src/charset.cpp.orig Wed Jan 7 17:01:29 2009
+++ src/charset.cpp Wed Jan 7 17:01:43 2009
@@ -190,7 +190,7 @@ void charset::iconvert(const STRINGF& in, STRINGT& out
{
out.clear();
- char buffer[65536];
+ char buffer[4096];
const char* inBuffer = static_cast <const char*>(in.data());
size_t inBytesLeft = in.length();

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_encoderB64_cpp,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- src/encoderB64.cpp.orig Thu Jan 8 14:37:22 2009
+++ src/encoderB64.cpp Thu Jan 8 14:37:30 2009
@@ -80,7 +80,7 @@ const utility::stream::size_type encoderB64::encode(ut
const int maxLineLength = std::min(propMaxLineLength, 76);
// Process data
- utility::stream::value_type buffer[65536];
+ utility::stream::value_type buffer[4096];
utility::stream::size_type bufferLength = 0;
utility::stream::size_type bufferPos = 0;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_messaging_imap_IMAPFolder_cpp,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- src/messaging/imap/IMAPFolder.cpp.orig Thu Jan 8 14:38:05 2009
+++ src/messaging/imap/IMAPFolder.cpp Thu Jan 8 14:38:12 2009
@@ -1131,7 +1131,7 @@ void IMAPFolder::addMessage(utility::inputStream& is,
if (progress)
progress->start(total);
- char buffer[65536];
+ char buffer[4096];
while (!is.eof())
{

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_messaging_maildir_maildirFolder_cpp,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- src/messaging/maildir/maildirFolder.cpp.orig Thu Jan 8 14:38:19 2009
+++ src/messaging/maildir/maildirFolder.cpp Thu Jan 8 14:38:26 2009
@@ -956,7 +956,7 @@ void maildirFolder::copyMessageImpl(const utility::fil
utility::auto_ptr <utility::fileWriter> fw = file->getFileWriter();
utility::auto_ptr <utility::outputStream> os = fw->getOutputStream();
- utility::stream::value_type buffer[65536];
+ utility::stream::value_type buffer[4096];
utility::stream::size_type total = 0;
while (!is.eof())

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_messaging_pop3_POP3Store_cpp,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- src/messaging/pop3/POP3Store.cpp.orig Thu Jan 8 14:37:49 2009
+++ src/messaging/pop3/POP3Store.cpp Thu Jan 8 14:38:00 2009
@@ -447,7 +447,7 @@ void POP3Store::readResponse(utility::outputStream& os
}
// Receive data from the socket
- utility::stream::value_type buffer[65536];
+ utility::stream::value_type buffer[4096];
const utility::stream::size_type read = is.read(buffer, sizeof(buffer));
if (read == 0) // buffer is empty

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_utility_stream_cpp,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- src/utility/stream.cpp.orig Thu Jan 8 14:37:36 2009
+++ src/utility/stream.cpp Thu Jan 8 14:37:44 2009
@@ -57,7 +57,7 @@ const stream::size_type bufferedStreamCopy(inputStream
const stream::size_type bufferedStreamCopy(inputStream& is, outputStream& os,
const stream::size_type length, progressionListener* progress)
{
- stream::value_type buffer[65536];
+ stream::value_type buffer[4096];
stream::size_type total = 0;
if (progress != NULL)

View File

@ -0,0 +1,31 @@
$OpenBSD: patch-vmime_Makefile_in,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- vmime/Makefile.in.orig Wed Jun 22 00:11:35 2005
+++ vmime/Makefile.in Sun Oct 12 11:02:05 2008
@@ -186,7 +186,7 @@ target_vendor = @target_vendor@
# File automatically generated by SConstruct ('scons autotools')
# DOT NOT EDIT!
-libvmimeincludedir = $(prefix)/include/@GENERIC_LIBRARY_NAME@
+libvmimeincludedir = $(prefix)/include/zarafa/@GENERIC_LIBRARY_NAME@
nobase_libvmimeinclude_HEADERS = address.hpp \
addressList.hpp \
attachment.hpp \
@@ -305,9 +305,6 @@ nobase_libvmimeinclude_HEADERS = address.hpp \
messaging/maildir/maildirMessage.hpp \
messaging/maildir/maildirUtils.hpp \
messaging/sendmail/sendmailTransport.hpp \
- platforms/windows/windowsFile.hpp \
- platforms/windows/windowsHandler.hpp \
- platforms/windows/windowsSocket.hpp \
platforms/posix/posixChildProcess.hpp \
platforms/posix/posixFile.hpp \
platforms/posix/posixHandler.hpp \
@@ -431,7 +428,7 @@ distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
- $(mkdir_p) $(distdir)/mdn $(distdir)/messaging $(distdir)/messaging/imap $(distdir)/messaging/maildir $(distdir)/messaging/pop3 $(distdir)/messaging/sendmail $(distdir)/messaging/smtp $(distdir)/misc $(distdir)/platforms/posix $(distdir)/platforms/windows $(distdir)/utility
+ $(mkdir_p) $(distdir)/mdn $(distdir)/messaging $(distdir)/messaging/imap $(distdir)/messaging/maildir $(distdir)/messaging/pop3 $(distdir)/messaging/sendmail $(distdir)/messaging/smtp $(distdir)/misc $(distdir)/platforms/posix $(distdir)/utility
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-vmime_platforms_posix_posixChildProcess_hpp,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- vmime/platforms/posix/posixChildProcess.hpp.orig Sun Oct 12 10:19:49 2008
+++ vmime/platforms/posix/posixChildProcess.hpp Sun Oct 12 10:20:20 2008
@@ -23,6 +23,10 @@
#include "vmime/utility/childProcess.hpp"
+#ifdef __OpenBSD__
+#include <sys/types.h>
+#include <signal.h>
+#endif
namespace vmime {
namespace platforms {

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-vmime_platforms_posix_posixSocket_hpp,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- vmime/platforms/posix/posixSocket.hpp.orig Thu Jan 8 14:38:48 2009
+++ vmime/platforms/posix/posixSocket.hpp Thu Jan 8 14:38:55 2009
@@ -51,7 +51,7 @@ class posixSocket : public vmime::messaging::socket (p
private:
- char m_buffer[65536];
+ char m_buffer[4096];
int m_desc;
};

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-vmime_platforms_windows_windowsSocket_hpp,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
--- vmime/platforms/windows/windowsSocket.hpp.orig Thu Jan 8 14:38:34 2009
+++ vmime/platforms/windows/windowsSocket.hpp Thu Jan 8 14:38:41 2009
@@ -51,7 +51,7 @@ class windowsSocket : public vmime::messaging::socket
void sendRaw(const char* buffer, const int count);
private:
- char m_buffer[65536];
+ char m_buffer[4096];
SOCKET m_desc;
};

View File

@ -0,0 +1,4 @@
VMime is a powerful C++ class library for working with MIME messages and
Internet messaging services like IMAP, POP or SMTP.
This is a modified libvmime library for use with the Zarafa Outlook
Sharing service.

View File

@ -0,0 +1,140 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/02/16 09:42:47 ajacoutot Exp $
include/zarafa/
include/zarafa/vmime/
include/zarafa/vmime/address.hpp
include/zarafa/vmime/addressList.hpp
include/zarafa/vmime/attachment.hpp
include/zarafa/vmime/base.hpp
include/zarafa/vmime/body.hpp
include/zarafa/vmime/bodyPart.hpp
include/zarafa/vmime/charset.hpp
include/zarafa/vmime/component.hpp
include/zarafa/vmime/config.hpp
include/zarafa/vmime/constants.hpp
include/zarafa/vmime/contentDisposition.hpp
include/zarafa/vmime/contentDispositionField.hpp
include/zarafa/vmime/contentHandler.hpp
include/zarafa/vmime/contentTypeField.hpp
include/zarafa/vmime/dateTime.hpp
include/zarafa/vmime/defaultAttachment.hpp
include/zarafa/vmime/defaultParameter.hpp
include/zarafa/vmime/disposition.hpp
include/zarafa/vmime/emptyContentHandler.hpp
include/zarafa/vmime/encoder.hpp
include/zarafa/vmime/encoder7bit.hpp
include/zarafa/vmime/encoder8bit.hpp
include/zarafa/vmime/encoderB64.hpp
include/zarafa/vmime/encoderBinary.hpp
include/zarafa/vmime/encoderDefault.hpp
include/zarafa/vmime/encoderFactory.hpp
include/zarafa/vmime/encoderQP.hpp
include/zarafa/vmime/encoderUUE.hpp
include/zarafa/vmime/encoding.hpp
include/zarafa/vmime/exception.hpp
include/zarafa/vmime/fileAttachment.hpp
include/zarafa/vmime/genericField.hpp
include/zarafa/vmime/genericParameter.hpp
include/zarafa/vmime/header.hpp
include/zarafa/vmime/headerField.hpp
include/zarafa/vmime/headerFieldFactory.hpp
include/zarafa/vmime/htmlTextPart.hpp
include/zarafa/vmime/mailbox.hpp
include/zarafa/vmime/mailboxField.hpp
include/zarafa/vmime/mailboxGroup.hpp
include/zarafa/vmime/mailboxList.hpp
include/zarafa/vmime/mdn/
include/zarafa/vmime/mdn/MDNHelper.hpp
include/zarafa/vmime/mdn/MDNInfos.hpp
include/zarafa/vmime/mdn/receivedMDNInfos.hpp
include/zarafa/vmime/mdn/sendableMDNInfos.hpp
include/zarafa/vmime/mediaType.hpp
include/zarafa/vmime/message.hpp
include/zarafa/vmime/messageBuilder.hpp
include/zarafa/vmime/messageId.hpp
include/zarafa/vmime/messageIdSequence.hpp
include/zarafa/vmime/messageParser.hpp
include/zarafa/vmime/messaging/
include/zarafa/vmime/messaging/authHelper.hpp
include/zarafa/vmime/messaging/authenticationInfos.hpp
include/zarafa/vmime/messaging/authenticator.hpp
include/zarafa/vmime/messaging/defaultAuthenticator.hpp
include/zarafa/vmime/messaging/events.hpp
include/zarafa/vmime/messaging/folder.hpp
include/zarafa/vmime/messaging/imap/
include/zarafa/vmime/messaging/imap/IMAPConnection.hpp
include/zarafa/vmime/messaging/imap/IMAPFolder.hpp
include/zarafa/vmime/messaging/imap/IMAPMessage.hpp
include/zarafa/vmime/messaging/imap/IMAPParser.hpp
include/zarafa/vmime/messaging/imap/IMAPStore.hpp
include/zarafa/vmime/messaging/imap/IMAPTag.hpp
include/zarafa/vmime/messaging/imap/IMAPUtils.hpp
include/zarafa/vmime/messaging/maildir/
include/zarafa/vmime/messaging/maildir/maildirFolder.hpp
include/zarafa/vmime/messaging/maildir/maildirMessage.hpp
include/zarafa/vmime/messaging/maildir/maildirStore.hpp
include/zarafa/vmime/messaging/maildir/maildirUtils.hpp
include/zarafa/vmime/messaging/message.hpp
include/zarafa/vmime/messaging/pop3/
include/zarafa/vmime/messaging/pop3/POP3Folder.hpp
include/zarafa/vmime/messaging/pop3/POP3Message.hpp
include/zarafa/vmime/messaging/pop3/POP3Store.hpp
include/zarafa/vmime/messaging/sendmail/
include/zarafa/vmime/messaging/sendmail/sendmailTransport.hpp
include/zarafa/vmime/messaging/service.hpp
include/zarafa/vmime/messaging/serviceFactory.hpp
include/zarafa/vmime/messaging/serviceInfos.hpp
include/zarafa/vmime/messaging/session.hpp
include/zarafa/vmime/messaging/simpleAuthenticator.hpp
include/zarafa/vmime/messaging/smtp/
include/zarafa/vmime/messaging/smtp/SMTPTransport.hpp
include/zarafa/vmime/messaging/socket.hpp
include/zarafa/vmime/messaging/store.hpp
include/zarafa/vmime/messaging/timeoutHandler.hpp
include/zarafa/vmime/messaging/transport.hpp
include/zarafa/vmime/misc/
include/zarafa/vmime/misc/importanceHelper.hpp
include/zarafa/vmime/options.hpp
include/zarafa/vmime/parameter.hpp
include/zarafa/vmime/parameterFactory.hpp
include/zarafa/vmime/parameterizedHeaderField.hpp
include/zarafa/vmime/parserHelpers.hpp
include/zarafa/vmime/path.hpp
include/zarafa/vmime/plainTextPart.hpp
include/zarafa/vmime/platformDependant.hpp
include/zarafa/vmime/platforms/
include/zarafa/vmime/platforms/posix/
include/zarafa/vmime/platforms/posix/posixChildProcess.hpp
include/zarafa/vmime/platforms/posix/posixFile.hpp
include/zarafa/vmime/platforms/posix/posixHandler.hpp
include/zarafa/vmime/platforms/posix/posixSocket.hpp
include/zarafa/vmime/propertySet.hpp
include/zarafa/vmime/relay.hpp
include/zarafa/vmime/standardFields.hpp
include/zarafa/vmime/standardParams.hpp
include/zarafa/vmime/streamContentHandler.hpp
include/zarafa/vmime/stringContentHandler.hpp
include/zarafa/vmime/text.hpp
include/zarafa/vmime/textPart.hpp
include/zarafa/vmime/textPartFactory.hpp
include/zarafa/vmime/typeAdapter.hpp
include/zarafa/vmime/types.hpp
include/zarafa/vmime/utility/
include/zarafa/vmime/utility/childProcess.hpp
include/zarafa/vmime/utility/datetimeUtils.hpp
include/zarafa/vmime/utility/file.hpp
include/zarafa/vmime/utility/filteredStream.hpp
include/zarafa/vmime/utility/md5.hpp
include/zarafa/vmime/utility/path.hpp
include/zarafa/vmime/utility/progressionListener.hpp
include/zarafa/vmime/utility/random.hpp
include/zarafa/vmime/utility/smartPtr.hpp
include/zarafa/vmime/utility/stream.hpp
include/zarafa/vmime/utility/stringProxy.hpp
include/zarafa/vmime/utility/stringUtils.hpp
include/zarafa/vmime/utility/url.hpp
include/zarafa/vmime/utility/urlUtils.hpp
include/zarafa/vmime/vmime.hpp
include/zarafa/vmime/word.hpp
lib/libvmime-zarafa.a
lib/libvmime-zarafa.la
@lib lib/libvmime-zarafa.so.${LIBvmime-zarafa_VERSION}