[MacPorts] #20626: patch to allow for proper functioning of pre-/post- install/uninstall/activate/deactivate procs