ports/106426: Privoxy port upgrade clobbers existing config file

Pete Slagle freebsd-stable at box559.com
Wed Dec 6 22:05:05 UTC 2006


>Number:         106426
>Category:       ports
>Synopsis:       Privoxy port upgrade clobbers existing config file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 06 22:00:32 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Pete Slagle
>Release:        6.1-RELEASE-p11
>Organization:
>Environment:
6.1-RELEASE-p11
>Description:
Privoxy port clobbers existing config file

Upgrade of the www/privoxy port causes /usr/local/etc/privoxy/config to be lost when the upgrade process overwrites the existing version with a default version. Configuration information is lost.

>How-To-Repeat:
Install privoxy:
   su
   cd /usr/ports/www/privoxy
   make install clean

Customize privoxy with local settings:
   vi /usr/local/etc/privoxy/config

Upgrade privoxy:
   portupgrade -f privoxy

Note that local configuration settings have been clobbered:
   cat /usr/local/etc/privoxy/config

>Fix:
When privoxy is upgraded, if /usr/local/etc/privoxy/config already exists, then install the default config file with a different name, e.g. "config.default", instead of overwriting the existing file.


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list