aboutsummaryrefslogtreecommitdiffstats
path: root/www/efront/Makefile
blob: d66ba397b8f1fa122acccf2ca727c8e41fe8973c (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
# New ports collection makefile for:   eFront
# Date created:     07 June 2008
# Whom:         Wen heping <wenheping@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   efront
DISTVERSION=    3.6.1
CATEGORIES= www
MASTER_SITES=   SF/${PORTNAME}learning/
DISTNAME=   ${PORTNAME}_${PORTVERSION}_build6235

MAINTAINER= wen@FreeBSD.org
COMMENT=    A Elearning and Human Capital Development platform

USE_ZIP=    YES
USE_PHP=    mbstring zip iconv zlib spl ldap
EFRONT_FILES=   CHANGELOG.txt index.php INSTALL.txt \
        LICENSE.txt  README.txt
EFRONT_DIRS=    libraries PEAR \
        upload www backups

NO_BUILD=   yes
SUB_FILES=  pkg-message

.include <bsd.port.pre.mk>
do-install:
    @if [ ! -f ${WWWDIR} ]; then \
        ${MKDIR} ${WWWDIR} ; fi
.for i in ${EFRONT_FILES}
    @cd ${WRKDIR} && ${CP} ${i} ${WWWDIR}
.endfor
.for i in ${EFRONT_DIRS}
    @cd ${WRKDIR} && ${COPYTREE_SHARE} ${i} ${WWWDIR}
.endfor
    @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
    @${CHMOD} -R 755 ${WWWDIR}

post-install:
    @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
        >> ${TMPPLIST}
    @${ECHO_CMD} '@exec ${CHMOD} 755 -R ${WWWDIR}' \
        >> ${TMPPLIST}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>