5 CATEGORIES= net-mgmt www
6 MASTER_SITES= http://www.cacti.net/downloads/ \
7 ftp://ftpmirror.uk/freebsd-ports/cacti/
9 MAINTAINER= freebsd-ports@dan.me.uk
10 COMMENT= Web-driven graphing interface for RRDTool
13 LICENSE_FILE= ${WRKSRC}/LICENSE
15 RUN_DEPENDS= rrdtool:databases/rrdtool
17 USES= cpe mysql php:web shebangfix
18 USE_PHP= ctype filter gd gettext gmp hash json ldap mbstring openssl pcre pdo pdo_mysql posix session simplexml sockets snmp xml zlib
21 SUB_FILES= pkg-message
22 SHEBANG_FILES= scripts/3com_cable_modem.pl \
24 scripts/linux_memory.pl \
26 scripts/loadavg_multi.pl \
28 scripts/query_unix_partitions.pl \
29 scripts/unix_processes.pl \
30 scripts/unix_tcp_connections.pl \
31 scripts/unix_users.pl \
32 scripts/weatherbug.pl \
35 CACTIDIR?= share/cacti
40 GROUPS?= ${CACTIGROUP}
42 PLIST_SUB+= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \
43 CACTIGROUP=${CACTIGROUP}
44 SUB_LIST+= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \
45 CACTIGROUP=${CACTIGROUP}
47 CONFLICTS_INSTALL= cacti88
50 @${FIND} ${WRKSRC} -name \*.orig -delete; \
51 ${MV} ${WRKSRC}/include/config.php ${WRKSRC}/include/config.php.sample
52 ${RM} -r ${WRKSRC}/log ${WRKSRC}/rra
55 ${MKDIR} ${STAGEDIR}/${PREFIX}/${CACTIDIR}
56 ${MKDIR} ${STAGEDIR}/var/log/cacti
57 ${MKDIR} ${STAGEDIR}/var/db/cacti/rra
58 ${MKDIR} ${STAGEDIR}/var/db/cacti/scripts
59 ${CP} -R ${WRKSRC}/* ${STAGEDIR}/${PREFIX}/${CACTIDIR}
60 if [ -f ${PREFIX}/${CACTIDIR}/include/db-settings.php ]; then \
61 ${ECHO_CMD} "======================================================================="; \
62 ${ECHO_CMD} "WARNING! You have to move DB settings from"; \
63 ${ECHO_CMD} "${PREFIX}/${CACTIDIR}/include/db-settings.php file to"; \
64 ${ECHO_CMD} "${PREFIX}/${CACTIDIR}/include/config.php and remove db-settings.php"; \
67 .include <bsd.port.mk>