diff options
author | Martin Holzer <mholzer@gentoo.org> | 2003-09-01 17:31:04 +0000 |
---|---|---|
committer | Martin Holzer <mholzer@gentoo.org> | 2003-09-01 17:31:04 +0000 |
commit | 22efa590087b3fc7fae1dec2e9553b7d5744d5e3 (patch) | |
tree | 8ac6ded0fa76950c8ef3469b78f60ff556c29b5e /net-analyzer/cacti | |
parent | Version bumped. (diff) | |
download | historical-22efa590087b3fc7fae1dec2e9553b7d5744d5e3.tar.gz historical-22efa590087b3fc7fae1dec2e9553b7d5744d5e3.tar.bz2 historical-22efa590087b3fc7fae1dec2e9553b7d5744d5e3.zip |
Version bumped.
Diffstat (limited to 'net-analyzer/cacti')
-rw-r--r-- | net-analyzer/cacti/Manifest | 4 | ||||
-rw-r--r-- | net-analyzer/cacti/cacti-0.8.3a.ebuild | 115 | ||||
-rw-r--r-- | net-analyzer/cacti/files/digest-cacti-0.8.3a | 1 |
3 files changed, 118 insertions, 2 deletions
diff --git a/net-analyzer/cacti/Manifest b/net-analyzer/cacti/Manifest index 3cba960bb3b3..ab8ed36a5322 100644 --- a/net-analyzer/cacti/Manifest +++ b/net-analyzer/cacti/Manifest @@ -1,10 +1,10 @@ -MD5 f4cb7bd493449d1dace3a94ef620219a ChangeLog 1608 +MD5 4045b3507c78eb4385468d9495ea9861 ChangeLog 1727 MD5 d96fabbabcc5309989f97c185cc8c6de cacti-0.6.8a.ebuild 1482 MD5 4a83ea90dd510dbc3a375697bdb5d322 cacti-0.8.1.ebuild 4026 MD5 4c987af71ae2cf59646137f58eaf9f9b cacti-0.8.1-r1.ebuild 4045 MD5 93972dff8384bda354cd64bff2d6b6d6 cacti-0.8.2a.ebuild 4043 MD5 b15775a0e1e4e88236f8d66bf4de988d cacti-0.8.3.ebuild 4042 -MD5 b15775a0e1e4e88236f8d66bf4de988d cacti-0.8.3a.ebuild 4042 +MD5 c2597790dff6b0fa37a095f9d18afb65 cacti-0.8.3a.ebuild 4043 MD5 36cff775a40a01ca080d9b290109a795 files/digest-cacti-0.6.8a 64 MD5 f1e420ab088a8222b4020ab76a92c387 files/digest-cacti-0.8.1 63 MD5 f1e420ab088a8222b4020ab76a92c387 files/digest-cacti-0.8.1-r1 63 diff --git a/net-analyzer/cacti/cacti-0.8.3a.ebuild b/net-analyzer/cacti/cacti-0.8.3a.ebuild new file mode 100644 index 000000000000..57b3588414f3 --- /dev/null +++ b/net-analyzer/cacti/cacti-0.8.3a.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/cacti-0.8.3a.ebuild,v 1.1 2003/09/01 17:30:54 mholzer Exp $ + +inherit eutils + +DESCRIPTION="Cacti is a complete frondend to rrdtool" +HOMEPAGE="http://www.raxnet.net/products/cacti/" +SRC_URI="http://www.raxnet.net/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha" +IUSE="snmp" + +DEPEND="" +RDEPEND="net-www/apache + snmp? ( virtual/snmp ) + net-analyzer/rrdtool + dev-db/mysql + dev-php/php + dev-php/mod_php" + +export HTTPD_ROOT=/home/httpd/htdocs +export HTTPD_USER=apache +export HTTPD_GROUP=apache +export INSTALL_DEST=${HTTPD_ROOT}/cacti + +src_install() { + dohtml docs/{INSTALL,UPGRADE}.htm + dodoc docs/{CHANGELOG,CONTRIB} + dodoc LICENSE + + rm docs/{INSTALL,UPGRADE,INSTALL-WIN32}.htm + rm docs/{README,CHANGELOG,CONTRIB} + rm LICENSE README + + mv docs/manual . + rm -fr docs + rm -rf cactid + + dodir ${INSTALL_DEST} + edos2unix `find -type f -name '*.php'` + chown -R ${HTTPD_USER}.${HTTPD_GROUP} * + mv * ${D}/${INSTALL_DEST}/ +} + +pkg_postinst() { + # check to see if we have a previous version installed + minor_inst="$(ls -d /var/db/pkg/net-analyzer/cacti*|head -n 1|cut -d\. -f2)" + rel_inst="$(ls -d /var/db/pkg/net-analyzer/cacti*|head -n 1|cut -d\. -f3)" + if [ ${minor_inst}${rel_inst} -lt 81 ] + then + einfo + einfo "The cacti has been installed to ${INSTALL_DEST}" + einfo + einfo "Before cacti works you must upgrade the cacti database:" + einfo "1. Backup the old cacti database:" + einfo " shell> mysqlhotcopy --suffix=_old cacti" + einfo "2. Drop the old cacti database:" + einfo " shell> mysqladmin -p drop cacti" + einfo "3. Create the new cacti database" + einfo " shell> mysqladmin --user=root create cacti" + einfo "4. Import the default cacti database:" + einfo " shell> mysql cacti < ${INSTALL_DEST}/cacti.sql" + einfo "5. Edit ${INSTALL_DEST}/include/config.php." + einfo " + Modify the MySQL user, password and database for your" + einfo " cacti configuration." + einfo " \$database_default = \"cacti\";" + einfo " \$database_hostname = \"localhost\";" + einfo " \$database_username = \"cactiuser\";" + einfo " \$database_password = \"cacti\";" + einfo "6. Point your web browser to: http://your-server/cacti/" + einfo " Select \"Upgrade\"." + einfo " Make sure to fill in all of the path variables carefully and" + einfo " correctly on the following screen." + einfo + einfo "FINALLY, you must have these settings in your php.ini:" + einfo " register_globals = On" + einfo " register_argc_argv = On" + einfo + einfo "Test your upgraded installation. When all is fine you can" + eingo "drop the cacti_old database like so:" + einfo " shell> mysqladmin -p drop cacti_old" + einfo + else + einfo + einfo "The cacti has been copied to ${INSTALL_DEST}" + einfo + einfo "Before cacti works you must:" + einfo "1. Create the new cacti database" + einfo " shell> mysqladmin --user=root create cacti" + einfo "2. Import the default cacti database:" + einfo " shell> mysql cacti < ${INSTALL_DEST}/cacti.sql" + einfo "3. Optional: Create a MySQL username and password for cacti." + einfo " shell> mysql --user=root mysql" + einfo " mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';" + einfo " mysql> flush privileges;" + einfo "4. Edit ${INSTALL_DEST}/include/config.php." + einfo " + Modify the MySQL user, password and database for your" + einfo " cacti configuration." + einfo " \$database_default = \"cacti\";" + einfo " \$database_hostname = \"localhost\";" + einfo " \$database_username = \"cactiuser\";" + einfo " \$database_password = \"cacti\";" + einfo "5. Point your web browser to: http://your-server/cacti/" + einfo " Make sure to fill in all of the path variables carefully and" + einfo " correctly on the following screen." + einfo + einfo "FINALLY, you must have these settings in your php.ini:" + einfo " register_globals = On" + einfo " register_argc_argv = On" + einfo + fi +} diff --git a/net-analyzer/cacti/files/digest-cacti-0.8.3a b/net-analyzer/cacti/files/digest-cacti-0.8.3a new file mode 100644 index 000000000000..62992274bbf7 --- /dev/null +++ b/net-analyzer/cacti/files/digest-cacti-0.8.3a @@ -0,0 +1 @@ +MD5 3a0a0af817868892d78ff9243b321858 cacti-0.8.3a.tar.gz 538644 |