From owner-freebsd-ports@FreeBSD.ORG Wed Feb 15 00:53:47 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 5E35B16A420 for ; Wed, 15 Feb 2006 00:53:47 +0000 (GMT) (envelope-from allbery@ece.cmu.edu) Received: from bache.ece.cmu.edu (BACHE.ECE.CMU.EDU [128.2.129.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06C2743D46 for ; Wed, 15 Feb 2006 00:53:46 +0000 (GMT) (envelope-from allbery@ece.cmu.edu) Received: from [10.9.204.128] (dsl093-061-215.pit1.dsl.speakeasy.net [66.93.61.215]) by bache.ece.cmu.edu (Postfix) with ESMTP id D08BC92; Tue, 14 Feb 2006 19:53:44 -0500 (EST) In-Reply-To: <20060215000409.5b5609ce@it.buh.cameradicommercio.ro> References: <43BCF31F.8050900@FreeBSD.org> <20060214213514.GB20841@leia.lambermont.dyndns.org> <20060215000409.5b5609ce@it.buh.cameradicommercio.ro> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1D3A9E37-7629-4CB3-ADE1-BB5AB9D4B558@ece.cmu.edu> Content-Transfer-Encoding: 7bit From: "Brandon S. Allbery KF8NH" Date: Tue, 14 Feb 2006 19:53:42 -0500 To: Ion-Mihai Tetcu X-Mailer: Apple Mail (2.746.2) Cc: freebsd ports , Hans Lambermont Subject: Re: portmaster [was: New /bin/sh based script to manage 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: Wed, 15 Feb 2006 00:53:47 -0000 On Feb 14, 2006, at 5:04 , Ion-Mihai Tetcu wrote: > On Tue, 14 Feb 2006 22:35:14 +0100 > hans@lambermont.dyndns.org (Hans Lambermont) wrote: > >> - Read in /usr/local/etc/pkgtools.conf, use HOLD_PKGS, ALT_PKGDEP, >> MAKE_ARGS, BEFOREDEINSTALL, AFTERINSTALL >> This makes is far easier for users to switch from portupgrade to >> portmaster. > > What I would like more to see for MAKE_ARGS is translation from > pkg_tools.conf to make.conf syntax (since make.conf applies > irrespective of the tool one uses). As a first cut that seems to do the right thing with various syntaxes, see http://www.ece.cmu.edu/~allbery/pkgtools2mk.pl (this only addresses MAKE_ARGS). I used a couple of passes with M-x replace-regexp in xemacs to convert mine, but I stuck to a particular format when defining things in pkgtools.conf; this script should handle a wider range of input, although it assumes you inserted your entries into something resembling the sample pkgtools.conf. -- brandon s. allbery [linux,solaris,freebsd,perl] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH