Hi Justin:

On Tue, Jun 29, 2010 at 12:23 PM, Justin Bronder <jsbron...@gentoo.org> wrote:

> Good suggestion.  That's actually preferable to being triggered by enabling
> python and being part of the default make install.

Not sure if this is the best way to do this, but here goes (patch
against top level Makefile.am):

Index: Makefile.am
===================================================================
--- Makefile.am (revision 2305)
+++ Makefile.am (working copy)
@@ -91,3 +91,8 @@
 # the desired location if needed
 install-data-hook:     contrib/ganglia_gmond.xml solaris/pkginfo

+install_gmond_module_examples:
+       mkdir -p $(DESTDIR)$(datadir)/examples/modules && \
+         $(INSTALL_DATA) gmond/modules/example/*.c
gmond/modules/conf.d/*example* $(DESTDIR)$(datadir)/examples/modules
+       mkdir -p $(DESTDIR)$(datadir)/examples/python_modules && \
+         $(INSTALL_DATA) gmond/python_modules/example/*.py
gmond/python_modules/conf.d/*example*
$(DESTDIR)$(datadir)/examples/python_modules

This will install both the gmond C module example and the Python
module examples to $datadir.

Comments?

Cheers,

Bernard

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to