summaryrefslogtreecommitdiff
path: root/man/7
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-12-19 17:58:15 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-12-19 17:58:15 +0100
commit5e58fc7aa557d7294222628402b80ad9c2f703b5 (patch)
tree6a3e4a84794fe9b0c84598b367b8902b5e350c85 /man/7
parent2d8552f6957f119f8151c2bd468cb2e675c164ca (diff)
pkg(7): Added hooks
Diffstat (limited to 'man/7')
-rw-r--r--man/7/pkg28
1 files changed, 28 insertions, 0 deletions
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</"HOOKS">
+
=item include/
Scripts used by the package that don't belong into B<bin/>. 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