--- bin/cygport.in 2006-12-09 01:38:31.031250000 -0500 +++ bin/cygport.in 2006-12-17 21:05:06.529951800 -0500 @@ -1130,8 +1130,21 @@ cyginstall } +# provides a hook for cygclasses/cygports to take action +# *before* built-in preinstall steps. +src_install_init_hook() { + : +} + +# provides a hook for cygclasses/cygports to take action +# *after* built-in postinstall steps. +src_install_fini_hook() { + : +} + # protect functions export -f dodir docinto exeinto insinto +export -f src_install_init_hook src_install_fini_hook readonly -f dodir docinto exeinto insinto __prepinstalldirs cyginstall @@ -1917,7 +1930,7 @@ ;; inst*) __stage Installing; - (__prepinstalldirs && src_install && src_postinst) 2>&1 | tee ${installlog}; + (src_install_init_hook && __prepinstalldirs && src_install && src_postinst && src_install_fini_hook) 2>&1 | tee ${installlog}; _status=$?; ;; list)