2015-04-28 05:42:27 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= itop
|
2016-09-10 11:41:43 +00:00
|
|
|
PORTVERSION= 2.3.1
|
2015-04-28 05:42:27 +00:00
|
|
|
CATEGORIES= www
|
2016-05-18 14:11:33 +00:00
|
|
|
MASTER_SITES= SF
|
2016-09-10 11:41:43 +00:00
|
|
|
DISTNAME= iTop-${PORTVERSION}-2832
|
2015-04-28 05:42:27 +00:00
|
|
|
|
|
|
|
MAINTAINER= olevole@olevole.ru
|
|
|
|
COMMENT= Simple, web based IT Service Management tool
|
|
|
|
|
|
|
|
LICENSE= AGPLv3
|
2016-09-10 11:41:43 +00:00
|
|
|
LICENSE_FILE= ${WRKDIR}/LICENSE
|
2015-04-28 05:42:27 +00:00
|
|
|
|
2016-04-01 14:33:55 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/dot:graphics/graphviz
|
2016-01-21 11:45:40 +00:00
|
|
|
|
2016-09-10 11:41:43 +00:00
|
|
|
USES= cpe shebangfix php zip
|
2016-01-21 11:45:40 +00:00
|
|
|
SHEBANG_FILES= lib/tcpdf/tools/tcpdf_addfont.php setup/install/install.sh
|
|
|
|
|
2015-05-19 02:12:50 +00:00
|
|
|
CPE_VENDOR= combodo
|
2016-01-21 11:45:40 +00:00
|
|
|
USE_PHP= ctype gd iconv mbstring pcre session xml zlib readline \
|
2015-05-06 02:40:39 +00:00
|
|
|
dom simplexml hash json soap mcrypt filter zip
|
2015-04-28 05:42:27 +00:00
|
|
|
|
2016-01-21 11:45:40 +00:00
|
|
|
WRKSRC= ${WRKDIR}/web
|
2015-04-28 05:42:27 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
ITOPDIR= ${WWWDIR}/${PORTNAME}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL LDAP
|
|
|
|
OPTIONS_DEFAULT=MYSQL
|
|
|
|
|
2016-09-10 11:41:43 +00:00
|
|
|
MYSQL_USES= mysql
|
|
|
|
MYSQL_USE= PHP=mysqli
|
|
|
|
PGSQL_USE= PHP=pgsql
|
|
|
|
LDAP_USE= PHP=ldap
|
2015-04-28 05:42:27 +00:00
|
|
|
|
2016-09-10 11:41:43 +00:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
|
|
${CP} -a ${WRKDIR}/web/ ${STAGEDIR}${WWWDIR}
|
2015-04-28 05:42:27 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_CMD} "@owner ${WWWOWN}" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@group ${WWWGRP}" >> ${TMPPLIST}
|
|
|
|
@${FIND} -s ${STAGEDIR}${WWWDIR} -not -type d | ${SORT} | \
|
2016-09-10 11:41:43 +00:00
|
|
|
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
|
2015-04-28 05:42:27 +00:00
|
|
|
@${ECHO} @dir ${WWWDIR} >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@group" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@owner" >> ${TMPPLIST}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|