Hello, May I suggest adding the following line to the fcron ebuild, between econf and emake? sed s/-Ffcron/-Ffcron.$HOSTNAME/ config.h > config.h.2 && mv config.h.2 config.h When fcron sends emails the sender's name is set as "fcron", the above addition will set it as "fcron.$HOSTNAME". This comes in handy for sorting and quickly identifying which host the email originated on. Reproducible: Always Steps to Reproduce: 1. 2. 3.
hi, is it such a good idea to hard code the hostname like that at compile time?>
you're right, I did not consider the fact that some people are using precompiled packages. I guess patching fcron so it takes that as an argument is the better way to go.
folks -- do we have a patch forthcoming then?
i just added fcron-2.9.4 ... i'm not *too* familiar with its configuration setup, but could you see if it's possible with this new version ?
actually, this isnt a clean solution the $HOSTNAME will be replaced with whatever machine fcron was built on ... if you build a binary package and use it on other machines, they will all be using the $HOSTNAME of whatever machine it was built on the required solution here is to have fcron grab $HOSTNAME either from the environment or via the C function gethostname() if you develop a patch to handle that i'll gladly add it ... or just ask upstream to do it ;)