Auto detect number of cores in order to speed up using parallelization
(cherry picked from commit fe77b46352898b944b35981a732b1c1cc0518fed)
Add --no-tests option to build-remote.
(cherry picked from commit d20515ac8c56351f64365976ad114ae9664f421f)
Add support for detection of number of CPU cores on HPUX.
(cherry picked from commit 63a2b5015b6a57cd327bb3e4b5e875e4328b7b38)
Add HPUX support to packaging scripts.

This is a trimmed down version of of commit 9dbcdfebd9c70f from the
master branch. We don't want to risk breaking the other platform
packages in a patch release, so this patch just contains the
pregenerated files from that commit.

Redmine #6798.
Merge branch '3.6.2.x-hpux' into 3.6.x