public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Elfyn McBratney <beu@gnu.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: [gentoo-portage-dev] Running commands after a merge (via /etc/portage/package.hooks)
Date: Wed, 22 Sep 2004 12:02:12 +0100	[thread overview]
Message-ID: <200409221202.15336.beu@gnu.org> (raw)

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


             reply	other threads:[~2004-09-22 11:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-22 11:02 Elfyn McBratney [this message]
2004-09-22 19:46 ` [gentoo-portage-dev] Running commands after a merge (via /etc/portage/package.hooks) 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

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=200409221202.15336.beu@gnu.org \
    --to=beu@gnu.org \
    --cc=gentoo-portage-dev@lists.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