mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
f9596ff439
This version features significant enhancements over the 3.x series, especially for simulated IMAP access. There are also improvements in the Caldav functionality, and many bug fixes. See http://sourceforge.net/news/?group_id=184600 for the details of the 4.0.0 and 4.1.0 upgrades. PR: ports/171763 Submitted by: me Approved by: maintainer timeout
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# Created by: John Prather
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= davmail
|
|
PORTVERSION= 4.1.0
|
|
CATEGORIES= mail java
|
|
MASTER_SITES= SF/davmail/davmail/${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}-${REVISION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= john.c.prather@gmail.com
|
|
COMMENT= POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= swt>=3.5:${PORTSDIR}/x11-toolkits/swt
|
|
|
|
USE_ANT= yes
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
ALL_TARGET= release
|
|
REVISION= 2042
|
|
# port build number, same as on DISTNAME
|
|
MAKE_ARGS= -Drevision=${REVISION}
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
USE_RC_SUBR= davmail
|
|
SUB_FILES= davmail.sh
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's#exec=\"davmail\"#exec=\"${PREFIX}/bin/davmail\"#' \
|
|
-e 's#icon=\"/usr/share/davmail/davmail.png\"#icon=\"${DATADIR}/davmail.png\"#' \
|
|
${WRKSRC}/build.xml
|
|
|
|
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" \
|
|
-not -name "*.rpm" \
|
|
-not -name "*.desktop" \
|
|
-exec ${INSTALL_DATA} \{} ${DATADIR}/\{} \;
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/davmail.sh ${PREFIX}/bin/davmail
|
|
@${INSTALL_DATA} ${FILESDIR}/davmail.properties.sample \
|
|
${PREFIX}/etc
|
|
@${MKDIR} ${PREFIX}/share/applications
|
|
@${INSTALL_DATA} ${WRKSRC}/dist/davmail.desktop ${PREFIX}/share/applications/
|
|
|
|
post-install:
|
|
@if [ ! -f ${PREFIX}/etc/davmail.properties ]; then \
|
|
${CP} -p ${PREFIX}/etc/davmail.properties.sample \
|
|
${PREFIX}/etc/davmail.properties ; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|