# New ports collection makefile for: ismail # Date created: 18 June 2004 # Whom: Kelley Reynolds # # $FreeBSD$ # PORTNAME= ismail PORTVERSION= 2.1 PORTREVISION= 1 CATEGORIES= www mail MASTER_SITES= http://mail.electro-com.ru/~az/ISMail/ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= PHP-based webmail client USE_BZIP2= yes ISMAILDIR?= www/data/ismail INSTALLDIR= ${PREFIX}/${ISMAILDIR} WRKSRC= ${WRKDIR} PLIST_SUB= ISMAILDIR=${ISMAILDIR}/ \ INSTALLDIR=${INSTALLDIR}/ NO_BUILD= yes USE_PHP= yes .include PORTDOC_FILES= docs.html PORT_EXAMPLES= mysql4.schema pgsql.schema LIB_DEPENDS+= c-client4.9:${PORTSDIR}/mail/cclient SED_SCRIPT= -e 's,%%INSTALL_SCRIPT%%,${INSTALL_SCRIPT},g' \ -e 's,%%MKDIR%%,${MKDIR},g' \ -e 's,%%CHOWN%%,${CHOWN},g' \ -e 's,%%WRKSRC%%,${WRKSRC},g' \ -e 's,%%ISMAILDIR%%,${ISMAILDIR},g' \ -e 's,%%DOCSDIR%%,${DOCSDIR},g' \ -e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' \ -e 's,%%INSTALLDIR%%,${INSTALLDIR},g' pre-install: @${ECHO_MSG} "Inside Systems Mail will be installed to " @${ECHO_MSG} "${INSTALLDIR}." @${ECHO_MSG} "To change it, set the following:" @${ECHO_MSG} "" @${ECHO_MSG} "PREFIX = ${PREFIX}" @${ECHO_MSG} "ISMAILDIR = ${ISMAILDIR}" @${ECHO_MSG} "" @${ECHO_MSG} "Inside Systems Mail requires that mod_php4 be build with" @${ECHO_MSG} "IMAP support. To enable IMAP support, you must set" @${ECHO_MSG} "" @${ECHO_MSG} " WITH_IMAP=yes" @${ECHO_MSG} "" @${ECHO_MSG} "One of the following mod_php4 extensions are required to" @${ECHO_MSG} "use the provided dastores:" @${ECHO_MSG} " @${ECHO_MSG} " WITH_DOMXML=yes" @${ECHO_MSG} " WITH_MYSQL=yes" @${ECHO_MSG} " WITH_POSTGRESQL=yes" @${ECHO_MSG} " @${ECHO_MSG} "Hit Ctrl-C now to cancel the installation" @sleep 7 @${SED} ${SED_SCRIPT} ${FILESDIR}/install.sh > ${WRKDIR}/install.sh @${SED} ${SED_SCRIPT} pkg-message > ${WRKDIR}/pkg-message do-install: ${SH} ${WRKDIR}/install.sh ${CHOWN} -R www:www ${INSTALLDIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for docfile in ${PORTDOC_FILES} @${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR} .endfor @${MKDIR} ${EXAMPLESDIR} .for example in ${PORT_EXAMPLES} @${INSTALL_SCRIPT} ${WRKSRC}/examples/${example} ${EXAMPLESDIR} .endfor .endif post-install: @${CAT} ${WRKDIR}/pkg-message .include