From: Elfyn McBratney <beu@gnu.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] Running commands after a merge (via /etc/portage/package.hooks)
Date: Fri, 24 Sep 2004 10:55:20 +0100 [thread overview]
Message-ID: <200409241055.21592.beu@gnu.org> (raw)
In-Reply-To: <46868.216.125.51.60.1095882385.squirrel@216.125.51.60>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Joseph,
On Wednesday 22 Sep 2004 20:46, Joseph Booker wrote:
> On Wed, September 22, 2004 6:02 am, Elfyn McBratney said:
> > [...]
> > > >
> > 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
Once I have something simple and working (abt an hour - patch found in url
posted above) I'll give that a go, but should be pisk easy given bash is
doing the hard work. ;-)
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)
iD8DBQFBU+8IaIgMKkVlSLQRAqDIAJ9StYTDLyULqz9Qsb3OAx+YNUmLRgCfZo8x
BsPtibfYevzaPWGVRnbsrXc=
=JaFc
-----END PGP SIGNATURE-----
--
gentoo-portage-dev@gentoo.org mailing list
next prev parent reply other threads:[~2004-09-24 10:31 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
2004-09-22 20:46 ` [gentoo-portage-dev] unsuscribe Luca Martinetti
2004-09-22 21:12 ` Michael Kohl
2004-09-24 9:55 ` Elfyn McBratney [this message]
2004-09-22 19:52 ` [gentoo-portage-dev] Running commands after a merge (via /etc/portage/package.hooks) 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=200409241055.21592.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