Date: Tue, 8 Apr 2008 21:04:02 +0100 From: Andrew Cid <andrew@accid.net> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: Setting global enviroment variables Message-ID: <20080408200402.GA63819@farnborough.darq.net> In-Reply-To: <47FBABEF.4090107@infracaninophile.co.uk> References: <20080408171819.GA56838@farnborough.darq.net> <47FBABEF.4090107@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 08, 2008 at 06:31:27PM +0100, Matthew Seaman wrote: > > /etc/login.conf -- don't forget to run cap_mkdb after editing it. > Thanks, that's totally it. I added PACKAGEROOT to setenv in the default class: :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,PACKAGEROOT=http\c//pkg.accid.net:\ I also had to comment out a line in sudoers to preserve the package related variables: Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR" Now both, users and daemons are enjoying new packages. Massive thanks for all replies, Andrew -- accid.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080408200402.GA63819>