Import Akonadi 1.9.1.

Akonadi is a PIM layer, which provides an asynchronous API to access all kind
of PIM data (e.g. mails, contacts, events, todos etc.).

It consists of several processes (generally called the Akonadi server) and a
library (called client library) which encapsulates the communication
between the client and the server.

Note: Akonadi creates a cache of different data in ~/.local/share/akonadi,
using one or the other DB backend. By default, it uses (own) SQLite backend,
it behaves best here. If you change DB backend, you will NOT lose your data,
just the cache will need to be regenerated.

The old version in x11/kde4/akonadi will bite the dust soon.

ok landry@
This commit is contained in:
zhuk 2013-04-24 09:05:59 +00:00
parent 0caaa078fe
commit ed2625b991
5 changed files with 116 additions and 0 deletions

View File

@ -0,0 +1,42 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/24 09:05:59 zhuk Exp $
CATEGORIES = productivity
COMMENT = PIM cache and access services
DISTNAME = akonadi-1.9.1
HOMEPAGE = http://community.kde.org/KDE_PIM/Akonadi
SHARED_LIBS = akonadiprotocolinternals 1.0 # 1.0
EXTRACT_SUFX = .tar.bz2
MASTER_SITES = ${MASTER_SITE_KDE:=stable/akonadi/src/}
WANTLIB = c m stdc++
WANTLIB += lib/qt4/QtDBus lib/qt4/QtGui lib/qt4/QtNetwork
WANTLIB += lib/qt4/QtSql lib/qt4/QtXml
WANTLIB += boost_program_options-mt sqlite3 soprano
# LGPLv2+
PERMIT_PACKAGE_CDROM = Yes
MODULES = x11/kde4
MODKDE4_USE =
# We build support for MySQL and PostgreSQL but SQLite
# is our default now.
BUILD_DEPENDS = databases/mysql,-server \
x11/qt4,-mysql \
x11/qt4,-postgresql
RUN_DEPENDS = misc/shared-mime-info
LIB_DEPENDS = databases/soprano>=2.9.0 \
devel/boost
# XXX (buggy) dbconfigtest fails due to SQLITE being default,
# and it doesn't worth to fix
CONFIGURE_ARGS = -DDATABASE_BACKEND:String=SQLITE \
-DINSTALL_QSQLITE_IN_QT_PREFIX:Bool=Yes
TEST_IS_INTERACTIVE = X11
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (akonadi-1.9.1.tar.bz2) = U65JogOcwEVHlfFPbHwIeA85mQZSxFhD9CZmVMmaIPA=
SIZE (akonadi-1.9.1.tar.bz2) = 220354

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-server_src_storage_dbconfigpostgresql_cpp,v 1.1.1.1 2013/04/24 09:05:59 zhuk Exp $
--- server/src/storage/dbconfigpostgresql.cpp.orig Sat Mar 2 15:51:18 2013
+++ server/src/storage/dbconfigpostgresql.cpp Sat Mar 23 14:48:12 2013
@@ -146,8 +146,13 @@ void DbConfigPostgresql::startInternalServer()
// call 'initdb -D/home/user/.local/share/akonadi/data_db'
const QString command = QString::fromLatin1( "%1" ).arg( mInitDbPath );
QStringList arguments;
- arguments << QString::fromLatin1( "-D%2" ).arg( dataDir )
- << QString::fromLatin1( "--locale=en_US.UTF-8" );
+ arguments << QString::fromLatin1( "-D%2" ).arg( dataDir );
+#if defined(__OpenBSD__)
+ // Not full locale support, PostgreSQL bails out with non-C locale
+ arguments << QString::fromLatin1( "--locale=C" );
+#else
+ arguments << QString::fromLatin1( "--locale=en_US.UTF-8" );
+#endif
QProcess::execute( command, arguments );
const QString configFileName = dataDir + QDir::separator() + QLatin1String( "postgresql.conf" );

View File

@ -0,0 +1,6 @@
Akonadi is a PIM layer, which provides an asynchronous API to access all kind
of PIM data (e.g. mails, contacts, events, todos etc.).
It consists of several processes (generally called the Akonadi server) and a
library (called client library) which encapsulates the communication
between the client and the server.

View File

@ -0,0 +1,47 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/24 09:05:59 zhuk Exp $
@pkgpath x11/kde4/akonadi
@bin bin/akonadi_agent_launcher
@bin bin/akonadi_agent_server
@bin bin/akonadi_control
@bin bin/akonadi_rds
@bin bin/akonadictl
@bin bin/akonadiserver
include/kde4/
include/kde4/akonadi/
include/kde4/akonadi/private/
include/kde4/akonadi/private/akonadiprotocolinternals_export.h
include/kde4/akonadi/private/capabilities_p.h
include/kde4/akonadi/private/imapparser_p.h
include/kde4/akonadi/private/imapset_p.h
include/kde4/akonadi/private/notificationmessage_p.h
include/kde4/akonadi/private/protocol_p.h
include/kde4/akonadi/private/xdgbasedirs_p.h
lib/cmake/
lib/cmake/Akonadi/
lib/cmake/Akonadi/AkonadiConfig.cmake
lib/cmake/Akonadi/AkonadiConfigVersion.cmake
lib/cmake/Akonadi/AkonadiTargetsWithPrefix${MODKDE4_CMAKE_PREFIX}.cmake
lib/cmake/Akonadi/AkonadiTargetsWithPrefix.cmake
@lib lib/libakonadiprotocolinternals.so.${LIBakonadiprotocolinternals_VERSION}
lib/pkgconfig/akonadi.pc
lib/qt4/plugins/sqldrivers/libqsqlite3.so
share/config/
share/config/akonadi/
share/config/akonadi/mysql-global-mobile.conf
share/config/akonadi/mysql-global.conf
share/dbus-1/interfaces/org.freedesktop.Akonadi.Agent.Control.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.Agent.Status.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.AgentManager.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.ControlManager.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.DebugInterface.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.NotificationManager.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.NotificationSource.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.Preprocessor.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.Resource.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.Server.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.Tracer.xml
share/dbus-1/interfaces/org.freedesktop.Akonadi.TracerNotification.xml
share/dbus-1/services/org.freedesktop.Akonadi.Control.service
share/mime/packages/akonadi-mime.xml
@exec %D/bin/update-mime-database %D/share/mime
@unexec-delete %D/bin/update-mime-database %D/share/mime