Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177593 - net-misc/cfengine - add gentoo automatically to "Defined Classes"
Summary: net-misc/cfengine - add gentoo automatically to "Defined Classes"
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-08 08:12 UTC by Peter
Modified: 2008-12-05 08:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patches misc.c to recognise gentoo (gentoo_version.patch,381 bytes, patch)
2007-05-08 08:15 UTC, Peter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2007-05-08 08:12:09 UTC
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.
Comment 1 Peter 2007-05-08 08:15:01 UTC
Created attachment 118527 [details, diff]
patches misc.c to recognise gentoo
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-12-05 08:24:07 UTC
This is already in upstream 2.2.x.