From owner-freebsd-questions@FreeBSD.ORG Wed Mar 29 13:49:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A733716A401 for ; Wed, 29 Mar 2006 13:49:41 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from asmtp-out5.blueyonder.co.uk (asmtp-out5.blueyonder.co.uk [195.188.213.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 244A643D45 for ; Wed, 29 Mar 2006 13:49:40 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [62.31.10.160] (helo=[192.168.0.2]) by asmtp-out5.blueyonder.co.uk with esmtp (Exim 4.52) id 1FOb3L-0001vq-JD; Wed, 29 Mar 2006 14:49:39 +0100 Message-ID: <442A9072.8070500@dial.pipex.com> Date: Wed, 29 Mar 2006 14:49:38 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.12) Gecko/20060305 X-Accept-Language: en MIME-Version: 1.0 To: Spil Oss References: <5fbf03c20603290220l358768fy@mail.gmail.com> In-Reply-To: <5fbf03c20603290220l358768fy@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Incorrect inline documentation in /usr/local/etc/pkgtools.conf 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: Wed, 29 Mar 2006 13:49:41 -0000 Spil Oss wrote: >Dear all, > >Spent a lot of time trying to get portupgrade to install phpbb in the >directory I want. > >Tried a lot of things, but only when I found out that ports_glob does >NOT return anything on 'www/phpbb-*' I could fix it. > >The inline documentation in pkgtools.conf lead me to believe I had to add > MAKE_ARGS = { > 'www/phpbb-*' => 'WWWDOCROOT', > } >to my pkgtools.conf file to add it. >[...] > # e.g.: > # MAKE_ARGS = { > # 'databases/mysql323-*' => 'WITH_CHARSET=ujis', > # 'ruby18-*' => 'RUBY_VER=1.8', > # 'ruby16-*' => 'RUBY_VER=1.6', > # } > > The short answer is that you want either 'www/phpbb' or 'phpbb-*' The 'directory/package' form matches against the directory structure under /usr/ports. The directory you are after is 'www/phpbb'. The form without the directory structure matches against the installed version of the package (I'm not sure how it finds it if the package isn't installed, but I believe it does). You are probably being mislead by the "databases/mysql323-*" example, as, at first glance, it looks like it is wildcarding against a version number, like the following ruby examples, but it isn't. If you look under /usr/ports, you will find directories like "databases/mysql323-server" and "databases/mysql323-client" and it is those directory names that the wildcard pertains to. I prefer the directory form, myself, because it tells me immediately where I can find the package if I want to read the Makefile to find any new or interesting knobs. Having said that, I have had occasional trouble in the past with portupgrade refusing to recognise a directory in this format. Specifically, I could not, for love nor money, get it to recognise "www/apache20" and went with "apache-2*" instead. I have no idea if this was a portupgrade problem or something obvious I was missing; if it was a problem it might have been fixed by now. When building with portupgrade, you can clearly see when options are picked up. Try re-installing a package for which you set knobs, and watch the output. For any new items I add, I always check the output carefully first time in case I made a typo or other snafu. --Alex