From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3880C13877A for ; Mon, 14 Jul 2014 12:09:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E06FE08DA; Mon, 14 Jul 2014 12:09:45 +0000 (UTC) Received: from mail12.tpgi.com.au (mail12.tpgi.com.au [203.12.160.162]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C2C09E0870 for ; Mon, 14 Jul 2014 12:09:43 +0000 (UTC) X-TPG-Junk-Status: Message not scanned X-TPG-Antivirus: Passed X-TPG-Abuse: host=27-33-235-192.static.tpgi.com.au; ip=27.33.235.192; date=Mon, 14 Jul 2014 22:09:40 +1000 Received: from [192.168.14.2] (27-33-235-192.static.tpgi.com.au [27.33.235.192]) by mail12.tpgi.com.au (envelope-from agl@wht.com.au) (8.14.3/8.14.3) with ESMTP id s6EC9d2T004256 for ; Mon, 14 Jul 2014 22:09:40 +1000 Message-ID: <53C3C884.9030100@wht.com.au> Date: Mon, 14 Jul 2014 20:09:40 +0800 From: Andrew Lowe Organization: Wombat High Tech User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build? References: <53C3B689.4080605@wht.com.au> <20140714124648.2b5af055@hactar.digimed.co.uk> In-Reply-To: <20140714124648.2b5af055@hactar.digimed.co.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: bfd85f42-bcfe-4287-b262-234fbee57095 X-Archives-Hash: 3a3b2a8bf66467490280bf4912fc2ace On 07/14/2014 07:46 PM, Neil Bothwick wrote: > On Mon, 14 Jul 2014 18:52:57 +0800, Andrew Lowe wrote: > >> I have a laptop churning away in the loungeroom doing an >> "emerge -NuD world" whilst I'm in my office, amongst other things >> composing this email. If my world update fails, I won't know until I >> look at the screen in the other room. Is there a way to get emerge to >> play a song depending upon the status of the emerge build? > > Using portage hooks, either globally in /etc/portage/bashrc or per > package in /etc/portage/package.env. I have this in bashrc to warn me of > failures > > register_die_hook ebuild_failed > ebuild_failed { > do something foreboding > } > > I actually have it send an alert to my phone with Posterous but you can > do whatever you want. > > I also use package.env to alert me when particularly > time-consuming ebuilds, like LibreOffice and Chromium, have completed > successfully. > > Neil, This sounds interesting. Care to share one of these hooks to show what they actually look like? Regards, Andrew