mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
8142b4e5fe
Changelog: https://github.com/Cacti/cacti/blob/release/1.2.12/CHANGELOG PR: 246161 Submitted by: Michael Muenz <m.muenz@gmail.com> (maintainer) MFH: 2020Q2 X-MFH-with: 531284 Security: cd864f1a-8e5a-11ea-b5b4-641c67a117d8
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cacti
|
|
PORTVERSION= 1.2.12
|
|
CATEGORIES= net-mgmt www
|
|
MASTER_SITES= http://www.cacti.net/downloads/ \
|
|
ftp://ftpmirror.uk/freebsd-ports/cacti/
|
|
|
|
MAINTAINER= m.muenz@gmail.com
|
|
COMMENT= Web-driven graphing interface for RRDTool
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= rrdtool:databases/rrdtool
|
|
|
|
USES= cpe mysql php:web shebangfix
|
|
|
|
USE_PHP= ctype filter gd gettext gmp hash json ldap mbstring openssl pcre pdo pdo_mysql posix session simplexml sockets snmp xml zlib
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
SUB_FILES= pkg-message
|
|
SHEBANG_FILES= scripts/3com_cable_modem.pl \
|
|
scripts/diskfree.pl \
|
|
scripts/linux_memory.pl \
|
|
scripts/loadavg.pl \
|
|
scripts/loadavg_multi.pl \
|
|
scripts/ping.pl \
|
|
scripts/query_unix_partitions.pl \
|
|
scripts/unix_processes.pl \
|
|
scripts/unix_tcp_connections.pl \
|
|
scripts/unix_users.pl \
|
|
scripts/weatherbug.pl \
|
|
scripts/webhits.pl
|
|
|
|
CACTIDIR?= share/cacti
|
|
CACTIUSER?= cacti
|
|
CACTIGROUP?= cacti
|
|
|
|
USERS?= ${CACTIUSER}
|
|
GROUPS?= ${CACTIGROUP}
|
|
|
|
PLIST_SUB= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \
|
|
CACTIGROUP=${CACTIGROUP}
|
|
SUB_LIST= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \
|
|
CACTIGROUP=${CACTIGROUP}
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name \*.orig -delete; \
|
|
${MV} ${WRKSRC}/include/config.php ${WRKSRC}/include/config.php.sample
|
|
${RM} -r ${WRKSRC}/log ${WRKSRC}/rra
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}/${PREFIX}/${CACTIDIR}
|
|
${MKDIR} ${STAGEDIR}/var/log/cacti
|
|
${MKDIR} ${STAGEDIR}/var/db/cacti/rra
|
|
${MKDIR} ${STAGEDIR}/var/db/cacti/scripts
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${CACTIDIR} "! -name \.mdl*"
|
|
|
|
.include <bsd.port.mk>
|