From 5e58fc7aa557d7294222628402b80ad9c2f703b5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 19 Dec 2008 17:58:15 +0100 Subject: pkg(7): Added hooks --- man/7/pkg | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'man/7') diff --git a/man/7/pkg b/man/7/pkg index e4d8f86..c035ede 100644 --- a/man/7/pkg +++ b/man/7/pkg @@ -78,6 +78,10 @@ The place for executables to be in the user's PATH. For their processing, see B< Configuration files, not threated specially though +=item hooks/ + +Package hooks, see L + =item include/ Scripts used by the package that don't belong into B. Not threated specially @@ -183,6 +187,30 @@ repository type (DVCS), the third the current revision. Example: core git 82d716d01dee0329af7df5e67b55558fe3ff1466 +=head1 HOOKS + +Hooks are little zsh-snippets residing in $PDIR/hooks +which are sourced from within pkg whenever needed. + +Currently, the following hooks exist: + +=over + +=item post-add + +Sourced after a package was installed (e.g. with pkg add/pkg install) + +=item post-update + +Sourced after a package was updated (pkg upgrade/pkg pull). +It is also sourced when adding a package (after post-add) and +when calling pkg refresh. + +=item pre-remove + +Sourced before a package is removed (pkg remove/pkg delete) + +=back =head1 AUTHOR -- cgit v1.2.3