Re: [Nagios-devel] How to make a patch (in response to Lars Volker)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] How to make a patch (in response to Lars Volker)

Post by Guest »

Andreas Ericsson wrote:
> To create a patch;
> Get the latest source-code from the CVS (instruction on sourceforge.
> Click 'cvs access' or something like that).
> Delete all the CVS directories and .cvsignore files from it
> --
> cp -a nagios nagios.orig
> rm -rf `find -type d -name CVS`
> rm -rf `find -type f -name .cvsignore`
> --
>
or
check out the code from CVS

$ export
CVSROOT=:pserver:[email protected]:/cvsroot/nagios
$ cvs co nagios

.. do your changes
..
$ cvs diff -u > patchfile.

$ vi patchfile (removing crud which should be put into the .cvsignore)

this way you can update the CVS source when people update the codebase.

regards
Ian


>
> Lars Volker wrote:
>
>> Hi,
>>
>> wouldn't it be nice if nagios respectively the status.cgi would be
>> able to recognize, if two host- or servicenames are domain names,
>> which means dot-separated (like blabla.foo.bar.org.uk) and then sort
>> the list in an domain-aware kind of way?
>>
>> Example:
>> current behaviour:
>> a.x.org
>> a.y.org
>> b.x.org
>> b.y.org
>>
>> desired behaviour
>> a.x.org
>> b.x.org
>> a.y.org
>> b.y.org
>>
>> I've written a few lines of code, implementing that feature, but i
>> edited the source directly and have never worked with patching stuff.
>> So if someone would like to explain, i'll provide a patch. Anyways the
>> code is just about 9 lines long, simple hack only, but working. There
>> also should be some kind of switch to toggle the behaviour.
>>
>> Thanks
>> Lars
>>
>






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked