Gentoo Archives: gentoo-dev

From: Marius Mauch <genone@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] /etc/profile.d/
Date: Sun, 17 Jul 2005 02:33:48
Message-Id: 20050717043820.3d7f4063@sven.genone.homeip.net
In Reply to: Re: [gentoo-dev] /etc/profile.d/ by Mike Frysinger
1 On Sat, 16 Jul 2005 20:22:29 -0400
2 Mike Frysinger <vapier@g.o> wrote:
3
4 > On Saturday 16 July 2005 01:03 pm, Marius Mauch wrote:
5 > > On Fri, 15 Jul 2005 21:34:09 -0400
6 > >
7 > > Mike Frysinger <vapier@g.o> wrote:
8 > > > we could care less what users do with /etc/profile.d ... the
9 > > > point is that *only* users should use /etc/profile.d ... we dont
10 > > > want random Gentoo developer Foo installing some Bar.sh
11 > > > into /etc/profile.d with package app-crap/FooBar
12 > >
13 > > Would the following in /et/profile be a solution to this problem?
14 > >
15 > > for x in $( < /etc/profile.d/.default); do
16 > > source "/etc/profile.d/${x}"
17 > > done
18 > >
19 > > That way devs could install stuff there, but it would only be run if
20 > > users added it to the .default file.
21 >
22 > that kind of limits the intuitiveness of profile.d ... plus, not like
23 > they couldnt just do 'echo blah >> /etc/profile.d/.default' at the
24 > end of pkg_postinst or something
25
26 They could do the same to /etc/profile, no?
27
28 Marius
29
30 --
31 Public Key at http://www.genone.de/info/gpg-key.pub
32
33 In the beginning, there was nothing. And God said, 'Let there be
34 Light.' And there was still nothing, but you could see a bit better.

Replies

Subject Author
Re: [gentoo-dev] /etc/profile.d/ Mike Frysinger <vapier@g.o>