Medium: Build: Use git for the build hash

Backported from those commits:
  ClusterLabs/pacemaker@87629d5 Medium: Build: Use git for the build hash
  ClusterLabs/pacemaker@2feaa3f Medium: Build: Fix processing of git archive strings
  ClusterLabs/pacemaker@f9978f3 Correction to exact sed scripts
Low: Teach git which files to ignore

Backported from these commits:
    ClusterLabs/pacemaker@87629d5 Medium: Build: Use git for the build hash
    ClusterLabs/pacemaker@004093c Low: Git: Ignore build results
Medium: Build: Fix srpm generation when no build counter is present

Backported from: ClusterLabs/pacemaker@8b1aa91a437bebd3db847910bd9c7e73a7ac0473
Low: Build: The GNUtls library package was renamed in opensuse-11.0

Backported from: ClusterLabs/pacemaker@200dfafc47c0b6b443c64361353145719e835406
Medium: corosync: Bug rhbz#729035 - Build pacemaker/corosync plugin with the correct options

Backported from: ClusterLabs/pacemaker@57203e55722039ca1bf2d0be3faa45475e7e9dc0
Low: Build: Always use a short hash for the build version.

Backported from: ClusterLabs/pacemaker@08f5c57c0cc8c08077a1b687b51163ad1ea86141
Low: RA: SysInfo: use awk instead of bash to calculate memory and disk sizes

The initial motivation for this work was to remove bashisms.
However it also simplifies the code and fixes some correctness issues.

Signed-off-by: Simon Horman <horms@verge.net.au>

Mercurial revision: ea60c510840fa7e8b21bb34ba67de0b1730076e7

Backported from: ClusterLabs/pacemaker@408ac5511f05f5dffcce3f928849295b4fdbebeb

This fix was partialy backported to 1.0.12 at ClusterLabs/pacemaker-1.0@78737e0
and this commit will fix it completely.
Medium: RA: Fix the metadata of HealthSMART and SysInfo RAs

Backported from: ClusterLabs/pacemaker@b62f0232d4a536d3c21926be3edf9d2edda79802
Low: extra: Allow manpages to be built for RAs when ocf-shellfuncs is not present

Backported from: ClusterLabs/pacemaker@6f52af8cf740e04ba937625b06ea7b41eceabe47
1.0 backport notes: pingd is excepted.
Low: corosync: Fix some compile warnings in the pacemaker/corosync plugin

Backported from: ClusterLabs/pacemaker@e68e64b2ee4c0cbf5f562a8d524c127cdbbc6772
Medium: crmd: Send out all of the meta parameters to lrmd for stop actions

Backported from: ClusterLabs/pacemaker@fcfe6fe522138343e4138248829926700fac213e
Medium: PE: cl#5002 - increment_clone() does not terminate on invalid input

Backported from: ClusterLabs/pacemaker@96cade27c6c97e163d73e96fb0668360b8590916

High: PE: Correct return from error path
Backported from: 0ec68c38cd90eae6048d6758408540d61514033f
Low: Tools: Remove strange quote characters from help text

Backported from: ClusterLabs/pacemaker@960bee1fbb1cd9e7143026176abac4d748cb0668
Low: PE: Restore log message to its correct severity

Backported from: ClusterLabs/pacemaker@6c78ec9885e8e87bf6168d1e4fc90f907a4ce1b5
Medium: Tools: Bug cl#5005 - Prevent glib error that resulted in duplicate crm_simulate output when redirceted to a file

Backported from: ClusterLabs/pacemaker@18512a77cf0f8a6f66ff9e1247030ab718768bc6
Low: cib: Bug cl#5018 - Check the return status of scanf to satisfy -Werror=unused-result

Backported from: ClusterLabs/pacemaker@d656301da3dddd688bd507d95ee3679eb0952181
Medium: Core: Fix compilation on distros with -Werror=unused-result

Backported from: ClusterLabs/pacemaker@509315edd1c820be1b5ee0d8aded4d6869fc1c9a
High: cib: Don't halt disk writes if the previous digest is missing

Backported from: ClusterLabs/pacemaker@cd9f32e59456255bd0a2c205aeafd65a2a3013db
High: cib: Fix coverity RESOURCE_LEAK defect

Backported from: ClusterLabs/pacemaker@aaec8dbc80b069121be847ae0c9594f2fa3fa35f
Low: ais: Glib aborts compilation unless you include /only/ the main header file

Backported from: ClusterLabs/pacemaker@23609fd4d0bda81d0271056ed27debb6c59ff9c1

1.0 backport notes:
  ipc_bridge.c has been removed in 1.1 at 5b4592b but still in use in 1.0.