Add First kind of hooks pkgbuild: arguments for pkgbuild.sh are:

$1: status can be : success, ignored, failed, skipped

$2: origin of the port concerned

$3: name of the port concerned

$4:
   if ignored: the ignored reason is passed
   if success: nothing
   if failed: the failed phase
   if skipped: origin of the failing ports responsible for this port to be skipped

$5: only failed has a $5, this is the path on the system to the log file