Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  6 Dec 2003 22:12:26 +0100 (CET)
From:      Vincent Tantardini <vinc@freebsd-fr.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/59996: [New Port] Cacti 0.8.4
Message-ID:  <20031206211226.DE62B20A@sativa.0x45.org>
Resent-Message-ID: <200312062120.hB6LKCEe042770@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         59996
>Category:       ports
>Synopsis:       [New Port] Cacti 0.8.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 06 13:20:12 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Vincent Tantardini
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
freebsd-fr.org
>Environment:
System: FreeBSD sativa.0x45.org 4.9-STABLE FreeBSD 4.9-STABLE #2: Tue Nov 4 20:28:55 CET 2003 vinc@sativa.0x45.org:/usr/obj/usr/src/sys/SATIVA i386


	
>Description:
	Web-driven graphing interface for RRDTool
>How-To-Repeat:
	
>Fix:

	

--- cacti.port begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cacti
#	cacti/pkg-descr
#	cacti/distinfo
#	cacti/Makefile
#	cacti/pkg-install
#	cacti/pkg-message
#	cacti/pkg-plist
#
echo c - cacti
mkdir -p cacti > /dev/null 2>&1
echo x - cacti/pkg-descr
sed 's/^X//' >cacti/pkg-descr << 'END-of-cacti/pkg-descr'
XOne drawback to RRDTool, is that by itself it is not a complete package for 
Xusers wanting to graph their own networks. This is where cacti's job comes 
Xin. Cacti brings the power of RRDTool to a friendly web interface making it 
Xeasy to graph anything using RRDTool.
X
XWWW: http://www.raxnet.net/products/cacti/
END-of-cacti/pkg-descr
echo x - cacti/distinfo
sed 's/^X//' >cacti/distinfo << 'END-of-cacti/distinfo'
XMD5 (cacti-0.8.4.tar.gz) = afa100acd57db792dd65f4443268a64d
END-of-cacti/distinfo
echo x - cacti/Makefile
sed 's/^X//' >cacti/Makefile << 'END-of-cacti/Makefile'
X# New ports collection makefile for:	cacti
X# Date created:		6 December 2003
X# Whom:			Vincent Tantardini <vinc@freebsd-fr.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	cacti
XPORTVERSION=	0.8.4
XCATEGORIES=	net
XMASTER_SITES=	http://www.raxnet.net/downloads/
X
XMAINTAINER=	vinc@freebsd-fr.org
XCOMMENT=	Web-driven graphing interface for RRDTool
X
XRUN_DEPENDS=	php:${PORTSDIR}/lang/php4 \
X		rrdtool:${PORTSDIR}/net/rrdtool \
X		net-snmp:${PORTSDIR}/net/net-snmp
X
XUSE_MYSQL=	yes
X
XNO_BUILD=	yes
X
XCACTIDIR?=	share/cacti
XUSER?=		cacti
XGROUP?=		${USER}
X
Xpre-install:
X	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/${CACTIDIR}/
X	@${CP} -R ${WRKSRC}/* ${PREFIX}/${CACTIDIR}/
X
Xpost-install:
X	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-cacti/Makefile
echo x - cacti/pkg-install
sed 's/^X//' >cacti/pkg-install << 'END-of-cacti/pkg-install'
X#!/bin/sh
X
XPW=/usr/sbin/pw
XCACTIDIR=share/cacti
XUSER=cacti
XGROUP=${USER}
X
Xcase $2 in
X
XPRE-INSTALL)
X
X	if ${PW} group show "${GROUP}" 2>/dev/null; then
X		echo "You already have a group \"${GROUP}\", so I will use it."
X	else
X		if ${PW} groupadd ${GROUP}; then
X			echo "Added group \"${GROUP}\"."
X		else
X			echo "Adding group \"${GROUP}\" failed..."
X			exit 1
X		fi
X	fi
X
X	if ${PW} user show "${USER}" 2>/dev/null; then
X		echo "You already have a user \"${USER}\", so I will use it."
X	else
X		if ${PW} useradd ${USER} -g ${GROUP} -h - \
X			-d "/nonexistent" -s /sbin/nologin -c "Cacti Sandbox"
X		then
X			echo "Added user \"${USER}\"."
X		else
X			echo "Adding user \"${USER}\" failed..."
X			exit 1
X		fi
X	fi
X	;;
X
XPOST-INSTALL)
X
X	chown ${USER}:${GROUP} ${PKG_PREFIX}/${CACTIDIR}/log/
X	chown ${USER}:${GROUP} ${PKG_PREFIX}/${CACTIDIR}/rra/
X	;;
X*)
X	exit 1
X;;
Xesac
Xexit
END-of-cacti/pkg-install
echo x - cacti/pkg-message
sed 's/^X//' >cacti/pkg-message << 'END-of-cacti/pkg-message'
X==========================================================
XCacti is now installed. You may have to follow this steps
Xto make it work correctly.
X
X1: Create the MySQL database
X# mysqladmin --user=root create cacti
X2: Create a mysql user/password for cacti
X# echo "CREATE DATABASE cacti;
XGRANT ALL ON cacti.* TO cactiuser at localhost \ 
XIDENTIFIED BY 'cactiuser';
XFLUSH PRIVILEGES;" | mysql &&
X3: Import the default cacti database
X# mysql cacti < ${PREFIX}/${CACTIDIR}/cacti.sql
X4: Edit your config.php
XSpecify the MySQL user, password and database for 
Xyour cacti configuration.
X7: Add a line to your /etc/crontab file similar to:
X*/5 * * * * cactiuser php /var/www/html/cacti/cmd.php \
X> /dev/null 2>&1
X
XHave fun!
X==========================================================
END-of-cacti/pkg-message
echo x - cacti/pkg-plist
sed 's/^X//' >cacti/pkg-plist << 'END-of-cacti/pkg-plist'
X%CACTIDIR%/LICENSE
X%CACTIDIR%/README
X%CACTIDIR%/about.php
X%CACTIDIR%/auth_changepassword.php
X%CACTIDIR%/auth_login.php
X%CACTIDIR%/cacti.sql
X%CACTIDIR%/cactid/.deps/cactid.Po
X%CACTIDIR%/cactid/.deps/locks.Po
X%CACTIDIR%/cactid/.deps/poller.Po
X%CACTIDIR%/cactid/.deps/rrd.Po
X%CACTIDIR%/cactid/.deps/snmp.Po
X%CACTIDIR%/cactid/.deps/sql.Po
X%CACTIDIR%/cactid/.deps/util.Po
X%CACTIDIR%/cactid/AUTHORS
X%CACTIDIR%/cactid/COPYING
X%CACTIDIR%/cactid/ChangeLog
X%CACTIDIR%/cactid/INSTALL
X%CACTIDIR%/cactid/Makefile.am
X%CACTIDIR%/cactid/Makefile.in
X%CACTIDIR%/cactid/NEWS
X%CACTIDIR%/cactid/README
X%CACTIDIR%/cactid/aclocal.m4
X%CACTIDIR%/cactid/cactid.c
X%CACTIDIR%/cactid/cactid.conf
X%CACTIDIR%/cactid/cactid.h
X%CACTIDIR%/cactid/common.h
X%CACTIDIR%/cactid/config/config.guess
X%CACTIDIR%/cactid/config/config.h.in
X%CACTIDIR%/cactid/config/config.h.in~
X%CACTIDIR%/cactid/config/config.sub
X%CACTIDIR%/cactid/config/depcomp
X%CACTIDIR%/cactid/config/install-sh
X%CACTIDIR%/cactid/config/missing
X%CACTIDIR%/cactid/config/mkinstalldirs
X%CACTIDIR%/cactid/config/stamp-h
X%CACTIDIR%/cactid/config/stamp-h.in
X%CACTIDIR%/cactid/config/stamp-h1
X%CACTIDIR%/cactid/configure
X%CACTIDIR%/cactid/configure.ac
X%CACTIDIR%/cactid/locks.c
X%CACTIDIR%/cactid/locks.h
X%CACTIDIR%/cactid/poller.c
X%CACTIDIR%/cactid/poller.h
X%CACTIDIR%/cactid/rrd.c
X%CACTIDIR%/cactid/rrd.h
X%CACTIDIR%/cactid/snmp.c
X%CACTIDIR%/cactid/snmp.h
X%CACTIDIR%/cactid/sql.c
X%CACTIDIR%/cactid/sql.h
X%CACTIDIR%/cactid/util.c
X%CACTIDIR%/cactid/util.h
X%CACTIDIR%/cdef.php
X%CACTIDIR%/cmd.php
X%CACTIDIR%/color.php
X%CACTIDIR%/data_input.php
X%CACTIDIR%/data_sources.php
X%CACTIDIR%/data_templates.php
X%CACTIDIR%/docs/CHANGELOG
X%CACTIDIR%/docs/CONTRIB
X%CACTIDIR%/docs/FAQ.htm
X%CACTIDIR%/docs/INSTALL-WIN32.htm
X%CACTIDIR%/docs/INSTALL.htm
X%CACTIDIR%/docs/README
X%CACTIDIR%/docs/UPGRADE.htm
X%CACTIDIR%/docs/manual/cacti.gif
X%CACTIDIR%/docs/manual/index.htm
X%CACTIDIR%/docs/manual/main.css
X%CACTIDIR%/docs/manual/section1.htm
X%CACTIDIR%/docs/manual/section2.htm
X%CACTIDIR%/docs/manual/section2_1.htm
X%CACTIDIR%/docs/manual/section2_2.htm
X%CACTIDIR%/docs/manual/section3.htm
X%CACTIDIR%/docs/manual/section4.htm
X%CACTIDIR%/docs/manual/section4_1.htm
X%CACTIDIR%/docs/manual/section4_2.htm
X%CACTIDIR%/docs/manual/section4_3.htm
X%CACTIDIR%/docs/manual/section5.htm
X%CACTIDIR%/docs/manual/section5_1.htm
X%CACTIDIR%/docs/manual/section5_2.htm
X%CACTIDIR%/docs/manual/section6.htm
X%CACTIDIR%/docs/manual/section6_1.htm
X%CACTIDIR%/docs/manual/section6_2.htm
X%CACTIDIR%/docs/manual/section7.htm
X%CACTIDIR%/docs/manual/section8.htm
X%CACTIDIR%/docs/manual/section8_1.htm
X%CACTIDIR%/docs/manual/section8_2.htm
X%CACTIDIR%/docs/manual/section8_3.htm
X%CACTIDIR%/gprint_presets.php
X%CACTIDIR%/graph.php
X%CACTIDIR%/graph_image.php
X%CACTIDIR%/graph_settings.php
X%CACTIDIR%/graph_templates.php
X%CACTIDIR%/graph_templates_inputs.php
X%CACTIDIR%/graph_templates_items.php
X%CACTIDIR%/graph_view.php
X%CACTIDIR%/graphs.php
X%CACTIDIR%/graphs_items.php
X%CACTIDIR%/graphs_new.php
X%CACTIDIR%/host.php
X%CACTIDIR%/host_templates.php
X%CACTIDIR%/images/arrow.gif
X%CACTIDIR%/images/auth_deny.gif
X%CACTIDIR%/images/auth_login.gif
X%CACTIDIR%/images/button_add.gif
X%CACTIDIR%/images/button_cancel.gif
X%CACTIDIR%/images/button_cancel2.gif
X%CACTIDIR%/images/button_create.gif
X%CACTIDIR%/images/button_delete.gif
X%CACTIDIR%/images/button_go.gif
X%CACTIDIR%/images/button_no.gif
X%CACTIDIR%/images/button_save.gif
X%CACTIDIR%/images/button_view.gif
X%CACTIDIR%/images/button_yes.gif
X%CACTIDIR%/images/cacti_backdrop.gif
X%CACTIDIR%/images/cacti_backdrop2.gif
X%CACTIDIR%/images/cacti_logo.gif
X%CACTIDIR%/images/delete_icon.gif
X%CACTIDIR%/images/delete_icon_large.gif
X%CACTIDIR%/images/gray_line.gif
X%CACTIDIR%/images/hide.gif
X%CACTIDIR%/images/left_border.gif
X%CACTIDIR%/images/menu_line.gif
X%CACTIDIR%/images/move_down.gif
X%CACTIDIR%/images/move_up.gif
X%CACTIDIR%/images/raxnet_logo.gif
X%CACTIDIR%/images/reload_icon_small.gif
X%CACTIDIR%/images/shadow.gif
X%CACTIDIR%/images/shadow_gray.gif
X%CACTIDIR%/images/show.gif
X%CACTIDIR%/images/tab_cacti.gif
X%CACTIDIR%/images/tab_console.gif
X%CACTIDIR%/images/tab_graphs.gif
X%CACTIDIR%/images/tab_mode_list.gif
X%CACTIDIR%/images/tab_mode_list_down.gif
X%CACTIDIR%/images/tab_mode_preview.gif
X%CACTIDIR%/images/tab_mode_preview_down.gif
X%CACTIDIR%/images/tab_mode_tree.gif
X%CACTIDIR%/images/tab_mode_tree_down.gif
X%CACTIDIR%/images/tab_settings.gif
X%CACTIDIR%/images/tab_settings_down.gif
X%CACTIDIR%/images/transparent_line.gif
X%CACTIDIR%/include/auth.php
X%CACTIDIR%/include/bottom_footer.php
X%CACTIDIR%/include/config.php
X%CACTIDIR%/include/config_arrays.php
X%CACTIDIR%/include/config_form.php
X%CACTIDIR%/include/config_settings.php
X%CACTIDIR%/include/layout.js
X%CACTIDIR%/include/main.css
X%CACTIDIR%/include/top_graph_header.php
X%CACTIDIR%/include/top_header.php
X%CACTIDIR%/include/treeview/ftiens4.js
X%CACTIDIR%/include/treeview/ftv2blank.gif
X%CACTIDIR%/include/treeview/ftv2lastnode.gif
X%CACTIDIR%/include/treeview/ftv2mlastnode.gif
X%CACTIDIR%/include/treeview/ftv2mnode.gif
X%CACTIDIR%/include/treeview/ftv2node.gif
X%CACTIDIR%/include/treeview/ftv2plastnode.gif
X%CACTIDIR%/include/treeview/ftv2pnode.gif
X%CACTIDIR%/include/treeview/ftv2vertline.gif
X%CACTIDIR%/include/treeview/ua.js
X%CACTIDIR%/index.php
X%CACTIDIR%/install/0_8_1_to_0_8_2.php
X%CACTIDIR%/install/0_8_2_to_0_8_2a.php
X%CACTIDIR%/install/0_8_2a_to_0_8_3.php
X%CACTIDIR%/install/0_8_3_to_0_8_4.php
X%CACTIDIR%/install/0_8_to_0_8_1.php
X%CACTIDIR%/install/index.php
X%CACTIDIR%/install/install_finish.gif
X%CACTIDIR%/install/install_next.gif
X%CACTIDIR%/lib/adodb/adodb-connection.inc.php
X%CACTIDIR%/lib/adodb/adodb-cryptsession.php
X%CACTIDIR%/lib/adodb/adodb-csvlib.inc.php
X%CACTIDIR%/lib/adodb/adodb-datadict.inc.php
X%CACTIDIR%/lib/adodb/adodb-errorhandler.inc.php
X%CACTIDIR%/lib/adodb/adodb-errorpear.inc.php
X%CACTIDIR%/lib/adodb/adodb-lib.inc.php
X%CACTIDIR%/lib/adodb/adodb-pager.inc.php
X%CACTIDIR%/lib/adodb/adodb-pear.inc.php
X%CACTIDIR%/lib/adodb/adodb-recordset.inc.php
X%CACTIDIR%/lib/adodb/adodb-session.php
X%CACTIDIR%/lib/adodb/adodb-time.inc.php
X%CACTIDIR%/lib/adodb/adodb.inc.php
X%CACTIDIR%/lib/adodb/crypt.inc.php
X%CACTIDIR%/lib/adodb/datadict/datadict-mssql.inc.php
X%CACTIDIR%/lib/adodb/datadict/datadict-mysql.inc.php
X%CACTIDIR%/lib/adodb/datadict/datadict-oci8.inc.php
X%CACTIDIR%/lib/adodb/datadict/datadict-postgres.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-access.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-ado.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-ado_access.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-ado_mssql.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-borland_ibase.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-csv.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-db2.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-fbsql.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-firebird.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-ibase.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-informix.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-informix72.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-mssql.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-mssqlpo.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-mysql.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-mysqlt.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-oci8.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-oci805.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-oci8po.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-odbc.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-odbc_mssql.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-odbc_oracle.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-oracle.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-postgres.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-postgres64.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-postgres7.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-proxy.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-sqlanywhere.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-sybase.inc.php
X%CACTIDIR%/lib/adodb/drivers/adodb-vfp.inc.php
X%CACTIDIR%/lib/adodb/license.txt
X%CACTIDIR%/lib/adodb/pivottable.inc.php
X%CACTIDIR%/lib/adodb/rsfilter.inc.php
X%CACTIDIR%/lib/adodb/server.php
X%CACTIDIR%/lib/adodb/toexport.inc.php
X%CACTIDIR%/lib/adodb/tohtml.inc.php
X%CACTIDIR%/lib/auth.php
X%CACTIDIR%/lib/cdef.php
X%CACTIDIR%/lib/database.php
X%CACTIDIR%/lib/export.php
X%CACTIDIR%/lib/form.php
X%CACTIDIR%/lib/functions.php
X%CACTIDIR%/lib/graph_export.php
X%CACTIDIR%/lib/import.php
X%CACTIDIR%/lib/rrd.php
X%CACTIDIR%/lib/snmp.php
X%CACTIDIR%/lib/template.php
X%CACTIDIR%/lib/tree.php
X%CACTIDIR%/lib/tree_view.php
X%CACTIDIR%/lib/utility.php
X%CACTIDIR%/lib/xml.php
X%CACTIDIR%/log/rrd.log
X%CACTIDIR%/logout.php
X%CACTIDIR%/resource/script_queries/host_cpu.xml
X%CACTIDIR%/resource/script_queries/host_disk.xml
X%CACTIDIR%/resource/script_queries/unix_disk.xml
X%CACTIDIR%/resource/snmp_queries/host_disk.xml
X%CACTIDIR%/resource/snmp_queries/interface.xml
X%CACTIDIR%/resource/snmp_queries/kbridge.xml
X%CACTIDIR%/resource/snmp_queries/net-snmp_disk.xml
X%CACTIDIR%/resource/snmp_queries/netware_cpu.xml
X%CACTIDIR%/resource/snmp_queries/netware_disk.xml
X%CACTIDIR%/rra.php
X%CACTIDIR%/rra/.placeholder
X%CACTIDIR%/scripts/3com_cable_modem.pl
X%CACTIDIR%/scripts/diskfree.pl
X%CACTIDIR%/scripts/linux_memory.pl
X%CACTIDIR%/scripts/loadavg.pl
X%CACTIDIR%/scripts/loadavg_multi.pl
X%CACTIDIR%/scripts/ping.pl
X%CACTIDIR%/scripts/query_host_cpu.php
X%CACTIDIR%/scripts/query_host_partitions.php
X%CACTIDIR%/scripts/query_unix_partitions.pl
X%CACTIDIR%/scripts/sql.php
X%CACTIDIR%/scripts/unix_processes.pl
X%CACTIDIR%/scripts/unix_tcp_connections.pl
X%CACTIDIR%/scripts/unix_users.pl
X%CACTIDIR%/scripts/weatherbug.pl
X%CACTIDIR%/scripts/webhits.pl
X%CACTIDIR%/settings.php
X%CACTIDIR%/snmp.php
X%CACTIDIR%/templates_export.php
X%CACTIDIR%/templates_import.php
X%CACTIDIR%/tree.php
X%CACTIDIR%/user_admin.php
X%CACTIDIR%/utilities.php
X@dirrm %CACTIDIR%/scripts
X@dirrm %CACTIDIR%/rra
X@dirrm %CACTIDIR%/resource/snmp_queries
X@dirrm %CACTIDIR%/resource/script_queries
X@dirrm %CACTIDIR%/resource
X@dirrm %CACTIDIR%/log
X@dirrm %CACTIDIR%/lib/adodb/drivers
X@dirrm %CACTIDIR%/lib/adodb/datadict
X@dirrm %CACTIDIR%/lib/adodb
X@dirrm %CACTIDIR%/lib
X@dirrm %CACTIDIR%/install
X@dirrm %CACTIDIR%/include/treeview
X@dirrm %CACTIDIR%/include
X@dirrm %CACTIDIR%/images
X@dirrm %CACTIDIR%/docs/manual
X@dirrm %CACTIDIR%/docs
X@dirrm %CACTIDIR%/cactid/config
X@dirrm %CACTIDIR%/cactid/.deps
X@dirrm %CACTIDIR%/cactid
X@dirrm %CACTIDIR%
END-of-cacti/pkg-plist
exit
--- cacti.port ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031206211226.DE62B20A>