Bo Ørsted Andresen schrieb:
>
> On Saturday 07 October 2006 03:16, Robert Welz wrote:
>
> > Are there hooks in portage with which I can execute some scripts after
>
> > an emerge -u world? I need to check my libraries in the chroot jail :) I
>
> > build for boinc today against their original counterparts in the file
>
> > system. This would be nicer than having a cronjob looking after them at
>
> > fixed intervals.
>
> [SNIP]
>
> Please explain what that script does, when exactly it is supposed to
> run and why you think it needs to use a hook in portage...
>
Yes. I have 14 xen domains + 2 domUs and several services. Some of them
must run chrooted so I need to execute a script which compares
/chroot/boinc/etc /chroot/boinc/lib and so with their corresponding
files in /etc /lib and so. Thats the easy part. But having a hook
configurable in make.conf like this would maintaining the script easier:

PORTAGE_POST_EXECUTE="/root/bin/mychroottester.sh" should fire when
emerge is totally done.

I understand that I can have a /etc/portage/bashrc but
 
if [[ ${EBUILD_PHASE} == "postinst" ]]; then ...

would fire after each package emerged. Maybe having a variable to test
against which shows that the execution of portage is all done
would do it. So if the last package is emerged and installed
if [[ ${EBUILD_ALL_INSTALLED} == "true" ]]
then /root/bin/mychroottester.sh
fi
would give a fine hook to execute my script or email notifications with
"Software update done" messages and whatever one likes.

What do you think?

Greetings,
Robert

> > Sorry for posting twice,
>
> > but last mail seems to been lost somewhere.
>
> As you can see e.g. at [1] it wasn't lost. In fact it had two replies
> within the first 30 minutes.
>
What is the right mail address and is the "sometimes lost email bug" on
both?
[email protected] or [email protected] ?

Rob
>
> [1] http://news.gmane.org/gmane.linux.gentoo.user
>
> -- 
>
> Bo Andresen
>

-- 
[email protected] mailing list

Reply via email to