Opened 13 years ago

Last modified 11 years ago

#30998 new submission

New port: Marionette Collective

Reported by: matt@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: drkp (Dan Ports)
Port: mcollective

Description

Please find attached a Portfile for the Marionette Collective aka MCollective.

The only nit I found was that I needed to change the hashbang at the top of the Ruby script installed as a daemon from "#!/usr/bin/env ruby" to "#!${ruby.bin}" otherwise it couldn't find the support libraries when installed with "port load ...". This only happened when running under launchd, I could manually start it up so I'm not sure how best to fix it.

Attachments (1)

Portfile (3.9 KB) - added by matt@… 13 years ago.
Portfile for Marionette Collective

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by matt@…

Attachment: Portfile added

Portfile for Marionette Collective

comment:1 in reply to:  description Changed 12 years ago by drkp (Dan Ports)

Port: mcollective added

Replying to matt@…:

The only nit I found was that I needed to change the hashbang at the top of the Ruby script installed as a daemon from "#!/usr/bin/env ruby" to "#!${ruby.bin}" otherwise it couldn't find the support libraries when installed with "port load ...". This only happened when running under launchd, I could manually start it up so I'm not sure how best to fix it.

This makes sense; env ruby launches whatever ruby binary is in your $PATH, and launchd is probably using an empty path. It's a good practice to change this to the absolute path anyway -- there could be a different ruby installation in the user's path, and we want to be sure we're using the one we installed rb-stomp for.

comment:2 Changed 12 years ago by drkp (Dan Ports)

Cc: dports@… added

When installing configuration files that the user is supposed to edit, we need to make sure they're not overwritten on update, as explained in wiki:PortfileRecipes#configfiles

It sounds like server.cfg and client.cfg, and maybe facts.yaml? What about rpc-help.erb?

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.