From owner-freebsd-ports@FreeBSD.ORG Tue Nov 23 18:07:13 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 E26E516A4CF for ; Tue, 23 Nov 2004 18:07:13 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD10543D1F for ; Tue, 23 Nov 2004 18:07:13 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 0AD2D51750; Tue, 23 Nov 2004 10:11:19 -0800 (PST) Date: Tue, 23 Nov 2004 10:11:19 -0800 From: Kris Kennaway To: "A. Nooitgedagt" Message-ID: <20041123181119.GB91215@xor.obsecurity.org> References: <200411230733.iAN7XKvn002229@8ball.rtp.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0eh6TmSyL6TZE2Uz" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-ports@freebsd.org 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 18:07:14 -0000 --0eh6TmSyL6TZE2Uz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 23, 2004 at 11:44:22AM +0100, A. Nooitgedagt wrote: > Actually, >=20 > It does work to set variables in SCRIPTS_ENV ! > I just shouldn't manipulate them in pkg-install I guess. I'm still not su= re > how it works. >=20 > This is what I have as a test in Makefile: >=20 > " > pre-fetch: > @ ${SETENV} PKG_PREFIX=3D${PREFIX} \ > ${SCRIPTS_ENV} USER=3D${USER} PG_USER=3D${PG_USER} GROUP=3D${GROU= P} > UID=3D${UID} GID=3D${GID} \ > ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL > " >=20 > I didn't find good docs about how a statement like that gets translate or > did I miss something. > Any pointer? Be careful what you do here, because the pkg-install script is also run when someone adds (or removes) your package with pkg_add, so it needs to work properly in that case too (and it will not if you customize the way that pkg-install is called) Kris --0eh6TmSyL6TZE2Uz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBo31HWry0BWjoQKURAkQGAKC/35808pJhWatgxRee/dFYa2AttACgi1g3 k48MkYg/aZ7m9GmaQy5uLlo= =NgoZ -----END PGP SIGNATURE----- --0eh6TmSyL6TZE2Uz--