tag:blogger.com,1999:blog-977175219318335312.post3873990510504500949..comments2022-03-26T07:53:53.118-07:00Comments on Just a dude: Gentoo adventures: running a script after a package is updated / installed (emerge hook)dafhttp://www.blogger.com/profile/01007330383942197889noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-977175219318335312.post-5221341330188739002020-06-25T08:25:28.964-07:002020-06-25T08:25:28.964-07:00I originally tried something along that line and i...I originally tried something along that line and it b0rk3d (read about 1/3 of the way in). Perhaps things are different now :Ddafhttps://www.blogger.com/profile/01007330383942197889noreply@blogger.comtag:blogger.com,1999:blog-977175219318335312.post-73768350426021740782020-06-25T06:36:15.394-07:002020-06-25T06:36:15.394-07:00For those who found this via google, it is actuall...For those who found this via google, it is actually already built into portage, you just need to use the correct file names. Reference here:<br /><br /> https://wiki.gentoo.org/wiki//etc/portage/package.env<br /><br />So set your scripts in the file:<br /> /etc/portage/env/category/pn<br />or for specific package version only:<br /> /etc/portage/env/category/pn-version<br /><br />This file roughly behaves like bashrc, but is only included for that one package (or package-version)The Wildgoosehttps://www.blogger.com/profile/09621817138925931454noreply@blogger.comtag:blogger.com,1999:blog-977175219318335312.post-11645273754804699602018-07-24T01:33:17.470-07:002018-07-24T01:33:17.470-07:00Thank you very much for this blog post. I know it ...Thank you very much for this blog post. I know it has been a while around, but quite now your post saved my day! :-)<br /><br />Cheers<br /><br />SvenYamakuzurehttps://www.blogger.com/profile/10466648453147176034noreply@blogger.com