aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/sugarcrm/Makefile
blob: 5fb324dee8478ff693960a67ada0bb22283d9f13 (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
# Created by: Nick Hilliard <nick@foobar.org>
# $FreeBSD$

PORTNAME=   sugarcrm
PORTVERSION=    6.5.26
CATEGORIES= deskutils www
MASTER_SITES=   SF/${PORTNAME}/1%20-%20SugarCRM%206.5.X/SugarCommunityEdition-6.5.X
DISTNAME=   SugarCE-${PORTVERSION}

MAINTAINER= wen@FreeBSD.org
COMMENT=    Web based customer relationship management suite

USES=       zip
USE_PHP=    gd mysqli session pcre xml zlib mbstring curl imap spl posix \
        json ctype zip tokenizer
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/SugarCE-Full-${PORTVERSION}

PLIST=      ${WRKDIR}/plist
SUGARDIR=   www/sugarcrm

SUB_FILES+= pkg-message pkg-install

pre-install:
    @${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST}
    @${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST}
    @${ECHO_CMD} "@mode 755" >> ${PLIST}
    @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${SUGARDIR}?g" >>${PLIST}
    @${FIND} -s -d ${WRKSRC} -type d  | ${SED} "s?${WRKSRC}?@dir ${SUGARDIR}?g" >> ${PLIST}
    @${ECHO_CMD} "@mode" >> ${PLIST}
    @${ECHO_CMD} "@group" >> ${PLIST}
    @${ECHO_CMD} "@owner" >> ${PLIST}

do-install:
    @${MKDIR} ${STAGEDIR}/${WWWDIR}
    @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}/

.include <bsd.port.mk>