From owner-freebsd-ports@FreeBSD.ORG Wed Aug 23 14:39:49 2006 Return-Path: X-Original-To: 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 2964916A4DD for ; Wed, 23 Aug 2006 14:39:49 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70D4B43D45 for ; Wed, 23 Aug 2006 14:39:48 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so153445uge for ; Wed, 23 Aug 2006 07:39:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RtbAL+8wSpmnCCniRlRpEFw1PEPJkq0LgC/SNPjGodp1/WJ6znD6yzP02+ZK2UYpfOwRYPs9nPrg14EHW5/fgKVi4g0TgZRO9Wnizpm9LxNgJNscn8LzbTDVnQ3/qfp9kC+vyF/v/X2PTY5aMARC1XlBImjjGoiK2E7I4Y4cD0s= Received: by 10.66.244.11 with SMTP id r11mr206311ugh; Wed, 23 Aug 2006 07:39:47 -0700 (PDT) Received: by 10.67.86.15 with HTTP; Wed, 23 Aug 2006 07:39:47 -0700 (PDT) Message-ID: <790a9fff0608230739v36143292k68852b1677f1d7f4@mail.gmail.com> Date: Wed, 23 Aug 2006 09:39:47 -0500 From: "Scot Hetzel" To: "Helge Oldach" In-Reply-To: <200608231350.PAA24812@galaxy.hbg.de.ao-srv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0608220532h790dd310jd15d9c6cfb990b11@mail.gmail.com> <200608231350.PAA24812@galaxy.hbg.de.ao-srv.com> Cc: ports@freebsd.org, mwlucas@blackhelicopters.org Subject: Re: "the best" port update tool 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: Wed, 23 Aug 2006 14:39:49 -0000 On 8/23/06, Helge Oldach wrote: > Scot Hetzel: > >While the portmanager, portupgrade, and portmaster tools allow you to > >keep your specific port options in a file, they are incompatible with > >each other and when building directly from /usr/ports, as the port > >options in these seperate files are not available to the other tools > >or to /usr/ports. This deficiency has been fixed with the > >sysutils/portconf port, where you can specify your port options in > >PREFIX/etc/ports.conf file, and these tools and direct building from > >/usr/ports will use these port options. > > Hmm... What is wrong with directly amending /etc/make.conf with, for > example: > Nothing wrong with doing it this way, just that a newbie has to find this syntax, and edit their make.conf accordingly. Where with a newbie using the ports.conf file, they just add each option on one line, and let the magic added by the sysutils/portconf to /etc/make.conf do all the work for them. An additional benifit is that you don't clutter your make.conf file with all of these .if ... .endif statements when you have more than 10 ports that you set with custom options. > --------------------------------- > WRKDIRPREFIX=/usr/obj > > .if ${.CURDIR:M*/devel/gmake} > WITHOUT_NLS=yes > .endif > > .if ${.CURDIR:M*/mail/fetchmail} > .MAKEFLAGS: -DWITH_NTLM > .endif > : > Note specifically the ".MAKEFLAGS" trick above that IMHO won't easily > work with portconf. > That will work with portconf, without using .MAKEFLAGS: devel/gmake: WITHOUT_NLS mail/fetchmail: WITH_NTLM You could have also used "WITH_NTLM=YES" instead of .MAKEFLAGS in your make.conf and the fetchmail port would be built with NTLM support. > .if ${.CURDIR:M*/sysutils/uptimed} > post-install-script: > -${RM} ${PREFIX}/www/cgi-bin/uprecords.conf > -${RM} ${PREFIX}/www/cgi-bin/uprecords.cgi > -${RM} ${PREFIX}/www/cgi-bin/uprecords.header > -${RM} ${PREFIX}/www/cgi-bin/uprecords.footer > -${RMDIR} ${PREFIX}/www/cgi-bin > -${RMDIR} ${PREFIX}/www > .endif > --------------------------------- > This portconf can't do. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.