1 |
On Thu, Aug 14, 2003 at 10:00:31PM -0400, Mike Frysinger wrote: |
2 |
> for example, say i want to know 'howto' setup mysql ... |
3 |
> root@vapier 0 root # emerge --help dev-db/mysql |
4 |
> You might want to run: |
5 |
> ebuild /var/db/pkg/dev-db/mysql-4.0.14/mysql-4.0.14.ebuild config |
6 |
> if this is a new install. |
7 |
> it will auto generate the basic mysql databases for you. |
8 |
|
9 |
For pure static data (no if trees OR variables), this would work fine, |
10 |
but the great majority of the output in pkg_postinst is dynamic. |
11 |
|
12 |
In your above suggestion, the path to the ebuild is dynamic, so this |
13 |
either you need to implement some custom parsing for the content. |
14 |
|
15 |
However that wouldn't work when you want to base the output on an if |
16 |
statement. |
17 |
For mod_php, I have this: |
18 |
if use apache; then |
19 |
einfo "Edit /etc/conf.d/apache2 and add \"-D PHP4\"" |
20 |
else |
21 |
einfo " \"ebuild /var/db/pkg/dev-php/${PF}/${PF}.ebuild config\"" |
22 |
fi |
23 |
|
24 |
Furthermore, in your XML system, how do you get einfo/ewarn/eerror |
25 |
colouring? (raw ansi shouldn't go into XML). |
26 |
|
27 |
-- |
28 |
Robin Hugh Johnson |
29 |
E-Mail : robbat2@××××××××××××××.net |
30 |
Home Page : http://www.orbis-terrarum.net/?l=people.robbat2 |
31 |
ICQ# : 30269588 or 41961639 |
32 |
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 |