aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2010-11-23 15:58:03 +0000
committerPav Lucistnik <pav@FreeBSD.org>2010-11-23 15:58:03 +0000
commite00ee1f7aec8b744905a22bf4b8325879fc33abc (patch)
treecd169a1456bea37a8b4e1f20b84494cd717e7103
parentb29a83e521bdab29439abf70fb2fc2c26decd4d4 (diff)
downloadports-e00ee1f7aec8b744905a22bf4b8325879fc33abc.tar.gz
ports-e00ee1f7aec8b744905a22bf4b8325879fc33abc.zip
Notes
-rw-r--r--mail/Makefile1
-rw-r--r--mail/davmail/Makefile45
-rw-r--r--mail/davmail/distinfo2
-rw-r--r--mail/davmail/files/davmail.sh.in4
-rw-r--r--mail/davmail/pkg-descr8
-rw-r--r--mail/davmail/pkg-plist83
6 files changed, 143 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index ca33e3938695..07f6f4ec36ed 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -83,6 +83,7 @@
SUBDIR += cyrus-imapd23
SUBDIR += cyrus-imapd24
SUBDIR += cyrus2courier
+ SUBDIR += davmail
SUBDIR += dbmail
SUBDIR += dbmail20
SUBDIR += dbmail21
diff --git a/mail/davmail/Makefile b/mail/davmail/Makefile
new file mode 100644
index 000000000000..1ed97dd59a59
--- /dev/null
+++ b/mail/davmail/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: davmail
+# Date created: 28 Oct 2010
+# Whom: John Prather
+#
+# $FreeBSD$
+#
+
+PORTNAME= davmail
+PORTVERSION= 3.8.5
+CATEGORIES= mail java
+MASTER_SITES= SF/davmail/davmail/${PORTVERSION}
+DISTNAME= ${PORTNAME}-src-${PORTVERSION}-1480
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= john.c.prather@gmail.com
+COMMENT= POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway
+
+RUN_DEPENDS= swt>=3.5:${PORTSDIR}/x11-toolkits/swt
+
+USE_ANT= yes
+USE_JAVA= yes
+JAVA_VERSION= 1.6+
+
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+
+post-build:
+ ${CP} ${FILESDIR}/davmail.sh.in ${WRKDIR}/davmail.sh
+ ${REINPLACE_CMD} -e "s|%BASE%|${DATADIR}|" \
+ -e "s|%JAVASHAREDIR%|${JAVASHAREDIR}|" \
+ ${WRKDIR}/davmail.sh
+
+do-install:
+ cd ${WRKSRC}/dist && ${FIND} . -type d \
+ -exec ${MKDIR} ${DATADIR}/\{} \;
+ cd ${WRKSRC}/dist && ${FIND} . -type f \
+ -not -name "*.deb" \
+ -not -name "*.tgz" \
+ -not -name "*.exe" \
+ -not -name "swt-*.jar" \
+ -not -name "*.zip" \
+ -not -name "*.war" \
+ -exec ${INSTALL_DATA} \{} ${DATADIR}/\{} \;
+ ${INSTALL_SCRIPT} ${WRKDIR}/davmail.sh ${PREFIX}/bin/davmail
+
+.include <bsd.port.mk>
diff --git a/mail/davmail/distinfo b/mail/davmail/distinfo
new file mode 100644
index 000000000000..d3de5c710647
--- /dev/null
+++ b/mail/davmail/distinfo
@@ -0,0 +1,2 @@
+SHA256 (davmail-src-3.8.5-1480.tgz) = 5661347947d2fcecc183584c8dd65d5336f9ec57cafa03f07cba496ff5eb3cf4
+SIZE (davmail-src-3.8.5-1480.tgz) = 15792785
diff --git a/mail/davmail/files/davmail.sh.in b/mail/davmail/files/davmail.sh.in
new file mode 100644
index 000000000000..5bbd9bd3fb83
--- /dev/null
+++ b/mail/davmail/files/davmail.sh.in
@@ -0,0 +1,4 @@
+#!/bin/sh
+BASE="%BASE%"
+for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
+java -cp $BASE/davmail.jar:$CLASSPATH:%JAVASHAREDIR%/classes/swt.jar davmail.DavGateway $1
diff --git a/mail/davmail/pkg-descr b/mail/davmail/pkg-descr
new file mode 100644
index 000000000000..ba84c555579d
--- /dev/null
+++ b/mail/davmail/pkg-descr
@@ -0,0 +1,8 @@
+DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway
+
+DavMail is a POP/IMAP/SMTP/Caldav/Carddav/LDAP exchange gateway
+allowing users to use any mail/calendar client (e.g. Thunderbird
+with Lightning or Apple iCal) with an Exchange server, even from
+the internet or behind a firewall through Outlook Web Access.
+
+WWW: http://davmail.sourceforge.net/
diff --git a/mail/davmail/pkg-plist b/mail/davmail/pkg-plist
new file mode 100644
index 000000000000..91c91adc198d
--- /dev/null
+++ b/mail/davmail/pkg-plist
@@ -0,0 +1,83 @@
+bin/davmail
+%%JAVASHAREDIR%%/davmail/lib/slf4j-log4j12-1.3.1.jar
+%%JAVASHAREDIR%%/davmail/lib/log4j-1.2.15.jar
+%%JAVASHAREDIR%%/davmail/lib/commons-collections-3.1.jar
+%%JAVASHAREDIR%%/davmail/lib/junit-3.8.1.jar
+%%JAVASHAREDIR%%/davmail/lib/jackrabbit-webdav-1.4.jar
+%%JAVASHAREDIR%%/davmail/lib/commons-codec-1.3.jar
+%%JAVASHAREDIR%%/davmail/lib/libgrowl-0.2.jar
+%%JAVASHAREDIR%%/davmail/lib/mail-1.4.1.jar
+%%JAVASHAREDIR%%/davmail/lib/commons-logging-1.0.4.jar
+%%JAVASHAREDIR%%/davmail/lib/activation-1.1.jar
+%%JAVASHAREDIR%%/davmail/lib/libgrowl.jnilib
+%%JAVASHAREDIR%%/davmail/lib/jcifs-1.3.14.jar
+%%JAVASHAREDIR%%/davmail/lib/jdom-1.0.jar
+%%JAVASHAREDIR%%/davmail/lib/slf4j-api-1.3.1.jar
+%%JAVASHAREDIR%%/davmail/lib/htmlcleaner-2.1.jar
+%%JAVASHAREDIR%%/davmail/lib/wstx-asl-3.2.7.jar
+%%JAVASHAREDIR%%/davmail/lib/xercesImpl-2.8.1.jar
+%%JAVASHAREDIR%%/davmail/lib/stax-api-1.0.1.jar
+%%JAVASHAREDIR%%/davmail/lib/commons-httpclient-3.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/classes/davmail.properties
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/davmail.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/libgrowl-0.2.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/mail-1.4.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/activation-1.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/junit-3.8.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/jdom-1.0.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/log4j-1.2.15.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/slf4j-api-1.3.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/wstx-asl-3.2.7.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/htmlcleaner-2.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/stax-api-1.0.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/slf4j-log4j12-1.3.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/xercesImpl-2.8.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/jackrabbit-webdav-1.4.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/commons-collections-3.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/commons-httpclient-3.1.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/jcifs-1.3.14.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/commons-codec-1.3.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/lib/commons-logging-1.0.4.jar
+%%JAVASHAREDIR%%/davmail/web/WEB-INF/web.xml
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/MacOS/davmail
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/activation-1.1.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/commons-codec-1.3.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/commons-collections-3.1.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/commons-httpclient-3.1.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/commons-logging-1.0.4.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/htmlcleaner-2.1.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/jackrabbit-webdav-1.4.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/jcifs-1.3.14.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/jdom-1.0.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/junit-3.8.1.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/libgrowl-0.2.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/libgrowl.jnilib
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/log4j-1.2.15.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/mail-1.4.1.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/slf4j-api-1.3.1.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/slf4j-log4j12-1.3.1.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/stax-api-1.0.1.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/wstx-asl-3.2.7.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/xercesImpl-2.8.1.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java/davmail.jar
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/tray.icns
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Info.plist
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/PkgInfo
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Info-dock.plist
+%%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Info-nodock.plist
+%%JAVASHAREDIR%%/davmail/version.txt
+%%JAVASHAREDIR%%/davmail/davmail.jar
+%%JAVASHAREDIR%%/davmail/davmail.png
+%%JAVASHAREDIR%%/davmail/davmail.sh
+%%JAVASHAREDIR%%/davmail/davmail.desktop
+@dirrm %%JAVASHAREDIR%%/davmail/DavMail.app/Contents/MacOS
+@dirrm %%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources/Java
+@dirrm %%JAVASHAREDIR%%/davmail/DavMail.app/Contents/Resources
+@dirrm %%JAVASHAREDIR%%/davmail/DavMail.app/Contents
+@dirrm %%JAVASHAREDIR%%/davmail/DavMail.app
+@dirrm %%JAVASHAREDIR%%/davmail/lib
+@dirrm %%JAVASHAREDIR%%/davmail/web/WEB-INF/classes
+@dirrm %%JAVASHAREDIR%%/davmail/web/WEB-INF/lib
+@dirrm %%JAVASHAREDIR%%/davmail/web/WEB-INF
+@dirrm %%JAVASHAREDIR%%/davmail/web
+@dirrm %%JAVASHAREDIR%%/davmail