diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-09-27 15:25:18 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-09-27 15:25:18 +0000 |
commit | 7e38f7f22bbb95d238ace43389a3f37453831f1b (patch) | |
tree | 53645f2bd45c3d95dc408ed2645e22f4229a1ccd /www/vtiger-customerportal/Makefile | |
parent | 1177f8fa45cec5bb606d27888ba039bea4fba1dd (diff) |
vtiger Customer Portal is an add-on package for vtiger CRM, an Open
Source Customer Relationship Management solution.
WWW: http://wiki.vtiger.com/index.php/Vtiger_Customer_Portal_5.0.3_-_User_Manual
Submitted by: Aron Schlesinger <as at bsdgroup.de> (via irc
Notes
Notes:
svn path=/head/; revision=200179
Diffstat (limited to 'www/vtiger-customerportal/Makefile')
-rw-r--r-- | www/vtiger-customerportal/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/www/vtiger-customerportal/Makefile b/www/vtiger-customerportal/Makefile new file mode 100644 index 000000000000..e908eecefe29 --- /dev/null +++ b/www/vtiger-customerportal/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: www/vtiger-customerportal +# Date created: 22 September 2007 +# Whom: Aron Schlesinger <as@bsdgroup.de> +# +# $FreeBSD$ + +PORTNAME= customerportal +PORTVERSION= 5.0.3 +CATEGORIES= www +MASTER_SITES= SF +MASTER_SITE_SUBDIR= vtigercrm +PKGNAMEPREFIX= vtiger- +DISTNAME= vtigercrm-customerportal-${DISTVERSION} + +MAINTAINER= as@bsdgroup.de +COMMENT= Vtiger Customer Portal is an add-on package for vtiger CRM + +NO_BUILD= YES +NO_WRKSUBDIR= YES + +VTIGERDIR?= ${PREFIX}/www/vtiger +PORTALDIR?= ${PORTNAME} +WWWDIR?= ${VTIGERDIR}/${PORTALDIR} + +RUN_DEPENDS+= ${VTIGERDIR}:${PORTSDIR}/www/vtiger + +USE_ZIP= YES +SUB_FILES= pkg-message + +CONFIG= PortalConfig.php + +do-install: + @${FIND} ${WRKSRC} -type d | ${SED} 's,^${WRKSRC},${WWWDIR},' | ${XARGS} ${MKDIR} + @${FIND} -s ${WRKSRC} -type f -not -name '.*' -and -not \ + -name ${CONFIG} -exec ${SH} -c '${INSTALL_DATA} -v {} \ + $$(${ECHO} {} | ${SED} "s,^${WRKSRC},${WWWDIR},")' \; + ${INSTALL_DATA} ${WRKSRC}/${CONFIG} ${WWWDIR}/${CONFIG}.sample + +post-install: +.if !exists(${WWWDIR}/${CONFIG}) + ${INSTALL_DATA} ${WWWDIR}/${CONFIG}.sample ${WWWDIR}/${CONFIG} + @${CHMOD} u+w ${WWWDIR}/${CONFIG} +.endif + @${CAT} ${PKGMESSAGE} + +create-plist: + @${FIND} -s ${WRKSRC} -type f -not -name '.*' -and -not -name ${CONFIG} \ + | ${SED} -e 's,^${WRKSRC},%%WWWDIR%%,' > ${PLIST} + @${ECHO_CMD} '@unexec if cmp -s %D/%%WWWDIR%%/${CONFIG}.sample %D/%%WWWDIR%%/${CONFIG}; \ + then ${RM} -f %D/%%WWWDIR%%/${CONFIG}; fi' >> ${PLIST} + @${ECHO_CMD} '%%WWWDIR%%/${CONFIG}.sample' >> ${PLIST} + @${ECHO_CMD} '@exec if [ ! -f %D/%%WWWDIR%%/${CONFIG} ]; then \ + ${INSTALL_DATA} %D/%%WWWDIR%%/${CONFIG}.sample %D/%%WWWDIR%%/${CONFIG}; \ + ${CHMOD} u+w %D/%%WWWDIR%%/${CONFIG}; fi' >> ${PLIST} + @${FIND} -ds ${WRKSRC} -type d \ + | ${SED} -e 's,^${WRKSRC},@dirrm %%WWWDIR%%,' >> ${PLIST} + +.include <bsd.port.mk> |