Tweak net-mgmt/icingaweb2-module-businessprocess version 2.2.0_2
[dports.git] / net-mgmt / cacti / Makefile
1 PORTNAME=       cacti
2 PORTVERSION=    1.2.21
3 CATEGORIES=     net-mgmt www
4 MASTER_SITES=   http://www.cacti.net/downloads/ \
5                 ftp://ftpmirror.uk/freebsd-ports/cacti/
6
7 MAINTAINER=     m.muenz@gmail.com
8 COMMENT=        Web-driven graphing interface for RRDTool
9
10 LICENSE=        GPLv2+
11 LICENSE_FILE=   ${WRKSRC}/LICENSE
12
13 RUN_DEPENDS=    rrdtool:databases/rrdtool
14
15 USES=           cpe mysql php:web shebangfix
16
17 USE_PHP=        ctype filter gd gettext gmp hash json ldap mbstring openssl pcre pdo pdo_mysql posix session simplexml sockets snmp xml zlib
18 NO_ARCH=        yes
19 NO_BUILD=       yes
20 SUB_FILES=      pkg-message
21 SHEBANG_FILES=  scripts/3com_cable_modem.pl \
22                 scripts/diskfree.pl \
23                 scripts/linux_memory.pl \
24                 scripts/loadavg.pl \
25                 scripts/loadavg_multi.pl \
26                 scripts/ping.pl \
27                 scripts/query_unix_partitions.pl \
28                 scripts/unix_processes.pl \
29                 scripts/unix_tcp_connections.pl \
30                 scripts/unix_users.pl \
31                 scripts/weatherbug.pl \
32                 scripts/webhits.pl
33
34 CACTIDIR?=      share/cacti
35 CACTIUSER?=     cacti
36 CACTIGROUP?=    cacti
37
38 USERS?=         ${CACTIUSER}
39 GROUPS?=        ${CACTIGROUP}
40
41 PLIST_SUB=      CACTIDIR=${CACTIDIR}  CACTIUSER=${CACTIUSER} \
42                 CACTIGROUP=${CACTIGROUP}
43 SUB_LIST=       CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \
44                 CACTIGROUP=${CACTIGROUP}
45
46 post-patch:
47         @${FIND} ${WRKSRC} -name \*.orig -delete; \
48         ${MV} ${WRKSRC}/include/config.php ${WRKSRC}/include/config.php.sample
49         ${RM} -r ${WRKSRC}/log ${WRKSRC}/rra
50
51 do-install:
52         ${MKDIR} ${STAGEDIR}/${PREFIX}/${CACTIDIR}
53         ${MKDIR} ${STAGEDIR}/var/log/cacti
54         ${MKDIR} ${STAGEDIR}/var/db/cacti/rra
55         ${MKDIR} ${STAGEDIR}/var/db/cacti/scripts
56         cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${CACTIDIR} "! -name \.mdl*"
57
58 .include <bsd.port.mk>