From owner-freebsd-ports Mon Oct 22 11:50:13 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 74CCD37B405 for ; Mon, 22 Oct 2001 11:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9MIo1e55152; Mon, 22 Oct 2001 11:50:01 -0700 (PDT) (envelope-from gnats) Date: Mon, 22 Oct 2001 11:50:01 -0700 (PDT) Message-Id: <200110221850.f9MIo1e55152@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: "Scot W. Hetzel" Subject: Re: ports/31422: Does pkg_delete have to erase /usr/local/www/data when removing and upgraded Apache? Reply-To: "Scot W. Hetzel" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/31422; it has been noted by GNATS. From: "Scot W. Hetzel" To: Cc: Subject: Re: ports/31422: Does pkg_delete have to erase /usr/local/www/data when removing and upgraded Apache? Date: Mon, 22 Oct 2001 13:42:56 -0500 From: "David W. Chapman Jr." > The following reply was made to PR ports/31422; it has been noted by GNATS. > > From: "David W. Chapman Jr." > To: Matt Barton > Cc: freebsd-gnats-submit@FreeBSD.org > Subject: Re: ports/31422: Does pkg_delete have to erase /usr/local/www/data when removing and upgraded Apache? > Date: Mon, 22 Oct 2001 10:39:34 -0500 > > A simple fix if nobody seems to care to fix this is to have another > directory like /usr/local/share/apache/htdocs/ > and set DocumentRoot to that path > But this will not work for new users installing the apache server, as they will read the httpd.conf file and place their local content into the ../share/apache/htdocs directory. The best solution is to install the apache *.html.* files into ../share/doc/apache, and then only copy index.html.en to ../www/data/index.html, only if there is no index.html file in the ../www/data directory. When the port is uninstalled, it compares ../www/data/index.html to ../share/doc/apache/index.html.en before deciding to deleting index.html. The apache13-fp port uses this method. Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message