# Ports collection makefile for: mimp3 # Date created: Mon Feb 05, 2007 # Whom: Beech Rintoul # # $FreeBSD$ # PORTNAME= mimp PORTVERSION= 1.0.1 CATEGORIES= mail www MAINTAINER= beech@alaskaparadise.com COMMENT= Mobile webmail system #----------------------------------------------------------------------- # You may define these options: # # - WITHOUT_LDAP if you do not need OpenLDAP; # # - WITHOUT_SMIME disable S/MIME; # # - WITHOUT_SUPPORTED_DB if you run a database not in the ports tree; # # - NOCRYPT if crypto is restricted in your country; # # - WITHOUT_SSL if you have not installed c-client WITH_SSL; # # - WITH_VALID_CERT if you own a valid SSL certificate; #----------------------------------------------------------------------- RUN_DEPENDS+= ${PEARDIR}/Auth/SASL.php:${PORTSDIR}/security/pear-Auth_SASL USE_PHP= imap . if !defined(WITHOUT_LDAP) USE_PHP+= ldap . endif .if !defined(WITHOUT_SMIME) USE_PHP+= openssl .endif .if !defined(NOCRYPT) RUN_DEPENDS+= ${LOCALBASE}/bin/gpgv:${PORTSDIR}/security/gnupg1 .endif USE_HORDE= base USE_GETTEXT= yes PORTDOCS= README CHANGES CREDITS INSTALL RELEASE_NOTES pre-configure: .if !defined(NOCRYPT) @${REINPLACE_CMD} -e "s:%%GPG%%:${LOCALBASE}/bin/gpg:" \ ${WRKSRC}/config/conf.xml .else @${REINPLACE_CMD} -e "s:%%GPG%%::" ${WRKSRC}/config/conf.xml .endif @${REINPLACE_CMD} -e "s:MIMP_VERSION:MIMP_VERSION . ' / ${SERVOS}':" \ ${WRKSRC}/lib/MIME/Headers.php @${REINPLACE_CMD} -e "s:example.com:${HOSTNAME}:g" \ ${WRKSRC}/config/servers.php.dist .if defined(WITHOUT_SSL) @${REINPLACE_CMD} -e "s:%%PROTOCOL%%:imap/notls:;s:%%IMAPPORT%%:143:" \ ${WRKSRC}/config/servers.php.dist .else @${REINPLACE_CMD} -e "s:%%IMAPPORT%%:993:" ${WRKSRC}/config/servers.php.dist . if defined(WITH_VALID_CERT) @${REINPLACE_CMD} -e "s:%%PROTOCOL%%:imap/ssl:" ${WRKSRC}/config/servers.php.dist . else @${REINPLACE_CMD} -e "s:%%PROTOCOL%%:imap/ssl/novalidate-cert:" \ ${WRKSRC}/config/servers.php.dist . endif .endif pre-install: .if !defined(BATCH) && !defined(WITHOUT_SSL) @if ! ${GREP} -q -e 'CCLIENT_SSLENABLED "yes"' ${PORTREV_H}; then \ ${ECHO_MSG} "" ; \ ${ECHO_MSG} "Please configure c-client with SSL support." ; \ ${ECHO_MSG} "" ; \ ${FALSE} ; \ fi .endif .include "${.CURDIR}/../../www/horde-base/bsd.horde.mk" .include