From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DttkS-0001Lf-HZ for garchives@archives.gentoo.org; Sat, 16 Jul 2005 20:59:00 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6GKvWMZ004658; Sat, 16 Jul 2005 20:57:32 GMT Received: from ctb-mesg6.saix.net (ctb-mesg6.saix.net [196.25.240.86]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6GKtUYf019739 for ; Sat, 16 Jul 2005 20:55:30 GMT Received: from gateway.lan (wblv-146-200-204.telkomadsl.co.za [165.146.200.204]) by ctb-mesg6.saix.net (Postfix) with ESMTP id 464E96C85; Sat, 16 Jul 2005 22:55:59 +0200 (SAST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gateway.lan (Postfix) with ESMTP id 527F43A247B; Sat, 16 Jul 2005 23:05:34 +0200 (SAST) Received: from gateway.lan ([127.0.0.1]) by localhost (gateway.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06322-19; Sat, 16 Jul 2005 23:05:29 +0200 (SAST) Received: from lycan.lan (lycan.lan [192.168.0.5]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by gateway.lan (Postfix) with ESMTP id A01C93A2482; Sat, 16 Jul 2005 23:05:29 +0200 (SAST) Subject: Re: [gentoo-dev] /etc/profile.d/ From: Martin Schlemmer To: gentoo-dev@lists.gentoo.org Cc: Mike Frysinger In-Reply-To: <20050716190304.12bb0ddc@sven.genone.homeip.net> References: <9f90e8bf05071514597043b7bb@mail.gmail.com> <200507151902.38224.vapier@gentoo.org> <42D86212.6060407@gentoo.org> <200507152134.09075.vapier@gentoo.org> <20050716190304.12bb0ddc@sven.genone.homeip.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-YXUvRrEs5ebS57DeRyWD" Organization: Gentoo Foundation Date: Sat, 16 Jul 2005 22:58:01 +0200 Message-Id: <1121547481.7325.64.camel@lycan.lan> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 X-Virus-Scanned: by amavisd-new using ClamAV at nosferatu.za.org X-Archives-Salt: f756a08c-6dff-4664-b0bc-ed8c148080e0 X-Archives-Hash: cfb0db723f9ffd016c6b6d7e90a10c44 --=-YXUvRrEs5ebS57DeRyWD Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2005-07-16 at 19:03 +0200, Marius Mauch wrote: > On Fri, 15 Jul 2005 21:34:09 -0400 > Mike Frysinger wrote: >=20 > > we could care less what users do with /etc/profile.d ... the point is > > that *only* users should use /etc/profile.d ... we dont want random > > Gentoo developer Foo installing some Bar.sh into /etc/profile.d with > > package app-crap/FooBar >=20 > Would the following in /et/profile be a solution to this problem? >=20 > for x in $( < /etc/profile.d/.default); do > source "/etc/profile.d/${x}" > done >=20 > That way devs could install stuff there, but it would only be run if > users added it to the .default file. If we do something like this, I'll rather not source it, but run it via the current shell. This should discourage devs to install stuff touching the environment there rather than /etc/env.d/. ----- # Append any additional sh scripts found in /etc/profile.d/: for file in /etc/profile.d/*.sh ; do if [ -x "${file}" ] ; then "${file}" fi done ----- As for above, this is one of the examples why we rather did not add it .. everybody want something added .. global control, per user control, etc :/ --=20 Martin Schlemmer --=-YXUvRrEs5ebS57DeRyWD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC2XTZqburzKaJYLYRAtSkAKCdU/7k9bXbUMndZ+uRM1MDDOLe9ACfZfTL RoPX/Z1EoITcSW13d1aeXzQ= =Gmi4 -----END PGP SIGNATURE----- --=-YXUvRrEs5ebS57DeRyWD-- -- gentoo-dev@gentoo.org mailing list