[pacman-dev] [PATCH] Add support for user defined per package post install actions

Allan McRae allan at archlinux.org
Sun Feb 1 06:12:17 EST 2009


Mårten Olsson wrote:
> Hi!
>
> Oh, that was a neat idea... 
> Which I have unfortunetly missed when searching in the archives. :-)
>   

If you want to read the discussion check out the archives from about 23 
Jan this year.

> I think it should be possible to have it triggered by packages as well,
> something like this:
>
> [kernel-install]
> Package = kernel26
> Run = rebuildoutofkerneltreedrivers
>   

In the example config file in the wiki page, the "Run" parameter is when 
to run the script specified in the [ ] brackets at the top.

> (I recognice the ridiculous name of the Run-argument and that this probably 
> wouldn't work as a reboot probably is necessery first but just something 
> as an example. (and it was this need that triggered my own idea).)
>
> Of course it is possible to have it triggered by file in this case as well,
> just list files in this package and choose one of them, but it is still an
> unecessery extra step (even if it is a small one)

I'm sure it would be possible to have a package set off a hook such as 
you are suggesting, although I think most packages would have a file 
that would be the obvious choice to use (e.g. /boot/vmlinuz26 for 
kernel26).   Please add a comment to the wiki page about this.

Once we have agreed on good configuration file formats, etc then you are 
more than welcome to help out coding this.

Cheers,
Allan




More information about the pacman-dev mailing list