From owner-freebsd-ports@FreeBSD.ORG Sat Nov 27 09:53:01 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 6E2E016A4CE for ; Sat, 27 Nov 2004 09:53:01 +0000 (GMT) Received: from gate.xbsd.org (xbsd.org [81.56.254.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC12043D46 for ; Sat, 27 Nov 2004 09:53:00 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by gate.xbsd.org (Postfix) with ESMTP id 74D131189C; Sat, 27 Nov 2004 10:53:15 +0100 (CET) Received: from gate.xbsd.org ([127.0.0.1]) by localhost (gate.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34145-08; Sat, 27 Nov 2004 10:53:11 +0100 (CET) Received: from [10.226.6.5] (unknown [163.5.255.81]) by gate.xbsd.org (Postfix) with ESMTP id 7DC1B114F9; Sat, 27 Nov 2004 10:53:11 +0100 (CET) Message-ID: <41A84E74.9010809@xbsd.org> Date: Sat, 27 Nov 2004 10:52:52 +0100 From: Florent Thoumie User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Conrad J. Sabatier" References: <20041126181834.4a8ef9ad@dolphin.local.net> <20041126182442.78562dc9@dolphin.local.net> In-Reply-To: <20041126182442.78562dc9@dolphin.local.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at xbsd.org 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 09:53:01 -0000 Conrad J. Sabatier wrote: > On Fri, 26 Nov 2004 18:18:34 -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? >> >>Thanks. > > > I should add that the reason I'm asking is because I tried simply > invoking the script from the Makefile, but none of the port environment > variables (such as $DISTDIR, etc.) are exported to the script. > > What's the preferred way of doing this? I think you should look at ${SCRIPTS_ENV}. There's a lot of ports using this, net/gnu-radius seems to be a good example for what you're trying to do. -- Florent Thoumie flz@xbsd.org