allow 'cat' as log compression method
Julien ÉLIE
julien at trigofacile.com
Sat Jun 5 08:38:33 UTC 2010
Hi Florian,
> I wonder if there's anybody else who'd prefer to *not* compress his logs
> in any way (and rather not keep it for too long to save space)?
Thanks for the idea.
Just committed.
> This is --with-log-compress=cat (I didn't bother to go hunting for cat
> as it's part of coreutils - should we do that?):
I added the check so that LOG_COMPRESS is properly set.
It seems fine in my config.log if I configure INN to use "cat":
LOG_COMPRESS='/bin/cat'
LOG_COMPRESSEXT=''
-dnl compress instead and others may want to use bzip2. INN also needs to
-dnl locate gzip regardless, since it's used for compressed rnews batches, and
-dnl needs to know how to uncompress .Z files.
+dnl compress instead, and others may want to use bzip2, or even not compress
+dnl at all their logs. INN also needs to locate gzip regardless, since it's
+dnl used for compressed rnews batches, and needs to know how to uncompress .Z
+dnl files.
and afterwards:
+AC_ARG_VAR([CAT], [Location of cat program])
+AC_PATH_PROG([CAT], [cat], [cat])
+cat)
+ if test x"$CAT" = xcat ; then
+ AC_MSG_ERROR([cat not found but specified for log compression])
+ fi
+ LOG_COMPRESS=$CAT
+ ;;
--
Julien ÉLIE
« Si le peuple est content des jeux, je te donnerai des sesterces.
S'il n'est pas content, je te donnerai aux lions ! » (Astérix)
More information about the inn-workers
mailing list