diff --git a/common/hooks/README b/common/hooks/README new file mode 100644 index 0000000000..5a3dfc648b --- /dev/null +++ b/common/hooks/README @@ -0,0 +1,27 @@ +HOOKS +===== + +This directory contains shell hooks that are processed after or before the +specified phase. The shell hooks are simply shell snippets (must not be +executable nor contain a shebang) that are processed lexically by xbps-src. +Only files with the `.sh` extension are processed. + +The following directories are used to set the order in which the hooks +should be processed by xbps-src: + + * pre-fetch (before running fetch phase) + * post-fetch (after running fetch phase) + * pre-extract (before running extract phase) + * post-extract (after running extract phase) + * pre-configure (before running configure phase) + * post-configure (after running configure phase) + * pre-build (before running build phase) + * post-build (after running build phase) + * pre-install (before running install phase) + * post-install (after running install phase) + * pre-pkg (before running pkg phase) + * post-pkg (after running pkg phase) + +NOTES +~~~~~ +* Symlinks can be created (relative) to make a hook available in multiple phases. diff --git a/common/hooks/post-build/.empty b/common/hooks/post-build/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/post-configure/.empty b/common/hooks/post-configure/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/post-extract/.empty b/common/hooks/post-extract/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/post-fetch/.empty b/common/hooks/post-fetch/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/post-install/.empty b/common/hooks/post-install/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/post-pkg/.empty b/common/hooks/post-pkg/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-build/.empty b/common/hooks/pre-build/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-configure/.empty b/common/hooks/pre-configure/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-extract/.empty b/common/hooks/pre-extract/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-fetch/.empty b/common/hooks/pre-fetch/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-install/.empty b/common/hooks/pre-install/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-pkg/.empty b/common/hooks/pre-pkg/.empty new file mode 100644 index 0000000000..e69de29bb2