Difference between revisions of "User talk:Allan/Pacman Hooks - Version 1"

From ArchWiki
Jump to: navigation, search
(Matt's Method)
Line 14: Line 14:
 
-- [[User:Piezoelectric|Piezoelectric]] 13:00, 11 April 2010 (EDT)
 
-- [[User:Piezoelectric|Piezoelectric]] 13:00, 11 April 2010 (EDT)
  
Hey, Allan, I like your idea. In fact I came across it after posting a feature request [http://bugs.archlinux.org/task/19044 FS#19044]. I'll outline my idea's here in a similar matter to your own.
+
Hey, Allan, I like your idea. In fact I came across it after posting a feature request [http://bugs.archlinux.org/task/19044 FS#19044]. I'll outline my ideas here in a similar matter to your own.
  
 
=== Directory Layout ===
 
=== Directory Layout ===

Revision as of 17:00, 11 April 2010

Hi, I think it would be really useful to have pacman hooks for a simliar reason:

As a zsh user, whenever I update a package, I need to manually run the rehash built-in so that zsh will recognize new/updated paths.

A pacman PostInstall hook would cut out this step.

Thanks! Noah

binaural gmail com

Matt's Method

-- Piezoelectric 13:00, 11 April 2010 (EDT)

Hey, Allan, I like your idea. In fact I came across it after posting a feature request FS#19044. I'll outline my ideas here in a similar matter to your own.

Directory Layout

/etc/pacman.d/
             /hooks.sh
             /local.d/
                     /<pkgname>.install

hooks.sh

This is the general dispatch file, while the entire functionality of this file could be built directly into pacman, and the file itself ignored altogether, I think it's best to do it like this, because what we are going for in the first place is maximum per-user flexibility.

Template:File

TODO

Each <pkgname>.install should be able to specify when in it will be performed in relation to the install file that comes with the package. Ex: TIMING={before|replace|after}

I'll integrate this idea in a little bit, I just wanted to make note of it in case someone happens across this in the short time that I step away =)