New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #24095 (closed submission: fixed)

Opened 3 years ago

Last modified 3 years ago

Portfile submission: ganglia 3.1.7

Reported by: admin@… Owned by: ryandesign@…
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

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

Change History

Changed 3 years ago by admin@…

Changed 3 years ago by admin@…

comment:1 Changed 3 years ago by ryandesign@…

  • Keywords ganglia, portfile removed
  • Status changed from new to assigned
  • Version 1.8.2 deleted
  • Owner changed from macports-tickets@… to ryandesign@…

comment:2 follow-up: ↓ 3 Changed 3 years ago by ryandesign@…

  • Status changed from assigned to closed
  • Resolution set to fixed

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 3 years ago by ryandesign@…

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.