Import postler 0.1.1:

Postler is a lean mail interface. Messages are read from Maildir folders, HTML
is rendered, composed and spell-checked with WebKitGTK+. The application
consists of independent modules, the reader, viewer and the composer. Each
module runs separately. No network access occurs from within the user interface
by default, offline access is integral. Contact completion and address book
integration are provided by Dexter.

ok ajacoutot@ jasper@
This commit is contained in:
landry 2011-03-22 08:25:18 +00:00
parent c3da51b167
commit dcaa87865a
6 changed files with 127 additions and 0 deletions

48
mail/postler/Makefile Normal file
View File

@ -0,0 +1,48 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/03/22 08:25:18 landry Exp $
COMMENT = lightweight mail user agent
XFCE_VERSION = 0.1.1
XFCE_GOODIE = postler
MAINTAINER = Landry Breuil <landry@openbsd.org>
CATEGORIES = mail
# LGPLv2.1
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
HOMEPAGE = https://launchpad.net/postler
MODULES = x11/xfce4 devel/waf
DESKTOP_FILES = Yes
NO_REGRESS = Yes
LIB_DEPENDS = www/webkit \
devel/libnotify \
databases/db/v4 \
audio/libcanberra \
devel/libunique
CONFIGURE_ARGS+= --disable-libindicate
BUILD_DEPENDS = ${RUN_DEPENDS} \
lang/vala
RUN_DEPENDS = mail/msmtp
WANTLIB = X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xrandr Xrender atk-1.0 c expat fontconfig \
freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 \
gmodule-2.0 gnutls gobject-2.0 gthread-2.0 gtk-x11-2.0 intl \
m pango-1.0 pangocairo-1.0 pangoft2-1.0 pthread z \
dbus-1 dbus-glib-1 cairo pixman-1 png pthread-stubs xcb xml2 \
xcb-render webkit-1.0 notify unique-1.0 soup-2.4 \
GL Xxf86vm drm xcb-shm crypto ssl tasn1 canberra db
pre-configure:
${SUBST_CMD} ${WRKSRC}/wscript
.include <bsd.port.mk>

5
mail/postler/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (postler-0.1.1.tar.bz2) = AuUCyfSkuS5KzjLZ4mjwbQ==
RMD160 (postler-0.1.1.tar.bz2) = 9bP6zcihaUKg/x+y5rwbf48XYC4=
SHA1 (postler-0.1.1.tar.bz2) = 9cc8AhmETUCShg602Ko2IjAnspg=
SHA256 (postler-0.1.1.tar.bz2) = K0CIkWFEKgKGPpkoQSUwAZAeJcr36ZLU8PWIlm6nkiM=
SIZE (postler-0.1.1.tar.bz2) = 251521

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-postler_postler-accounts_vala,v 1.1.1.1 2011/03/22 08:25:18 landry Exp $
--- postler/postler-accounts.vala.orig Mon Mar 21 02:06:07 2011
+++ postler/postler-accounts.vala Mon Mar 21 11:32:00 2011
@@ -151,10 +151,7 @@ public class Postler.Accounts : GLib.Object {
GLib.List<AccountInfo> infos;
const string[] root_certificate_files = {
- "/etc/pki/tls/certs/ca-bundle.crt",
- "/etc/ssl/certs/ca-certificates.crt",
- "/etc/ssl/certs/ca-bundle.crt",
- "/usr/local/share/certs/ca-root-nss.crt"
+ "/etc/ssl/cert.pem"
};
public Accounts () {

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-wscript,v 1.1.1.1 2011/03/22 08:25:18 landry Exp $
--- wscript.orig Mon Mar 21 02:06:07 2011
+++ wscript Mon Mar 21 11:23:15 2011
@@ -135,20 +135,20 @@ def configure (conf):
'{ char* a;\nvasprintf(&a, "%s", ""); return 0; }', \
define_name='HAVE_VASPRINTF', msg='Checking for function vasprintf', \
mandatory=True)
- check_function ('socket', 'sys/socket.h')
- if conf.env['DEST_OS'] == 'freebsd':
+ check_function ('socket', ['sys/types.h', 'sys/socket.h'])
+ if conf.env['DEST_OS'] == 'openbsd':
check_function ('inet_ntoa', 'arpa/inet.h')
check_function ('dlopen', 'dlfcn.h')
conf.check(function_name='db_create', header_name='db.h',
- includes=['/usr/local/include/db42'],
- libpath=['/usr/local/lib/db42'], lib='db', mandatory=True)
+ includes=['${LOCALBASE}/include/db4'],
+ libpath=['${LOCALBASE}/lib/db4'], lib='db', mandatory=True)
else:
check_function ('inet_ntoa', 'arpa/inet.h', 'nsl')
check_function ('dlopen', 'dlfcn.h', 'dl')
check_function ('db_create', 'db.h', 'db')
check_pkg ('openssl')
check_function ('CRYPTO_lock', 'openssl/crypto.h', 'crypto')
- check_function ('SSL_connect', 'openssl/ssl.h', 'ssl', 'HAVE_LIBSSL')
+ check_function ('SSL_connect', 'openssl/ssl.h', ['ssl', 'crypto'], 'HAVE_LIBSSL')
conf.find_program ('msmtp', mandatory=True)
if not conf.find_program ('dexter'):
Utils.pprint ('YELLOW', 'Dexter is not installed. It is recommended ' \

6
mail/postler/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
Postler is a lean mail interface. Messages are read from Maildir folders, HTML
is rendered, composed and spell-checked with WebKitGTK+. The application
consists of independent modules, the reader, viewer and the composer. Each
module runs separately. No network access occurs from within the user interface
by default, offline access is integral. Contact completion and address book
integration are provided by Dexter.

24
mail/postler/pkg/PLIST Normal file
View File

@ -0,0 +1,24 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/03/22 08:25:18 landry Exp $
@bin bin/postler
@bin bin/postler-mbsync
share/applications/postler.desktop
share/doc/postler/
share/doc/postler/COPYING
share/doc/postler/README
share/icons/hicolor/scalable/apps/internet-mail.svg
share/locale/da/LC_MESSAGES/postler.mo
share/locale/de/LC_MESSAGES/postler.mo
share/locale/fi/LC_MESSAGES/postler.mo
share/locale/gl/LC_MESSAGES/postler.mo
share/locale/he/LC_MESSAGES/postler.mo
share/locale/it/LC_MESSAGES/postler.mo
share/locale/ja/LC_MESSAGES/postler.mo
share/locale/pl/LC_MESSAGES/postler.mo
share/locale/pt/LC_MESSAGES/postler.mo
share/locale/ru/LC_MESSAGES/postler.mo
share/locale/sv/LC_MESSAGES/postler.mo
share/locale/zh_CN/LC_MESSAGES/postler.mo
@exec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true
@unexec-delete %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database