From andreas@klemm.gtn.com  Sat Jun  7 04:16:14 1997
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 <FreeBSD-gnats-submit@freebsd.org>; 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
Subject: apache port shouldn't overwrite existing local config files during installation
X-Send-Pr-Version: 3.2

>Number:         3804
>Category:       ports
>Synopsis:       apache overwrites existing local config files during installation
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun  7 04:20:01 PDT 1997
>Closed-Date:    Sat Jun  7 04:36:54 PDT 1997
>Last-Modified:  Thu Sep 13 22:43:02 GMT 2007
>Originator:     Andreas Klemm
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
home
>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.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When:  7  1997 04:36:54 PDT 
State-Changed-Why:  
Misreported PR. Apache install target NOT overwrites config files. 
Check what actually happens in your system and re-roll another 
PR if another reaso will be found. 
>Unformatted:
