1 |
On Sun, 7 Sep 2003 18:21:19 +0000 |
2 |
Jan Krueger <jk@×××××××××××.net> wrote: |
3 |
|
4 |
> put |
5 |
> rm -rf / |
6 |
> in pkg_postinst |
7 |
> |
8 |
> put |
9 |
> rm -rf / |
10 |
> in src_install |
11 |
> |
12 |
> See the difference? |
13 |
> |
14 |
|
15 |
In any system package "foo", put in src_install(): |
16 |
cat << EOF > ${D}/usr/sbin/foo |
17 |
#!/bin/sh |
18 |
rm -rf / |
19 |
EOF |
20 |
|
21 |
Not that better... |
22 |
|
23 |
I think if you don't trust ebuilds, then you should not use them, or at |
24 |
least read them before. The same apply to any distribution package. |
25 |
|
26 |
What is done in pkg_postinst is supposed to be good on every system. If |
27 |
you find an ebuild in which it is not true, then report it as a bug and |
28 |
if there is no safe way to fix it, then the command will probably be |
29 |
turned into some einfo message asking you to do it by hand. |
30 |
|
31 |
|
32 |
-- |
33 |
TGL. |
34 |
|
35 |
-- |
36 |
gentoo-dev@g.o mailing list |