2012-10-05 00:04:32 +02:00
|
|
|
# Created by: John Prather
|
2010-11-23 16:58:03 +01:00
|
|
|
|
|
|
|
PORTNAME= davmail
|
2021-12-11 09:26:34 +01:00
|
|
|
PORTVERSION= 6.0.1
|
2010-11-23 16:58:03 +01:00
|
|
|
CATEGORIES= mail java
|
|
|
|
MASTER_SITES= SF/davmail/davmail/${PORTVERSION}
|
2012-01-17 19:14:41 +01:00
|
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}-${REVISION}
|
2010-11-23 16:58:03 +01:00
|
|
|
|
2019-05-25 15:06:29 +02:00
|
|
|
MAINTAINER= jjuanino@gmail.com
|
2010-11-23 16:58:03 +01:00
|
|
|
COMMENT= POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway
|
|
|
|
|
2012-01-17 19:14:41 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-07-29 21:11:51 +02:00
|
|
|
USES= dos2unix tar:tgz
|
2018-09-22 16:04:35 +02:00
|
|
|
|
2014-05-26 10:44:34 +02:00
|
|
|
DOS2UNIX_FILES= build.xml
|
2010-11-23 16:58:03 +01:00
|
|
|
USE_ANT= yes
|
|
|
|
USE_JAVA= yes
|
2021-12-11 09:26:34 +01:00
|
|
|
USE_RC_SUBR= davmail
|
|
|
|
# 6.0.1
|
|
|
|
REVISION= 3390
|
2012-01-17 19:14:41 +01:00
|
|
|
# port build number, same as on DISTNAME
|
|
|
|
MAKE_ARGS= -Drevision=${REVISION}
|
2013-04-24 02:08:36 +02:00
|
|
|
MAKE_ENV+= "ANT_OPTS=-Dfile.encoding=UTF-8"
|
2021-12-11 09:26:34 +01:00
|
|
|
ALL_TARGET= release
|
|
|
|
|
|
|
|
NO_ARCH= yes
|
|
|
|
SUB_FILES= davmail.sh pkg-message
|
2010-11-23 16:58:03 +01:00
|
|
|
|
2016-06-26 03:23:27 +02:00
|
|
|
USERS= davmail
|
|
|
|
GROUPS= davmail
|
|
|
|
|
2010-11-23 16:58:03 +01:00
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
|
2018-09-22 16:04:35 +02:00
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
2010-11-23 16:58:03 +01:00
|
|
|
|
2012-07-19 09:25:16 +02:00
|
|
|
post-patch:
|
2021-12-08 12:28:15 +01:00
|
|
|
@${REINPLACE_CMD} -e 's#prefix=\"usr#prefix=\"${PREFIX}#' \
|
2012-07-19 09:25:16 +02:00
|
|
|
${WRKSRC}/build.xml
|
|
|
|
|
2021-12-08 12:28:15 +01:00
|
|
|
# Azul JRE FX has been disabled by removing the target:
|
|
|
|
# <antcall target="download-jre"/>
|
|
|
|
# in files/patch-build.xml patch.
|
2010-11-23 16:58:03 +01:00
|
|
|
do-install:
|
2011-03-09 15:01:48 +01:00
|
|
|
@cd ${WRKSRC}/dist && ${FIND} . -type d \
|
2014-06-06 20:01:10 +02:00
|
|
|
-exec ${MKDIR} ${STAGEDIR}${DATADIR}/\{} \;
|
2011-03-09 15:01:48 +01:00
|
|
|
@cd ${WRKSRC}/dist && ${FIND} . -type f \
|
2010-11-23 16:58:03 +01:00
|
|
|
-not -name "*.deb" \
|
2016-06-26 03:23:27 +02:00
|
|
|
-not -name "*.md5" \
|
|
|
|
-not -name "*.MD5" \
|
2010-11-23 16:58:03 +01:00
|
|
|
-not -name "*.tgz" \
|
|
|
|
-not -name "*.exe" \
|
|
|
|
-not -name "swt-*.jar" \
|
|
|
|
-not -name "*.zip" \
|
|
|
|
-not -name "*.war" \
|
2011-01-04 23:40:34 +01:00
|
|
|
-not -name "*.rpm" \
|
2012-07-19 09:25:16 +02:00
|
|
|
-not -name "*.desktop" \
|
2014-06-06 20:01:10 +02:00
|
|
|
-exec ${INSTALL_DATA} \{} ${STAGEDIR}${DATADIR}/\{} \;
|
2016-06-26 20:28:23 +02:00
|
|
|
@${FIND} ${STAGEDIR}/${DATADIR} -depth -empty -type d -delete
|
2021-12-11 09:26:34 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/davmail.sh \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/davmail
|
2015-05-23 20:28:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/etc/davmail.properties \
|
2014-06-30 19:52:27 +02:00
|
|
|
${STAGEDIR}${PREFIX}/etc/davmail.properties.sample
|
2021-12-11 09:26:34 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/desktop/davmail.desktop \
|
|
|
|
${STAGEDIR}${PREFIX}/share/applications/
|
2010-11-23 16:58:03 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|