Prevent removal of configured files after Portfile change

Ryan Schmidt ryandesign at macports.org
Sun Jul 8 18:13:20 PDT 2007


On Jul 8, 2007, at 14:53, Simon Ruderich wrote:

> is it possible to prevent the complete removal of all
> configured/compiled data if the Portfile was changed. I'm just  
> updating
> configuration parameters but port completely removes the project data
> and starts again.

I think you're saying that you have a port that installs a  
configuration file, and that you've then changed the configuration  
file, and when you upgrade the port, your changes to the  
configuration file are lost. The solution is for the port to install  
a *sample* configuration file, and for the user to manually copy the  
sample to the real configuration file name when configuring. See the  
apache2 portfile's httpd.conf.sample for an example.





More information about the macports-dev mailing list