Opened 19 years ago

Last modified 20 months ago

#2365 new enhancement

Add support for non-volatile default conf files — at Version 5

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

Description (last modified by jmroot (Joshua Root))

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.

Change History (6)

Changed 19 years ago by jberry@…

Attachment: portactivate.tcl.diff added

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

comment:1 Changed 19 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.

comment:2 Changed 18 years ago by markd@…

Type: defectenhancement

comment:3 Changed 17 years ago by nox@…

Milestone: MacPorts base enhancements
Priority: ExpectedNormal
Version: 1.0

comment:4 Changed 16 years ago by jmroot (Joshua Root)

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

comment:5 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Reporter: changed from jberry@… to jberry@…
Note: See TracTickets for help on using tickets.