# 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 subversion 2 Summary: Ganglia Kit Name: kit-ganglia Version: 3.1.1 Release: 2 License: BSD Group: System Environment/Base Vendor: Platform Computing Inc BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Source: kit-ganglia-%{version}.%{subversion}.tar.gz URL: http://www.platform.com %description This package is destined for the installer node and serves as an information container for the database for the Ganglia kit %prep %setup -q -n %{name} %build %install rm -rf $RPM_BUILD_ROOT docdir=$RPM_BUILD_ROOT/www plugdir=$RPM_BUILD_ROOT/plugins mkdir -p $docdir/kit_ganglia_doc_source mkdir -p $RPM_BUILD_ROOT/etc/rc.kusu.d # Add your own plugins if needed mkdir -p $plugdir/addhost #mkdir -p $plugdir/genconfig #mkdir -p $plugdir/ngedit mkdir -p $RPM_BUILD_ROOT/cfm /usr/bin/install -m 444 docs/*.html $docdir /usr/bin/install -m 444 docs/COPYING $docdir /usr/bin/install -m 444 docs/kit_ganglia_doc_source/* -t $docdir/kit_ganglia_doc_source /usr/bin/install -m 444 plugins/addhost/*.py $plugdir/addhost #/usr/bin/install -m 444 plugins/genconfig/*.py $plugdir/genconfig #/usr/bin/install -m 444 plugins/ngedit/*.py $plugdir/ngedit /usr/bin/install -m 444 kitinfo $RPM_BUILD_ROOT/kitinfo /usr/bin/install -m 444 cfm/gangliaconfig.rc.py $RPM_BUILD_ROOT/cfm/gangliaconfig.rc.py %clean rm -rf $RPM_BUILD_ROOT %files /kitinfo # documentation /www/index.html /www/readme.html /www/COPYING /www/kit_ganglia_doc_source # plugins /plugins/addhost/18-ganglia_3_0.py* /cfm/gangliaconfig.rc.py* %pre %post %preun %postun %changelog * Wed Feb 04 2009 Hirwan Salleh 3.1.1-2 - Port to Kit ASK 0.2 * Fri Jan 30 2009 Hirwan Salleh 3.1.1-1 - Use Ganglia version 3.1.1 - Fix ganglia conf path * Thu Sep 25 2008 Mike Frisch 3.0-5 - Use static uid/gid when adding ganglia user/group (#116132) * Tue Jul 28 2008 Mike Frisch 3.0-4 - Fixed issue with database to root escalation (#112896) * Tue May 27 2008 Shawn Starr 3.0-2 - Create user in case component is used on a different node group * Thu Apr 18 2008 Shawn Starr 3.0-1 - Initial release.