Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Package specific post-emerge hooks?
Date: Wed, 13 Jun 2018 09:28:38
Message-Id: 3436531.rtmQmvD60j@peak
In Reply to: [gentoo-user] Re: Package specific post-emerge hooks? by Ian Zimmerman
On Tuesday, 12 June 2018 22:36:36 BST Ian Zimmerman wrote:
> On 2018-06-12 22:47, Christoph Böhmwalder wrote: > > I was wondering if there was a way to run a shell script anytime a > > specific > > package is updated. > > Create a /etc/portage/env/${CATEGORY}/${PACKAGE} file. It should be in > shell script syntax and contain a definition of the shell function > post_pkg_postinst.
The easiest way is to add the /path/filename to CONFIG_PROTECT in make.conf. -- Regards, Peter.