aboutsummaryrefslogtreecommitdiffstats
path: root/mail/nocc/Makefile
blob: 633f6a6e425f8794b71b27157bfcec63db9dd0a9 (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
46
47
48
49
50
51
52
53
54
# 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=    0.9.5
CATEGORIES= mail www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= sysadmin@alexdupre.com
COMMENT=    A web-based e-mail system which access POP3 and IMAP mail servers

RUN_DEPENDS=    ${LOCALBASE}/bin/php-config:${PORTSDIR}/www/mod_php4

PKGMESSAGE= ${WRKDIR}/pkg-message
NO_BUILD=   yes

pre-everything::
    @${ECHO} ""
    @${ECHO} "You have to configure PHP with IMAP support in order"
    @${ECHO} "to let Nocc connect to your POP3/IMAP server."
    @${ECHO} ""
    @${ECHO} "If you have already compiled PHP without IMAP,"
    @${ECHO} "press CTRL+C now and rebuild it before installing Nocc."
    @${ECHO} ""

pre-patch:
    @${SED} 's|%%PREFIX%%|${PREFIX}|g' \
        ${.CURDIR}/pkg-message > ${PKGMESSAGE}

do-install:
    ${MKDIR} ${PREFIX}/www/nocc
    ${CP} -Rp ${WRKSRC}/html ${WRKSRC}/lang ${WRKSRC}/themes \
              ${PREFIX}/www/nocc
    ${CP} -p ${WRKSRC}/*.php ${PREFIX}/www/nocc
    ${CP} -p ${WRKSRC}/conf.php.dist ${PREFIX}/www/nocc
    @if [ ! -f ${PREFIX}/www/nocc/conf.php ]; then \
        ${CP} ${PREFIX}/www/nocc/conf.php.dist \
            ${PREFIX}/www/nocc/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>