Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#24095 closed submission (fixed)

Portfile submission: ganglia 3.1.7

Reported by: admin@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: ganglia

Description

Hi, I have written a Portfile for the ganglia monitoring client.

One unresolved issues remains, though. Maybe someone can help with that?

-- After the installation, one needs to run gmond --default_config > ${macports_prefix}/etc/ganglia/gmond.conf

-- I could not find out if there is something like a post_install hook available in the Portfile. Running the command above in the post-destroot phase does not work ;(

Besides of this, the portfile works just fine.

Hav fun, udo.

Attachments (2)

Portfile (1.6 KB) - added by admin@… 14 years ago.
patch-libmetrics-darwin-metrics.c.diff (409 bytes) - added by admin@… 14 years ago.

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by admin@…

Attachment: Portfile added

Changed 14 years ago by admin@…

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: ganglia portfile removed
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned
Version: 1.8.2

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Thanks, committed in r65190 with these changes:

  • removed uwaechte from the maintainers line since uwaechte at macports dot org is not a valid email address for you since you are not a committer
  • changed homepage http://ganglia.sf.net to the canonical homepage http://ganglia.sourceforge.net/
  • changed master_sites sourceforge:ganglia to the simpler master_sites sourceforge
  • added dependency on gettext because it does get used
  • put the patchfile into a platform darwin section since it includes AvailabilityMacros.h which I believe is only available on Darwin OSes
  • in the patchfile, changed #include "AvailabilityMacros.h" to #include <AvailabilityMacros.h> since this is a system header
  • changed startupitem.logfile /var/log/ganglia-monitor.log to startupitem.logfile ${prefix}/var/log/ganglia-monitor.log since we want MacPorts-related things to stay within the MacPorts prefix
  • fixed the generation of the sample config file by using system to execute the command and setting DYLD_FALLBACK_LIBRARY_PATH to tell it where the newly-compiled libraries are. the sample config file is now written to gmond.conf.sample; we don't want to write to gmond.conf because that's a file the user will edit and we don't want to overwrite the user's configuration when updating the port
  • fixed retention of the python_modules directory by using destroot.keepdirs

comment:3 in reply to:  2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

  • put the patchfile into a platform darwin section since it includes AvailabilityMacros.h which I believe is only available on Darwin OSes

That was probably unnecessary of me; I see now that the file being patched is in a directory called "darwin", so I guess it only gets compiled on Darwin OS anyway.

Note: See TracTickets for help on using tickets.