aboutsummaryrefslogtreecommitdiffstats
path: root/mail/nocc/Makefile
blob: e119549884f3c1657e850c4d8d206fdc4b4fad0f (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
44
45
# New ports collection makefile for:    nocc
# Date created:     Fri Feb 3 13:31:37 CET 2002
# Whom:         Alex Dupre <sysadmin@alexdupre.com>
#
# $FreeBSD$
#

PORTNAME=   nocc
PORTVERSION=    1.9.1
CATEGORIES= mail www
MASTER_SITES=   SF/${PORTNAME}/NOCC/${PORTVERSION}

MAINTAINER= ale@FreeBSD.org
COMMENT=    A web-based e-mail system which access POP3 and IMAP mail servers

USE_PHP=    iconv imap mbstring pcre session
WANT_PHP_WEB=   yes

SUB_FILES=  pkg-message
NO_BUILD=   yes
NO_WRKSUBDIR=   yes

PORTDOCS=   *

do-install:
    ${MKDIR} ${PREFIX}/www/nocc
    ${CP} -Rp ${WRKSRC}/ckeditor ${WRKSRC}/classes ${WRKSRC}/config \
        ${WRKSRC}/html ${WRKSRC}/js ${WRKSRC}/lang ${WRKSRC}/themes \
        ${WRKSRC}/utils \
        ${PREFIX}/www/nocc
    ${CP} -p ${WRKSRC}/*.php ${WRKSRC}/*.ico ${PREFIX}/www/nocc
    @if [ ! -f ${PREFIX}/www/nocc/config/conf.php ]; then \
        ${CP} ${PREFIX}/www/nocc/config/conf.php.dist \
            ${PREFIX}/www/nocc/config/conf.php; \
    fi
    ${CHOWN} -R www:www ${PREFIX}/www/nocc
.if !defined(NOPORTDOCS)
    ${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>