From owner-freebsd-ports@FreeBSD.ORG Thu Jul 13 18:36:23 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B994616A4DF for ; Thu, 13 Jul 2006 18:36:23 +0000 (UTC) (envelope-from shaun@FreeBSD.org) Received: from dione.picobyte.net (host-212-158-207-124.bulldogdsl.com [212.158.207.124]) by mx1.FreeBSD.org (Postfix) with SMTP id 1DCC943D53 for ; Thu, 13 Jul 2006 18:36:21 +0000 (GMT) (envelope-from shaun@FreeBSD.org) Received: from charon.picobyte.net (charon.picobyte.net [IPv6:2001:4bd0:201e::fe03]) by dione.picobyte.net (Postfix) with ESMTP; Thu, 13 Jul 2006 19:36:19 +0100 (BST) Date: Thu, 13 Jul 2006 19:36:19 +0100 From: Shaun Amott To: Babak Farrokhi Message-ID: <20060713183619.GA3818@picobyte.net> Mail-Followup-To: Babak Farrokhi , freebsd-ports@freebsd.org References: <000001c6a662$bce0e920$36a2bb60$@net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <000001c6a662$bce0e920$36a2bb60$@net> User-Agent: Mutt/1.5.11 (FreeBSD i386) Cc: freebsd-ports@freebsd.org Subject: Re: Installation directory best practices X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2006 18:36:23 -0000 On Thu, Jul 13, 2006 at 01:27:20PM +0330, Babak Farrokhi wrote: > I wonder if there is any particular guideline for installation of web based > application (the ports which install web pages, like www/wordpress, > www/serendipity or databases/phpmyadmin). The guidelines we have now are that most ports should install into www/${PORTNAME}; this means default/unsecured scripts are not visible until they have been configured, and also avoids using a directory which is server (apache?) specific. I think www/data/${PORTNAME} is probably acceptable if the script is simple and/or needs no configuration. > Some ports install web pages into "www/${PORTNAME}" while others install > into "www/data-dist/${PORTNAME}" or even into "share/${PORTNAME}". Installing into www/data-dist is completely wrong. > However most of these ports let you override the installation path by > defining particular variables, but user should review Makefile before > installation to find out which variable should be set. I tend to use WWWDIR (which excludes PREFIX); but as you say, there is no consistency amongst ports. -- Shaun Amott [ PGP: 0x6B387A9A ] Scientia Est Potentia.