New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #2365 (new enhancement)

Opened 7 years ago

Last modified 22 months ago

Add support for non-volatile default conf files

Reported by: jberry@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts Future
Component: base Version:
Keywords: Cc: vinc17@…, and.damore@…
Port:

Description (last modified by jmr@…) (diff)

It is useful to be able to install as part of a port certain files that will not be uninstalled or overwritten by subsequent installations or upgrades to the port.

This patch adds support for intallation at activation time of "default" files which will not be tracked as part of the installed port, and do not overwrite existing files of the same name.

The new option activate.copy_defaults accepts [multiple] pairs of src/dst file paths. At the tail of the activation phase, each src file is copied to its paired dst file iff dst doesn't already exist.

Attachments

portactivate.tcl.diff Download (1.9 KB) - added by jberry@… 7 years ago.
Patch to base/src/port1.0/portactivate.tcl

Change History

Changed 7 years ago by jberry@…

Patch to base/src/port1.0/portactivate.tcl

Changed 7 years ago by jberry@…

This patch is waiting further development, perhaps by wbb4, of underlying support in the registry to carry this information, so that we aren't dependent on the activation phase, which doesn't exist outside of images.

Changed 5 years ago by markd@…

  • type changed from defect to enhancement

Changed 4 years ago by nox@…

  • priority changed from Expected to Normal
  • version 1.0 deleted
  • milestone set to MacPorts base enhancements

Changed 4 years ago by jmr@…

Duplicate #12797 has some more ideas for how this ought to be implemented.

Changed 3 years ago by jmr@…

  • description modified (diff)
  • reporter changed from jberry@… to jberry@…

Changed 2 years ago by vinc17@…

  • cc vinc17@… added

Cc Me!

Changed 22 months ago by and.damore@…

  • cc and.damore@… added

Cc Me!

Note: See TracTickets for help on using tickets.