From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17367 invoked from network); 24 Sep 2004 10:31:17 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 24 Sep 2004 10:31:17 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.41) id 1CAnMC-00001G-Hc for arch-gentoo-portage-dev@lists.gentoo.org; Fri, 24 Sep 2004 10:31:16 +0000 Received: (qmail 32683 invoked by uid 89); 24 Sep 2004 10:31:15 +0000 Mailing-List: contact gentoo-portage-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail Reply-To: gentoo-portage-dev@lists.gentoo.org X-BeenThere: gentoo-portage-dev@gentoo.org Received: (qmail 8841 invoked from network); 24 Sep 2004 10:31:14 +0000 From: Elfyn McBratney To: gentoo-portage-dev@lists.gentoo.org Date: Fri, 24 Sep 2004 10:55:20 +0100 User-Agent: KMail/1.6.2 References: <200409221202.15336.beu@gnu.org> <46868.216.125.51.60.1095882385.squirrel@216.125.51.60> In-Reply-To: <46868.216.125.51.60.1095882385.squirrel@216.125.51.60> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200409241055.21592.beu@gnu.org> Sender: Elfyn McBratney Subject: Re: [gentoo-portage-dev] Running commands after a merge (via /etc/portage/package.hooks) X-Archives-Salt: 054ee13b-f723-4adc-ae60-90c4b995c59a X-Archives-Hash: 944688fa696ef61a9be3c1887e5b5960 =2D----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: > > [...] > > > >=20 > > What I would like to do is add a new file to /etc/portage - package.hoo= ks > > (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= =20 posted above) I'll give that a go, but should be pisk easy given bash is=20 doing the hard work. ;-) Elfyn =2D --=20 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 =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBU+8IaIgMKkVlSLQRAqDIAJ9StYTDLyULqz9Qsb3OAx+YNUmLRgCfZo8x BsPtibfYevzaPWGVRnbsrXc=3D =3DJaFc =2D----END PGP SIGNATURE----- -- gentoo-portage-dev@gentoo.org mailing list