public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] Running commands after a merge (via /etc/portage/package.hooks)
@ 2004-09-22 11:02 Elfyn McBratney
  2004-09-22 19:46 ` Joseph Booker
  2004-09-22 19:52 ` Jeff Smelser
  0 siblings, 2 replies; 15+ messages in thread
From: Elfyn McBratney @ 2004-09-22 11:02 UTC (permalink / raw
  To: gentoo-portage-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm about to start working on a new portage feature that allows you to run
commands (basically, bash syntax) before a merge and after a successful
merge.

(At work, we have a lot of virtual hosts with auto-generated vhosts.conf files
for apache, with configuration data stored in XML files and/or databases, and
having them updated automatically on apache upgrades would ease maintenance
burdens. :)

What I would like to do is add a new file to /etc/portage - package.hooks
(open to suggestions on better names ;), which would contain category/package
atoms and shell commands, ala:

  [atom] 'before' '(' shell code ')' or
  [atom] 'after' '(' shell code ')' or

e.g.

  net-www/apache after apache-update-vhosts
  net-www/apache after (foo && do-bar || die "do-bar failed")

Where atom's marked with before would run before the merge, and packages with
after (or none specified) would be run after the merge.

Before I start, does this feature sound useful for other gentoo'ers? :)  If
I've also left out something really important (happens ;), please ask. =)

Comments, flames, etc, welcome. :)

Elfyn

- --
Elfyn McBratney
beu on irc.freenode.net/savannah.[non]gnu.org

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBUVu0aIgMKkVlSLQRAu0hAJ4rS+5Idji4eFbjHdpllYoNYWOkAwCeKLuk
nCWDE+e8kjGXTjLPYQWBxRo=
=5Se/
-----END PGP SIGNATURE-----

--
gentoo-portage-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-09-24 10:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-22 11:02 [gentoo-portage-dev] Running commands after a merge (via /etc/portage/package.hooks) Elfyn McBratney
2004-09-22 19:46 ` Joseph Booker
2004-09-22 20:46   ` [gentoo-portage-dev] unsuscribe Luca Martinetti
2004-09-22 21:12     ` Michael Kohl
2004-09-24  9:55   ` [gentoo-portage-dev] Running commands after a merge (via /etc/portage/package.hooks) Elfyn McBratney
2004-09-22 19:52 ` Jeff Smelser
2004-09-23  2:56   ` Colin Kingsley
2004-09-23 10:48     ` Sven Vermeulen
2004-09-23 12:50       ` Jason Stubbs
2004-09-24  8:17         ` Michael Kohl
2004-09-24  8:28           ` Marius Mauch
2004-09-24  9:04             ` Michael Kohl
2004-09-24  9:53             ` Elfyn McBratney
2004-09-24  9:51     ` Elfyn McBratney
2004-09-24  9:47   ` Elfyn McBratney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox