From owner-freebsd-ports Sat Jun 7 04:20:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA13755 for ports-outgoing; Sat, 7 Jun 1997 04:20:05 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA13727; Sat, 7 Jun 1997 04:20:03 -0700 (PDT) Resent-Date: Sat, 7 Jun 1997 04:20:03 -0700 (PDT) Resent-Message-Id: <199706071120.EAA13727@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-ports Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, andreas@klemm.gtn.com Received: from news1.gtn.com (news1.gtn.com [194.77.0.15]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA13597 for ; Sat, 7 Jun 1997 04:16:13 -0700 (PDT) Received: (from uucp@localhost) by news1.gtn.com (8.7.2/8.7.2) with UUCP id NAA00835 for FreeBSD-gnats-submit@freebsd.org; Sat, 7 Jun 1997 13:15:08 +0200 (MET DST) Received: (from andreas@localhost) by klemm.gtn.com (8.8.5/8.8.5) id NAA28921; Sat, 7 Jun 1997 13:08:37 +0200 (CEST) Message-Id: <199706071108.NAA28921@klemm.gtn.com> Date: Sat, 7 Jun 1997 13:08:37 +0200 (CEST) From: andreas@klemm.gtn.com Reply-To: andreas@klemm.gtn.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: ports/3804: apache port shouldn't overwrite existing local config files during installation Sender: owner-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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: