# $FreeBSD: head/www/itop/Makefile 412351 2016-04-01 14:33:55Z mat $ PORTNAME= itop PORTVERSION= 2.2.0 CATEGORIES= www MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} DISTNAME= iTop-${PORTVERSION}-2459 MAINTAINER= olevole@olevole.ru COMMENT= Simple, web based IT Service Management tool LICENSE= AGPLv3 RUN_DEPENDS= ${LOCALBASE}/bin/dot:graphics/graphviz USES= cpe shebangfix zip SHEBANG_FILES= lib/tcpdf/tools/tcpdf_addfont.php setup/install/install.sh CPE_VENDOR= combodo USE_PHP= ctype gd iconv mbstring pcre session xml zlib readline \ dom simplexml hash json soap mcrypt filter zip WRKSRC= ${WRKDIR}/web NO_BUILD= yes ITOPDIR= ${WWWDIR}/${PORTNAME} SUB_FILES= pkg-message OPTIONS_DEFINE= MYSQL PGSQL LDAP OPTIONS_DEFAULT=MYSQL .include .if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= client USE_PHP+= mysql mysqli .endif .if ${PORT_OPTIONS:MPGSQL} USE_PHP+= pgsql .endif .if ${PORT_OPTIONS:MLDAP} USE_PHP+= ldap .endif post-install: @${ECHO_CMD} "@owner ${WWWOWN}" >> ${TMPPLIST} @${ECHO_CMD} "@group ${WWWGRP}" >> ${TMPPLIST} @${FIND} -s ${STAGEDIR}${WWWDIR} -not -type d | ${SORT} | \ ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} @${ECHO} @dir ${WWWDIR} >> ${TMPPLIST} @${ECHO_CMD} "@group" >> ${TMPPLIST} @${ECHO_CMD} "@owner" >> ${TMPPLIST} do-install: @${MKDIR} ${STAGEDIR}${WWWDIR} ${CP} -a ${WRKDIR}/web/ ${STAGEDIR}${WWWDIR} .include