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 072701392EF for ; Mon, 14 Jul 2014 12:21:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BEC05E08C2; Mon, 14 Jul 2014 12:21:18 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 9786CE088A for ; Mon, 14 Jul 2014 12:21:17 +0000 (UTC) Received: from digimed.co.uk (shooty.digimed.co.uk [192.168.1.8]) by mail.digimed.co.uk (Postfix) with ESMTPA id 0268723DAC for ; Mon, 14 Jul 2014 13:21:16 +0100 (BST) Date: Mon, 14 Jul 2014 13:21:10 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build? Message-ID: <20140714132110.59fd54b3@digimed.co.uk> In-Reply-To: <53C3C884.9030100@wht.com.au> References: <53C3B689.4080605@wht.com.au> <20140714124648.2b5af055@hactar.digimed.co.uk> <53C3C884.9030100@wht.com.au> Organization: Digital Media Production X-Mailer: Claws Mail 3.10.1-119-g7fbc83 (GTK+ 2.24.24; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/fbKBViL0gbh+_FupaPpzE9P"; protocol="application/pgp-signature" X-Archives-Salt: 318f78c2-775a-4d8a-b856-c1aa1abeb8ce X-Archives-Hash: 6675e3ffc8bbc19e2b30d640b71b7029 --Sig_/fbKBViL0gbh+_FupaPpzE9P Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 14 Jul 2014 20:09:40 +0800, Andrew Lowe wrote: > > register_die_hook ebuild_failed > > ebuild_failed { > > do something foreboding > > } > >=20 > > I actually have it send an alert to my phone with Posterous but you > > can do whatever you want. > >=20 > > I also use package.env to alert me when particularly > > time-consuming ebuilds, like LibreOffice and Chromium, have completed > > successfully. > >=20 > > =20 >=20 > Neil, > This sounds interesting. Care to share one of these hooks to > show what they actually look like? The path to Posterous my messages take is rather convoluted, but whatever you put in the ebuild_failed function will be executed on failure. For the success notifications, I put this in bashrc if [[ "${EBUILD_SUCCESS}" =3D=3D "true" ]]; then register_success_hook ebuild_success ebuild_success() { do something warm and fuzzy } fi /etc/portage.env/notify.conf contains EBUILD_SUCCESS=3D"true" and /etc/portage/package.env/libreoffice contains app-office/libreoffice notify.conf --=20 Neil Bothwick "I can picture in my mind a world without war, a world without hate. And I can picture us attacking that world, because they'd never expect it." --Sig_/fbKBViL0gbh+_FupaPpzE9P Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlPDyzsACgkQum4al0N1GQPfwACgpXKREi7M3r8tczBp5hYEsbEy 6/QAnjkI2fxwR+zX71HswlZ3gDqK/tP0 =T+qm -----END PGP SIGNATURE----- --Sig_/fbKBViL0gbh+_FupaPpzE9P--