Date: Tue, 23 Nov 2004 10:11:19 -0800 From: Kris Kennaway <kris@obsecurity.org> To: "A. Nooitgedagt" <a.nooit@12move.nl> Cc: freebsd-ports@freebsd.org Subject: Re: Pass variable to pkg-install Message-ID: <20041123181119.GB91215@xor.obsecurity.org> In-Reply-To: <NCEAIDGINCIDIPEKFPHDOEIHDGAA.a.nooit@12move.nl> References: <200411230733.iAN7XKvn002229@8ball.rtp.freebsd.org> <NCEAIDGINCIDIPEKFPHDOEIHDGAA.a.nooit@12move.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041123181119.GB91215>