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)