2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-23 01:51:54 +00:00

ganglia-web build notes and spec file

This commit is contained in:
saiprakash 2008-11-19 14:26:44 +00:00
parent 30fdf8e82d
commit cd8d47f0ac
2 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,19 @@
Build Notes
Download ganglia-web-MPerzl.tar.gz
(http://www.perzl.org/ganglia/webinterface.html. If it is available as bz2 convert
into gz file)
Copy the gz file to the SOURCES directory.
cp ganglia-web-MPerzl.tar.gz /opt/freeware/src/packages/SOURCES
Remove any old RPMs
rm -f /opt/freeware/src/packages/SRPMS/ganglia-web*rpm /opt/freeware/src/packages/RPMS/ppc/ganglia-web*rpm
Use the spec file provided to build the RPM.
rpm -ba ganglia-web.spec
Creates:
/opt/freeware/src/packages/SRPMS/ganglia-web-3.0-5.src.rpm
/opt/freeware/src/packages/RPMS/ppc/ganglia-web-3.0-5.aix5.3.ppc.rpm

View File

@ -0,0 +1,43 @@
Summary: Metapackage for Ganglia-Web interface on AIX
Name: ganglia-web
Version: 5.0
Release: 1
License: EPL
Group: Applications/System
Vendor: IBM Corp.
Packager: IBM Corp.
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
BuildArch: ppc
Source1: ganglia-web-MPerzl.tar.gz
Provides: ganglia-web = %{version}
%description
Installs Ganglia web interface
%prep
%build
%install
mkdir -p $RPM_BUILD_ROOT/var/www/htdocs
cp %{SOURCE1} $RPM_BUILD_ROOT/var/www/htdocs
%post
cd /usr/local
# uwrap
gunzip /var/www/htdocs/ganglia-web-MPerzl.tar.gz
tar -xvf /var/www/htdocs/ganglia-web-MPerzl.tar
%clean
%files
/var/www/htdocs/ganglia-web-MPerzl.tar.gz
%defattr(-,root,root)