Created attachment 364422 [details] app-admin/cdist-2.3.6.ebuild cdist is a usable configuration management system. It adheres to the KISS principle and is being used in small up to enterprise grade environments. cdist is an alternative to other configuration management systems like bcfg2, chef, cfengine and puppet. see http://http://www.nico.schottelius.org/software/cdist/ It is the only configuration management tool which doesn't have any dependencies on the target hosts except SSH and a shell. Please add it to the portage tree.
Created attachment 364424 [details] cdist-2.3.6.ebuild Now in testing ;-)
Created attachment 367486 [details] cdist-3.0.0.ebuild
Hi, The ebuild looks trivial enough. I have two questions 1) Why rm cdist/conf/.gitignore? If it is not strictly necessary we can remove that line and src_prepare altogether. 2) in src_install, we usually do the actual installation first and then install the documentation. So 'doman' should be moved after distutils-r1_src_install. But that's not a problem. I can fix that myself before committing it but i am mostly interested in point #1
Hi, 1) This is only to have a clean system after install, but i try to fix it in the next upstream release. 2) Thx for the info, so please change the the order off the statements.
(In reply to Daniel Heule from comment #4) > Hi, > > 1) This is only to have a clean system after install, > but i try to fix it in the next upstream release. > Do you mean that the .gitignore file gets installed and that's why you need to remove it?
Another thing that I forgot to mention was that in the DESCRIPTION field we don't usually repeat the name of that package because of the recursive description "foo is a bar" does not really describe "foo" ;) I will change it to "A usable configuration management system"
(In reply to Markos Chandras from comment #5) > (In reply to Daniel Heule from comment #4) > > Hi, > > > > 1) This is only to have a clean system after install, > > but i try to fix it in the next upstream release. > > > Do you mean that the .gitignore file gets installed and that's why you need > to remove it? Jep.
(In reply to Markos Chandras from comment #6) > Another thing that I forgot to mention was that in the DESCRIPTION field we > don't usually repeat the name of that package because of the recursive > description > > "foo is a bar" does not really describe "foo" ;) > > I will change it to > > "A usable configuration management system" Ok, for the next time i know it
Another comment (sorry just looking at these as i do a final review) DOCS=$(use doc && echo README) no no no $(use..) must not be used in global scope. It breaks the metadata cache http://devmanual.gentoo.org/general-concepts/portage-cache/index.html I see no problem installing the README file unconditionally. As far as the HTML_DOCS are concerned, the same problem exists there. I assume one way to fix this is something like this src_install() { if use doc; then HTML_DOCS="docs/man/man1/*.html docs/man/man7/*.html" doman docs/man/man1/*.1 docs/man/man7/*.7 distutils-r1_src_install }
Created attachment 367514 [details] cdist-3.0.0.ebuild
(In reply to Markos Chandras from comment #9) > Another comment (sorry just looking at these as i do a final review) > > DOCS=$(use doc && echo README) > > no no no > > $(use..) must not be used in global scope. It breaks the metadata cache > http://devmanual.gentoo.org/general-concepts/portage-cache/index.html > > I see no problem installing the README file unconditionally. > > As far as the HTML_DOCS are concerned, the same problem exists there. > > I assume one way to fix this is something like this > > > > src_install() { > if use doc; then > HTML_DOCS="docs/man/man1/*.html docs/man/man7/*.html" > > doman docs/man/man1/*.1 docs/man/man7/*.7 > distutils-r1_src_install > } I have read the link about the portage-cache, sorry for my fault, a new version is submitted.
Committed with the fixes we discussed. +*cdist-3.0.0 (09 Jan 2014) + + 09 Jan 2014; Markos Chandras <hwoarang@gentoo.org> +cdist-3.0.0.ebuild, + +metadata.xml: + Initial commit. Ebuild by Daniel Heule <nerve@ipwar.ch> who will maintain it. + Bug #493108 + http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/cdist/cdist-3.0.0.ebuild?revision=1.1&view=markup http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/cdist/metadata.xml?revision=1.1&view=markup