2012-10-05 18:30:22 +02:00
|
|
|
# Created by: Kelley Reynolds <kelley@insidesystems.net>
|
2004-12-22 00:34:57 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ismail
|
2006-12-01 15:22:19 +01:00
|
|
|
PORTVERSION= 2.1
|
2008-06-28 12:53:26 +02:00
|
|
|
PORTREVISION= 2
|
2004-12-22 00:34:57 +01:00
|
|
|
CATEGORIES= www mail
|
2012-04-18 15:56:27 +02:00
|
|
|
MASTER_SITES= http://az.semmy.ru/ISMail/
|
2004-12-22 00:34:57 +01:00
|
|
|
|
2007-08-22 09:06:41 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-12-22 00:34:57 +01:00
|
|
|
COMMENT= PHP-based webmail client
|
|
|
|
|
2006-12-01 15:22:19 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2004-12-22 00:34:57 +01:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2014-03-16 17:07:59 +01:00
|
|
|
USES= tar:bzip2
|
2008-06-28 12:53:26 +02:00
|
|
|
USE_PHP= imap
|
|
|
|
WANT_PHP_WEB= yes
|
2004-12-22 00:34:57 +01:00
|
|
|
|
2014-09-08 21:32:59 +02:00
|
|
|
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
|
2008-06-28 12:53:26 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2012-10-05 18:30:22 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
OPTIONS_SINGLE= DATASTORE
|
|
|
|
OPTIONS_SINGLE_DATASTORE= MYSQL PGSQL
|
|
|
|
OPTIONS_DEFAULT= MYSQL
|
2004-12-22 00:34:57 +01:00
|
|
|
|
2008-06-28 12:53:26 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-10-05 18:30:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2008-06-28 12:53:26 +02:00
|
|
|
USE_PHP+= mysql
|
|
|
|
PLIST_FILES+= ${EXAMPLESDIR_REL}/mysql4.schema
|
|
|
|
.endif
|
|
|
|
|
2012-10-05 18:30:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2008-06-28 12:53:26 +02:00
|
|
|
USE_PHP+= pgsql
|
|
|
|
PLIST_FILES+= ${EXAMPLESDIR_REL}/pgsql.schema
|
|
|
|
.endif
|
|
|
|
|
2014-06-05 08:18:01 +02:00
|
|
|
LIB_DEPENDS+= libc-client4.so:${PORTSDIR}/mail/cclient
|
2004-12-22 00:34:57 +01:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${ECHO_MSG} ""
|
2008-06-28 12:53:26 +02:00
|
|
|
@${ECHO_MSG} "Inside Systems Mail will be installed to ${WWWDIR}"
|
|
|
|
@${ECHO_MSG} "Define WWWDIR to change it."
|
2004-12-22 00:34:57 +01:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
do-install:
|
2014-06-05 08:18:01 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
|
|
${TAR} --exclude '*~' -C ${WRKSRC}/${PORTNAME} -cf - . | ${TAR} -C ${STAGEDIR}${WWWDIR} -xf -
|
2012-10-05 18:30:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-06-05 08:18:01 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs.html ${STAGEDIR}${DOCSDIR}
|
2008-06-28 12:53:26 +02:00
|
|
|
.endif
|
2012-10-05 18:30:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2014-06-05 08:18:01 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/mysql4.schema ${STAGEDIR}${EXAMPLESDIR}
|
2008-06-28 12:53:26 +02:00
|
|
|
.endif
|
2012-10-05 18:30:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2014-06-05 08:18:01 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/pgsql.schema ${STAGEDIR}${EXAMPLESDIR}
|
2004-12-22 00:34:57 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2008-06-28 12:53:26 +02:00
|
|
|
@${CAT} ${PKGMEASSAGE}
|
2004-12-22 00:34:57 +01:00
|
|
|
|
2012-10-05 18:30:22 +02:00
|
|
|
.include <bsd.port.mk>
|