On 2005-06-18 Stephen Gran <[EMAIL PROTECTED]> wrote: [...] > Is /usr/sbin/sendmail the > canonical path to use? If so, I will just do that.
Hello, Indeed it is, policy 11.6. (Yes, I know you already agreed to this, I just like to document the reference. ;-) > As for the sendmail version, I think you're right - just defining them > in the milter after including the clamav-config.h ought to do it > (although it will break things for anyone compiling clamav with a > non-debian sendmail installed). > Hmm, have to think about this. Maybe this needs grotesque Makefile > hackery - look for an environment variable, otherwise run gcc with > -DNO_SENDMAIL or something, and define _that_ in the milter to mean > SENDMAIL_VERSION=$(debian_sendmail_version). That's starting to feel > like overkill, but it would easily allow people to rebuild against a > non-standard sendmail, which feels like the right thing. I doubt whether there is a working solution for this, as your aims are: #1 if /usr/sbin/sendmail does not exist build as if ${sendmail version in sid} was installed #2 if /usr/sbin/sendmail exists but is not sendmail (exim, qmail, esmtp, ...) build as if ${sendmail version in sid} was installed #3 if /usr/sbin/sendmail exists and is a real sendmail retrieve version information from binary and hardcode _these_ values. On top of that do not forget to add the corresponding dependency information. I guess that just detecting whether /usr/sbin/sendmail is a real sendmail is a quite hard problem without elegant solution. Which is why I'd suggest to drop requirement #3. cu andreas -- "See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf, fuhggvat qbja gur juveyvat tha. Neal Stephenson in "Snow Crash" http://downhill.aus.cc/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]