From owner-freebsd-ports@FreeBSD.ORG Sat Nov 27 02:02:57 2004 Return-Path: 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 8962F16A4CE for ; Sat, 27 Nov 2004 02:02:57 +0000 (GMT) Received: from lakermmtao08.cox.net (lakermmtao08.cox.net [68.230.240.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FA7F43D39 for ; Sat, 27 Nov 2004 02:02:57 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.30.24]) by lakermmtao08.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20041127020256.NMR26269.lakermmtao08.cox.net@dolphin.local.net>; Fri, 26 Nov 2004 21:02:56 -0500 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with SMTP id iAR22tBP048310; Fri, 26 Nov 2004 20:02:55 -0600 (CST) (envelope-from conrads@cox.net) Date: Fri, 26 Nov 2004 20:02:49 -0600 From: "Conrad J. Sabatier" To: Kris Kennaway Message-ID: <20041126200249.72a15592@dolphin.local.net> In-Reply-To: <20041127003619.GA55288@xor.obsecurity.org> References: <20041126181834.4a8ef9ad@dolphin.local.net> <20041127003619.GA55288@xor.obsecurity.org> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-ports@freebsd.org Subject: Re: Running a script during port build X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Nov 2004 02:02:57 -0000 On Fri, 26 Nov 2004 16:36:19 -0800, Kris Kennaway wrote: > On Fri, Nov 26, 2004 at 06:18:34PM -0600, Conrad J. Sabatier wrote: > > I'm trying to get a script to run as part of an update to > > games/gnuchess (to optionally create the opening book for gnuchess). > > > > I've placed the script under games/gnuchess/scripts as > > "pre-install", but it never seems to be getting invoked. > > > > Has the use of a scripts dir for ports been deprecated? If not, > > what does it take to get the script to actually be run? > > You have to call it yourself at the appropriate time..see other ports > for examples. > > Kris > OK, I finally figured out how to do it. :-) Calling scripts/foo ${DISTDIR} ${WRKSRC} and handling the arguments in the script did the trick. Thanks. -- Conrad J. Sabatier -- "In Unix veritas"