Re: trainbogo.sh tune

"Matthias Andree" <[email protected]>
Newsgroups gmane.mail.bogofilter.general
Message-ID <[email protected]>
Am 17.02.2009, 00:05 Uhr, schrieb RW <[email protected]>:

> On Mon, 16 Feb 2009 22:43:37 +0100
> "Matthias Andree" <[email protected]> wrote:
>
>
>> > But why? All *nix operating systems have openssl by default (openssh
>> > need them), i think much better to use openssl and not use md5sum...
>
>
>
>> Stability of interfaces. I've seen openssl change incompatibly
>> before where fetchmail depended on it, for extracting key finger
>> prints, and some systems may have gnutls instead.
>>
>> My options are:
>> - depend on coreutils for FreeBSD (so we have md5sum)
>
> I don't like that, having a dependency that could be easily removed for
> a script most people probably don't use.
>
>> - patch scripts for md5 (for FreeBSD, possible in the port)
>
> That's a better solution, and easy to do in FreeBSD ports.
>
>> - do nothing and let people deal with it (such as: install coreutils)
>
> Or simply make the script more portable e.g.
>
> if [ `which md5sum` ] ;then
>    MD5='md5sum | sed "s/  -//"'
> elif [ `which md5` ]; then
>    MD5=md5
> fi
> ...
> md5=$(printf "%s" "${rndseed}${i}" | $MD5

Only that md5 and md5sum have different command line options and different  
output format...

-- 
Matthias Andree
_______________________________________________
Bogofilter mailing list
[email protected]
http://www.bogofilter.org/mailman/listinfo/bogofilter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.