From owner-freebsd-questions@FreeBSD.ORG Thu Jun 26 19:22:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA45F1065678 for ; Thu, 26 Jun 2008 19:22:35 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id 8B0838FC15 for ; Thu, 26 Jun 2008 19:22:35 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 1C1A328461; Thu, 26 Jun 2008 15:22:34 -0400 (EDT) To: Zbigniew Szalbot References: <48626AF4.6060005@lc-words.com> From: Lowell Gilbert Date: Thu, 26 Jun 2008 15:22:33 -0400 In-Reply-To: <48626AF4.6060005@lc-words.com> (Zbigniew Szalbot's message of "Wed\, 25 Jun 2008 17\:57\:40 +0200") Message-ID: <44hcbgvw5i.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: User Questions Subject: Re: Changing default files locations / ports / mailgraph X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2008 19:22:35 -0000 Zbigniew Szalbot writes: > Hello all, > > What do I need to avoid making the same mistake of having mailgraph > installing files at the wrong location in my system? > > The default location in Makefile is this: > CGIDIR?= ${PREFIX}/www/cgi-bin > DATADIR?= /var/db/mailgraph > WWWROOT?= ${PREFIX}/www/data > > I'd like to keep it here: > CGIDIR?= ${PREFIX}/www/apache22/cgi-bin > DATADIR?= /var/db/mailgraph > WWWROOT?= ${PREFIX}/www/apache22/data > > Other than symlinking, can I specify this location in > /usr/local/etc/pkgtools.conf (I generally use portupgrade to upgrade > software)? If so, how should I specify an entry for mailgraph? I would symlink it, myself. For portupgrade, I guess you could do a MAKE_ARGS entry something like 'mail/mailgraph' => 'CGIDIR=${PREFIX}/www/apache22/cgi-bin DATADIR=/var/db/mailgraph WWWROOT=${PREFIX}/www/apache22/data' [Completely untested, of course.] -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/