From owner-freebsd-ports@FreeBSD.ORG Tue Nov 23 10:44:25 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 4DA8916A4CE for ; Tue, 23 Nov 2004 10:44:25 +0000 (GMT) Received: from ha-smtp3.tiscali.nl (smtp-b2c.tiscali.nl [195.241.80.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id E04B543D5E for ; Tue, 23 Nov 2004 10:44:24 +0000 (GMT) (envelope-from a.nooit@12move.nl) Received: from luckyluke (xs195-241-156-147.dial.tiscali.nl [195.241.156.147]) by ha-smtp3.tiscali.nl (Postfix) with SMTP id 7F8FD3B8011 for ; Tue, 23 Nov 2004 11:44:23 +0100 (CET) From: "A. Nooitgedagt" To: Date: Tue, 23 Nov 2004 11:44:22 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200411230733.iAN7XKvn002229@8ball.rtp.freebsd.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Subject: RE: Pass variable to pkg-install 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: Tue, 23 Nov 2004 10:44:25 -0000 Actually, It does work to set variables in SCRIPTS_ENV ! I just shouldn't manipulate them in pkg-install I guess. I'm still not sure how it works. This is what I have as a test in Makefile: " pre-fetch: @ ${SETENV} PKG_PREFIX=${PREFIX} \ ${SCRIPTS_ENV} USER=${USER} PG_USER=${PG_USER} GROUP=${GROUP} UID=${UID} GID=${GID} \ ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL " I didn't find good docs about how a statement like that gets translate or did I miss something. Any pointer? Do variable that are set like this in SCRIPTS_ENV remain available for "post-install" or for files in the "FILESDIR" ? Or how are variables passed around? Thanks. Aldert