freebsd-ports/deskutils/sugarcrm/Makefile
Alexey Dokuchaev a6fd5a21c8 Remove redundant PKGMESSAGE assignment, which is set appropriately
by the b.p.m when `pkg-message' appears on the SUB_FILES list.
2018-05-05 17:13:42 +00:00

39 lines
1.1 KiB
Makefile

# 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>