aboutsummaryrefslogtreecommitdiffstats
path: root/mail/extman/Makefile
blob: f6cc6765af4fcc054837921ba39c4e6f0b9982d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# New ports collection makefile for:    extman
# Date created:             3 April 2007
# Whom:                     Chifeng QU <chifeng@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   extman
PORTVERSION=    0.2.2
CATEGORIES= mail
MASTER_SITES=   http://www.extmail.org/dist/extman/%SUBDIR%/ \
        http://chifeng.cosoft.org.cn/extman/%SUBDIR%/

MAINTAINER?=    chifeng@gmail.com
COMMENT=    Web interface to manage Virtual Accounts

USE_PERL5=  yes
NO_BUILD=   yes

RUN_DEPENDS=    ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64

OPTIONS=    MySQL "Use MySQL support" On \
        LDAP "Use LDAP support" Off

SUB_FILES=  pkg-message

.include <bsd.port.pre.mk>

.if defined(WITH_MySQL)
RUN_DEPENDS+=   ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
.endif
.if defined(WITH_LDAP)
RUN_DEPENDS+=   ${SITE_PERL}/${PERL_ARCH}/DBD/LDAP.pm:${PORTSDIR}/databases/p5-DBD-LDAP
.endif

OWCGIDIR=   ${PREFIX}/www/extman

do-install:
    @${MKDIR} ${OWCGIDIR}
    @cd ${WRKSRC} && ${CP} -Rpf * ${OWCGIDIR}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>