bump revision of ganglia
authordauphing
Tue, 06 Jan 2009 14:35:37 +0000
changeset 1603 89df13fae727
parent 1602 0a8d3bb2cc10
child 1604 c00068df9cea
bump revision of ganglia
ChangeLog
SFEconfuse.spec
SFEganglia311.spec
patches/confuse-01-solaris.diff
--- a/ChangeLog	Tue Jan 06 00:34:18 2009 +0000
+++ b/ChangeLog	Tue Jan 06 14:35:37 2009 +0000
@@ -1,3 +1,10 @@
+2009-01-05  Gilles Dauphin <[email protected]>
+
+	* add SFEconfuse.spec, patches/confuse-01-solaris.diff
+	* add a duplicate SFEganglia311.spec (dup of SFEganglia)
+          but compile with Studio12 and bump revision to 3.1.1
+	* work from G.Henry . I only commit it. Thanks to Gerard. :)
+
 2009-01-05  Brian Cameron  <[email protected]>
 
 	* SFEimlib2.spec: Bump to 1.4.2.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEconfuse.spec	Tue Jan 06 14:35:37 2009 +0000
@@ -0,0 +1,64 @@
+#
+# Copyright 2007 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+
+%include Solaris.inc
+
+%define src_name confuse
+%define src_url http://bzero.se/%{src_name}
+
+Name:                SFEconfuse
+Summary:             libConfuse is a configuration file parser library
+Version:             2.6
+Source:              %{src_url}/%{src_name}-%{version}.tar.gz
+Patch1:              confuse-01-solaris.diff
+SUNW_BaseDir:        %{_basedir}
+BuildRoot:           %{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+
+Requires: SUNWgccruntime
+
+%prep
+%setup -q -n %{src_name}-%version
+%patch1 -p1
+
+%build
+
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+     CPUS=1
+fi
+
+# This source is gcc-centric, therefore...
+export CC=/usr/sfw/bin/gcc
+# export CFLAGS="%optflags"
+export CFLAGS="-O4 -fPIC -DPIC -Xlinker -i -fno-omit-frame-pointer"
+
+export LDFLAGS="%_ldflags"
+
+./configure --prefix=%{_prefix}  \
+            --mandir=%{_mandir} 
+
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+%{_datadir}/*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*
+%dir %attr (0755, root, bin) %{_includedir}
+%{_includedir}/*
+
+%changelog
+* Wed Dec 31 2008 - Gerard Henry
+- Initial spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEganglia311.spec	Tue Jan 06 14:35:37 2009 +0000
@@ -0,0 +1,79 @@
+#
+# Copyright 2007 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+
+%include Solaris.inc
+
+Name:                SFEganglia
+Summary:             Ganglia cluster monitor, monitoring daemon
+Version:             3.1.1
+Source:              %{sf_download}/ganglia/ganglia-%{version}.tar.gz
+#Patch1:              ganglia-01-solaris.diff
+SUNW_BaseDir:        %{_basedir}
+BuildRoot:           %{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+
+Requires: SUNWgccruntime
+Requires: SFEcheck
+BuildRequires: SFEcheck
+
+# If gmetad support is desired, then see documentation about
+# needing rrdtool, etc. and uncomment the following line:
+# BuildRequires: SFErrdtool
+# Also see --with-gmetad below...
+
+%prep
+%setup -q -n ganglia-%version
+#%patch1 -p1
+
+%build
+
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+     CPUS=1
+fi
+
+export CC=cc
+export CFLAGS="%optflags"
+export LDFLAGS="%_ldflags -R/usr/apr/1.3/lib -L/usr/apr/1.3/lib"
+
+./configure --prefix=%{_prefix}  \
+            --mandir=%{_mandir} \
+         --with-gmetad
+
+# If gmetad support is desired, enable:
+#         --with-gmetad
+# and see doc about needing rrdtool...
+
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install DESTDIR=$RPM_BUILD_ROOT
+
+rm ${RPM_BUILD_ROOT}%{_libdir}/libganglia.la
+rm ${RPM_BUILD_ROOT}%{_libdir}/libganglia.a
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*
+%dir %attr (0755, root, bin) %{_sbindir}
+%{_sbindir}/*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*
+%dir %attr (0755, root, bin) %{_includedir}
+%{_includedir}/*
+
+%changelog
+* Mon Mar 19 2007 - [email protected]
+- Fixed -fno-omit-frame-pointer flag
+* Sun Nov 05 2006 - Eric Boutilier
+- Force gcc
+* Sun Sep 24 2006 - Eric Boutilier
+- Initial spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/confuse-01-solaris.diff	Tue Jan 06 14:35:37 2009 +0000
@@ -0,0 +1,12 @@
+--- confuse-2.6/src/confuse.h-ori	2007-10-13 17:11:54.000000000 +0200
++++ confuse-2.6/src/confuse.h	2008-12-31 14:36:23.095741300 +0100
+@@ -64,6 +64,9 @@
+ # define __export
+ #endif
+ 
++/* (Open)solaris */
++#include <locale.h>
++
+ /** Fundamental option types */
+ enum cfg_type_t {
+     CFGT_NONE,