Date: Sat, 7 Jun 1997 13:08:37 +0200 (CEST) From: andreas@klemm.gtn.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/3804: apache port shouldn't overwrite existing local config files during installation Message-ID: <199706071108.NAA28921@klemm.gtn.com> Resent-Message-ID: <199706071120.EAA13727@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 3804 >Category: ports >Synopsis: apache overwrites existing local config files during installation >Confidential: yes >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jun 7 04:20:01 PDT 1997 >Last-Modified: >Originator: Andreas Klemm >Organization: home >Release: FreeBSD 3.0-CURRENT i386 >Environment: not relevant >Description: The apache port's install target overwrites the existing local config files in /usr/local/etc/apache. I forgot this one and will have to get my config files back from tape now ;-) Bad luck ;-) Best would be to fix this one now, since there will be many other people who only want to update the WWW server binary, without nuking the local configuration ;-) >How-To-Repeat: Save you local config files first cd /usr/local/etc/apache mkdir .save cp access.conf httpd.conf mime.types srm.conf .save cd /usr/ports/www/apache make all install ls -l /usr/local/etc/apache These new files overwrite your local configuration. -rw-r--r-- 1 bin bin 2127 Jun 7 12:54 access.conf -rw-r--r-- 1 bin bin 6567 Jun 7 12:54 httpd.conf -rw-r--r-- 1 bin bin 2394 Jun 7 12:54 mime.types -rw-r--r-- 1 bin bin 6764 Jun 7 12:54 srm.conf >Fix: Modify the ports install target, so that the new config files will be for example installed as: -rw-r--r-- 1 bin bin 2127 Jun 7 12:54 access.conf-dist -rw-r--r-- 1 bin bin 6567 Jun 7 12:54 httpd.conf-dist -rw-r--r-- 1 bin bin 2394 Jun 7 12:54 mime.types-dist -rw-r--r-- 1 bin bin 6764 Jun 7 12:54 srm.conf-dist The squid port comes to my mind, who does it this way. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706071108.NAA28921>