public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-portage-dev] Running commands after a merge (via  /etc/portage/package.hooks)
@ 2004-09-22 19:46 Joseph Booker
  2004-09-22 20:46 ` [gentoo-portage-dev] unsuscribe Luca Martinetti
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Booker @ 2004-09-22 19:46 UTC (permalink / raw
  To: gentoo-portage-dev


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


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

end of thread, other threads:[~2018-03-20  3:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1398020867.3734408.1521517250956.ref@mail.yahoo.com>
2018-03-20  3:40 ` [gentoo-portage-dev] unsuscribe Pablo De Napoli
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

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