From cd8d47f0ac0aa0b205a122277290fa2c07034651 Mon Sep 17 00:00:00 2001 From: saiprakash Date: Wed, 19 Nov 2008 14:26:44 +0000 Subject: [PATCH] ganglia-web build notes and spec file --- AIX/ganglia/Build-notes.txt | 19 ++++++++++++++++ AIX/ganglia/ganglia-web.spec | 43 ++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 AIX/ganglia/Build-notes.txt create mode 100644 AIX/ganglia/ganglia-web.spec diff --git a/AIX/ganglia/Build-notes.txt b/AIX/ganglia/Build-notes.txt new file mode 100644 index 0000000..5309330 --- /dev/null +++ b/AIX/ganglia/Build-notes.txt @@ -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 diff --git a/AIX/ganglia/ganglia-web.spec b/AIX/ganglia/ganglia-web.spec new file mode 100644 index 0000000..d7061b3 --- /dev/null +++ b/AIX/ganglia/ganglia-web.spec @@ -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)