# Copyright (C) 2007 Platform Computing Inc # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA %define _name cacti %define subversion 1 Summary: kit-cacti package Name: kit-cacti Version: 0.8.7b Release: 45 License: LGPL Group: System Environment/Base Vendor: Platform Computing Corporation BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRequires: python, shadow-utils Requires: MySQL-python Source0: %{name}-%{version}.%{subversion}.tar.gz %description Cacti kit. %prep %setup -q -n %{name} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/plugins/addhost install -m644 kitinfo $RPM_BUILD_ROOT/kitinfo install -m755 plugins/addhost/10-cacti.py $RPM_BUILD_ROOT/plugins/addhost/10-cacti.py # Documentation docdir=$RPM_BUILD_ROOT/www install -d $docdir/kit_cacti_doc_source install -m 444 docs/cacti.index.html $docdir/index.html install -m 444 docs/cacti.readme.html $docdir/readme.html install -m 444 docs/kit_cacti_doc_source/* -t $docdir/kit_cacti_doc_source %files /kitinfo /plugins/addhost/10-cacti.py /plugins/addhost/10-cacti.pyc /plugins/addhost/10-cacti.pyo %dir /www/kit_cacti_doc_source /www/index.html /www/readme.html /www/kit_cacti_doc_source/* %changelog * Thu Feb 5 2009 Kunal Chowdhury 0.1-45 - Ported to kit api version 0.2 * Tue Feb 2 2009 Meng Kuan 0.1-44 - Final release of the old-style kits * Thu Sep 25 2008 Mike Frisch 0.1-43 - Specify UID/GID when creating cacti user/group (#116051) * Mon Jul 7 2008 Mike Frisch 0.1-42 - Fix for problem #111415, change sys.stderror to sys.stderr and make exception non-fatal * Wed Jun 4 2008 Mike Frisch 0.1-40 - Added kit documentation (#109805) * Tue May 27 2008 Shawn Starr 0.1-39 - Create user in case component is used on a different node group * Thu Mar 27 2008 Mike Frisch 0.1-36 - Removed AutoReq tag at the request of Red Hat * Thu Mar 20 2008 Mike Frisch 0.1-35 - Change location of Kusu installer lock file