Re: [gentoo-user] how to execute some scripts after an emerge

2006-10-07 Thread Pawel Kraszewski
Dnia sobota, 7 października 2006 03:16, Robert Welz napisał:
 Hello!

 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.

Well, that would be 

emerge -your -parameters  /your/script

Script would be called on successful emerge.

-- 
 Pawel Kraszewski
 www.kraszewscy.net

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to execute some scripts after an emerge

2006-10-06 Thread Boyd Stephen Smith Jr.
On Friday 06 October 2006 17:56, Robert Welz [EMAIL PROTECTED] wrote 
about '[gentoo-user] how to execute some scripts after an emerge':
 Are there hooks in portage with which I can execute some scripts after
 an emerge -u world?

Not AFAIK.  However, it's easy enough to write a script to do an emerge -u 
world and then some other stuff.  (e.g. I routinely run revdep-rebuild 
after my world updates.)

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh


pgp1rwLgYjNDk.pgp
Description: PGP signature


Re: [gentoo-user] how to execute some scripts after an emerge

2006-10-06 Thread Dave V
A simple solution would beto use  :
emerge -u world   echo do whatever

you could also write a wrapper script relatively easily

Dave

On Sat, 07 Oct 2006 00:56:21 +0200
Robert Welz [EMAIL PROTECTED] wrote:

 Hello!
 
 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.
 
 Any suggestions welcome.
 
 greetings,
 Robert
 -- 
 gentoo-user@gentoo.org mailing list
 


-- 
C:\ WIN
Bad command or filename

C:\ LOSE
Loading Microsoft Windows ...


pgpG1Ym9bsddz.pgp
Description: PGP signature


[gentoo-user] how to execute some scripts after an emerge

2006-10-06 Thread Robert Welz
Hello!

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.

Any suggestions welcome.

greetings,
Robert

Sorry for posting twice,
but last mail seems to been lost somewhere.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to execute some scripts after an emerge

2006-10-06 Thread Bo Ørsted Andresen

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...

 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...

[1] http://news.gmane.org/gmane.linux.gentoo.user

-- 
Bo Andresen


pgpnLCkpfOwh7.pgp
Description: PGP signature


Re: [gentoo-user] how to execute some scripts after an emerge

2006-10-06 Thread Robert Welz
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?
gentoo-user@lists.gentoo.org or gentoo-user@gentoo.org ?

Rob

 [1] http://news.gmane.org/gmane.linux.gentoo.user

 -- 

 Bo Andresen


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to execute some scripts after an emerge

2006-10-06 Thread Bo Ørsted Andresen
On Saturday 07 October 2006 05:23, Robert Welz wrote:
[SNIP]
 What do you think?

There is no such hook. Write a separate script or a wrapper. Since it's 
supposed to run after the emerge and not during the emerge I really don't see 
why it should need to use a hook.

[SNIP]
 What is the right mail address and is the sometimes lost email bug on
 both?
 gentoo-user@lists.gentoo.org or gentoo-user@gentoo.org ?

Either work. Probably that bug, yeah...

-- 
Bo Andresen


pgpYsE5owsW9w.pgp
Description: PGP signature