blob: b8ed9d7b5fee6b6b36074e7fa05e9334d06e8ce2 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $FreeBSD$
PORTNAME= itop
PORTVERSION= 2.1.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
DISTNAME= iTop-${PORTVERSION}-2127
MAINTAINER= olevole@olevole.ru
COMMENT= Simple, web based IT Service Management tool
LICENSE= AGPLv3
USES= cpe zip
CPE_VENDOR= combodo
USE_PHP= ctype iconv mbstring pcre session xml zlib readline \
dom simplexml hash json soap mcrypt filter zip
NO_BUILD= yes
ITOPDIR= ${WWWDIR}/${PORTNAME}
SUB_FILES= pkg-message
OPTIONS_DEFINE= MYSQL PGSQL LDAP
OPTIONS_DEFAULT=MYSQL
.include <bsd.port.options.mk>
.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 <bsd.port.mk>
|