Remove SELinux-related bundles

(cherry picked from commit 3fc71558a101b1dea357c2106ab727e92ba9f7ef)
Read cf-consumer.pid to kill the parent cf-consumer process. This will automatically kill all the child processes - no need to match all cf-consumer processes and kill them one by one.

Redmine: 6303
(cherry picked from commit 9a036eb7b349fbc1dfb6d46b85d2e8877bd3a129)

Conflicts:
	lib/3.7/processes.cf
reduce the amount of monitoring probes down to 33% or less to save hub reporting load

(cherry picked from commit 11a1376e1f5db49ea777dd9b1acfc0213c136bd0)
Packahge method pip needs to use pip_knowledge

(cherry picked from commit 4e3e3fbf086dc8fa55a8fdd58af6f2fbe4dc8534)

Conflicts:
	lib/3.7/packages.cf
Switch to autotools to avoid maintaining ugly Makefile platform hacks.

The existing approach does not work on AIX (and possibly others).

(cherry picked from commit e3ac259e2b3fdfc12fbbf62fe1d8f7138885c7f7)

Conflicts:
	Makefile
Fix tests on esoteric platforms where gmake is a better choice.

(cherry picked from commit 0085c1158e3be21745da7a88df33da145178a5a1)
Disable package tests on platforms the tests haven't been adapted to.

(cherry picked from commit f41213c144f8063b83e8d20686a9fb5165c6d19a)
Fixed systemctl paths reference in services.cf

(cherry picked from commit 605afa9095a377239cf4c67d45f564871722e4af)

Conflicts:
	lib/3.7/services.cf
Update install documentation after switch to autotools.

(cherry picked from commit 18d78c23fda238c2c1b1265a03a61ad31d8ee102)
Move reading of cf-consumer.pid to def.cf and guard it by enterprise and hub classes.

Redmine: 6303

This is necessary because class guards do not protect function evaluation when calling methods.

eg.

bundle1
  methods:
  class1::
   usebundle => bundle2;

bundle2
  methods:
  # class1 needs to be used here as well
  # Otherwise cf-promises will try to read the file
  # In our case, this file doesn't exist in client nodes
  class1::
    "data" string => readfile(...);

(cherry picked from commit 75e1f679362134175fc31841383a6eafef322bf7)
Skip package tests on Redhat 4.

RPM on Redhat 4 has a bug which corrupts the RPM database when we do
our tests. The cause is unknown, but it is suspected to have something
to do with the fact that we switch out the official repository with a
custom one. Either way, it renders package promises untestable on that
platform.

(cherry picked from commit 24065055bb3c61865bd23c6127cc2c5438fc1029)
Change: Specify 'Unsupported' for dmidecode strings on rhel4

Ref: https://dev.cfengine.com/issues/630

Old versions of dmidecode do not provide a good way of extracting
strings.

(cherry picked from commit 82db32b6b3039b39ec3f2a0832e4555f2544ff5c)
sort inventory ports listening for more usable reporting
(cherry picked from commit f1296649083740211647ef5a1dc9260ad19d618d)
Revert "sort inventory ports listening for more usable reporting"

This reverts commit 55992966ec6bdab9a1f0859f9e11f853f9059266.

sort() is only available in 3.6, thus would break backward-compat while upgrading from 3.0 or 3.5.
Ignore masterfiles/test-driver

It's created by something during builds, probably thanks to
@kacfengine's recent changes to use autotools.

(cherry picked from commit d70ca8fa36c7a1a78439105222bc00973a888d64)
Add daemonize bundle

(cherry picked from commit fc655f802156b4a52913cb6247659eb13e9074f6)

Conflicts:
	lib/3.7/commands.cf
Change: Cleanup inline docs

(cherry picked from commit 63bf31847db145478d8f52a75a04a19b88217322)

Conflicts:
	lib/3.7/commands.cf
Cleanup: Avoid code duplication for access rules regarding report query types.

Note: If a host can query for delta, it must be able to query for rebase.. not sure if keeping this separate makes sense any longer
(cherry picked from commit b672f03bc9272e16b11276109bf619f7008ccf8c)
Change: Guard daemonize bundle on windows

Windows is not supported by the daemonize bundle. Added documentation,
inform_mode and verbose_mode documentation. So that we dont run into
errors we also guard against execution on windows.

(cherry picked from commit a9d52c1526fedc46a6aa24bb4adb94fbe6cedc07)

Conflicts:
	lib/3.7/commands.cf
merged cf-upgrade to upgrade procedure

(cherry picked from commit d5dd382cad250c3ab83e766b2eed39ed563e51df)