Cfengine automatically recognises certain distributions and adds them to the list of classes when cfagent is run. Attached is a patch which gives cfengine capability to recognise gentoo. It only recognises gentoo as a distribution from the /etc/gentoo-release file, not any specific versions (since I didn't see much use for that). Patch applies and compiles fine on version 2.1.17, 2.1.18, 2.1.20 and 2.1.22-r1. Tested in production with 2.1.20 Reproducible: Always Steps to Reproduce: 1. Run cfagent -qv 2. Check "Defined Classes" 3. Gentoo does not appear here Actual Results: Gentoo does not appear in cfengines "Defined Classes" Expected Results: Gentoo should appear in cfengines "Defined Classes" for ease of management.
Created attachment 118527 [details, diff] patches misc.c to recognise gentoo
This is already in upstream 2.2.x.