Import devel/py-setuptools34 version 2.0.1
[dports.git] / mail / dracmail / Makefile
1 # Created by: jamrich.majo@gmail.com
2 # $FreeBSD$
3
4 PORTNAME=       dracmail
5 PORTVERSION=    0.1.2
6 CATEGORIES=     mail
7 MASTER_SITES=   SF/dracmail/release/
8 DISTNAME=       dracMail-${PORTVERSION}_release
9
10 MAINTAINER=     fgheorghe@dracmail.net
11 COMMENT=        DracMail is a webmail interface built using PHP
12
13 RUN_DEPENDS+=   php:${PORTSDIR}/lang/php5
14
15 USE_PHP+=       mysql imap dom tidy iconv mbstring
16 USE_MYSQL=      yes
17 NO_BUILD=       yes
18 WWWOWN=         www
19 WWWGRP=         ${WWWOWN}
20
21 PKGMESSAGE=     ${WRKDIR}/${PORTNAME}/pkg-message
22 SUB_FILES=      pkg-message
23 PLIST_DIRSTRY=  %%WWWDIR%%
24
25 OPTIONS_DEFINE= PGSQL APACHE LIGHTTPD
26 OPTIONS_DEFAULT=        APACHE
27
28 NO_STAGE=       yes
29 .include <bsd.port.options.mk>
30
31 .if ${PORT_OPTIONS:MPGSQL}
32 USE_PHP+=       pgsql
33 .endif
34 .if ${PORT_OPTIONS:MAPACHE}
35 USE_APACHE_RUN= 22
36 .endif
37 .if ${PORT_OPTIONS:MLIGHTTPD}
38 RUN_DEPENDS+=   lighttpd:${PORTSDIR}/www/lighttpd
39 .endif
40
41 do-install:
42         @${MKDIR} ${WWWDIR}
43         @${CP} -r ${WRKDIR}/* ${WWWDIR}
44         @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
45
46 post-install:
47         @${CAT} ${PKGMESSAGE}
48
49 .include <bsd.port.mk>