From owner-freebsd-ports@FreeBSD.ORG Sat Aug 12 11:13:54 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 93E3216A4DE for ; Sat, 12 Aug 2006 11:13:54 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id BB40C43D46 for ; Sat, 12 Aug 2006 11:13:53 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 12 Aug 2006 11:13:52 -0000 Received: from p54A7FC9D.dip.t-dialin.net (EHLO [192.168.0.12]) [84.167.252.157] by mail.gmx.net (mp042) with SMTP; 12 Aug 2006 13:13:52 +0200 X-Authenticated: #5465401 Message-ID: <44DDB7E4.6010908@gmx.de> Date: Sat, 12 Aug 2006 13:13:40 +0200 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: "O. Hartmann" , freebsd-ports@freebsd.org References: <44DDA1AD.10202@mail.uni-mainz.de> In-Reply-To: <44DDA1AD.10202@mail.uni-mainz.de> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Cc: Subject: Re: automatic override of individual set paths in ports 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: Sat, 12 Aug 2006 11:13:54 -0000 O. Hartmann wrote: > Hello. > > On our lab's and my private FreeBSD box I installed several > applications, in particular php-5.1.4, apache 2.2.3 and MySQL 5.0.24, in > separate directories targeting to separate software partitions. MySQL is > installed via ports-collection, but I always must change PREFIX and the > DATABASEDIR manually to point to the right directory. PHP and Apache is > installed by meself without ports support. > > Keeping track on updates and security issues I would like to use the > portupgrade facilities, but everytime I fetch an update or new version, > my once setup prefixes and directory settings get lost and I need to do > this by hand again (concerns MySQL). This prevents me installing and > updating things automatically and this bothers me. > > The point is that I do not want some specific ports in the regular > /usr/local pathways, especially MySQL, PHP and Apache. I need separate > pathes. I would like to do automatic updates via portsnap/portupgrade, > but I need to set PREFIX and DBDIR permanently for specific ports, not > being overridden by the next portsnap fetch and upgrade. > > Can you give hints, tips or just a 'no-go' in this concern? Thanks a lot, > Oliver Something like .if ${.CURDIR:M/usr/ports/databases/mysql*} PREFIX= /my/new/prefix .endif in your make.conf should achieve what you want.