From: "Robin H. Johnson" <robbat2@gentoo.org>
To: Mike Frysinger <vapier@gentoo.org>
Cc: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] making metadata.xml pay off and removing pkg_postinst crud
Date: Thu, 14 Aug 2003 20:09:11 -0700 [thread overview]
Message-ID: <20030815030911.GB24879@curie-int.orbis-terrarum.net> (raw)
In-Reply-To: <200308142200.31146.vapier@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]
On Thu, Aug 14, 2003 at 10:00:31PM -0400, Mike Frysinger wrote:
> for example, say i want to know 'howto' setup mysql ...
> root@vapier 0 root # emerge --help dev-db/mysql
> You might want to run:
> ebuild /var/db/pkg/dev-db/mysql-4.0.14/mysql-4.0.14.ebuild config
> if this is a new install.
> it will auto generate the basic mysql databases for you.
For pure static data (no if trees OR variables), this would work fine,
but the great majority of the output in pkg_postinst is dynamic.
In your above suggestion, the path to the ebuild is dynamic, so this
either you need to implement some custom parsing for the content.
However that wouldn't work when you want to base the output on an if
statement.
For mod_php, I have this:
if use apache; then
einfo "Edit /etc/conf.d/apache2 and add \"-D PHP4\""
else
einfo " \"ebuild /var/db/pkg/dev-php/${PF}/${PF}.ebuild config\""
fi
Furthermore, in your XML system, how do you get einfo/ewarn/eerror
colouring? (raw ansi shouldn't go into XML).
--
Robin Hugh Johnson
E-Mail : robbat2@orbis-terrarum.net
Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ# : 30269588 or 41961639
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2003-08-15 3:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-15 2:00 [gentoo-dev] making metadata.xml pay off and removing pkg_postinst crud Mike Frysinger
2003-08-15 3:09 ` Robin H. Johnson [this message]
2003-08-15 3:48 ` matt c
2003-08-16 0:49 ` Luke-Jr
2003-08-15 12:27 ` Markus Nigbur
2003-08-15 4:14 ` Chris Smith
2003-08-15 14:08 ` Chris Gianelloni
2003-08-15 13:58 ` Paul de Vrieze
2003-08-15 14:30 ` Luke-Jr
2003-08-15 14:39 ` Heinrich Wendel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030815030911.GB24879@curie-int.orbis-terrarum.net \
--to=robbat2@gentoo.org \
--cc=gentoo-dev@gentoo.org \
--cc=vapier@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox