From: "Joseph Booker" <joe@neoturbine.net>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] Running commands after a merge (via /etc/portage/package.hooks)
Date: Wed, 22 Sep 2004 14:46:25 -0500 (CDT) [thread overview]
Message-ID: <46868.216.125.51.60.1095882385.squirrel@216.125.51.60> (raw)
In-Reply-To: <200409221202.15336.beu@gnu.org>
On Wed, September 22, 2004 6:02 am, Elfyn McBratney said:
> -----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")
Could this kind of syntax be added also
net-www/apache after |mail admin@localhost webmaster@localhost -s
"Apache updated by cronjob, just letting you know how it went"
Basicly, add the ability to pipe it places
--
Joseph Booker
joe @ irc.neoturbine.net
jj110888 @ irc.freenode.net
--
gentoo-portage-dev@gentoo.org mailing list
next prev parent reply other threads:[~2004-09-22 19:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=46868.216.125.51.60.1095882385.squirrel@216.125.51.60 \
--to=joe@neoturbine.net \
--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