diff options
author | rillig <rillig@pkgsrc.org> | 2006-11-11 23:51:30 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-11-11 23:51:30 +0000 |
commit | 8f9b2f0817841889732df579b6c5032dc2223aab (patch) | |
tree | 5faf1cb205cffbe17b91d3504bd9cfc10fce83b4 /mk/install | |
parent | 06e3596610ba9917b269ae12eb10e0017294db2d (diff) | |
download | pkgsrc-8f9b2f0817841889732df579b6c5032dc2223aab.tar.gz |
Added some documentation.
Since hooks should not be overwritten, removed the !target() check. That
way, one gets a warning when attempting to add some code to the hook.
Diffstat (limited to 'mk/install')
-rw-r--r-- | mk/install/install.mk | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/mk/install/install.mk b/mk/install/install.mk index 2d600862f57..57befdf8880 100644 --- a/mk/install/install.mk +++ b/mk/install/install.mk @@ -1,4 +1,25 @@ -# $NetBSD: install.mk,v 1.28 2006/11/11 23:31:38 rillig Exp $ +# $NetBSD: install.mk,v 1.29 2006/11/11 23:51:30 rillig Exp $ +# +# This file provides the code for the "install" phase. +# +# Public targets: +# +# install: +# Installs the package files into LOCALBASE. +# + +# Interface for other infrastructure components: +# +# Hooks for use by the infrastructure: +# +# privileged-install-hook: +# This hook is placed after the package has been installed, +# before leaving the privileged mode. +# +# unprivileged-install-hook: +# This hook is placed _before_ switching to privileged mode +# in order to install the package. +# ###################################################################### ### install (PUBLIC) @@ -73,17 +94,9 @@ install-check-interactive: @${DO_NADA} .endif -###################################################################### -### unprivileged-install-hook (PRIVATE, override, hook) -###################################################################### -### unprivileged-install-hook is a generic hook target that is run just -### before pkgsrc elevates privileges for install-all. -### .PHONY: unprivileged-install-hook -.if !target(unprivileged-install-hook) unprivileged-install-hook: @${DO_NADA} -.endif ###################################################################### ### install-check-version (PRIVATE) @@ -363,17 +376,8 @@ register-pkg: @${DO_NADA} .endif -###################################################################### -### privileged-install-hook (PRIVATE, override, hook) -###################################################################### -### privileged-install-hook is a generic hook target that is run just -### before pkgsrc drops elevated privileges. -### -.PHONY: privileged-install-hook -.if !target(privileged-install-hook) -privileged-install-hook: +privileged-install-hook: .PHONY @${DO_NADA} -.endif ###################################################################### ### install-clean (PRIVATE) |