Re: [squid-users] thoughts about squidGuard?

From: Con Tassios <[email protected]>
Date: Sat, 20 May 2006 17:25:43 +1000 (EST)

On Fri, 19 May 2006, Philip Hachey wrote:

> That's what I was hoping for: a package with all of the patches.
>
> Unfortunately, I read this:
> "It needs a recent version of Berkeley Database (> 3.2 but < 4.x) "
> Since I'm using DB 4.2 and I do not wish to downgrade, I think I'll pass.

squidGuard can be made to use Berkeley DB 4.2 with the following patch

--- src/sgDb.c.orig 2004-03-09 03:45:59.000000000 +0100
+++ src/sgDb.c 2004-03-09 03:48:43.000000000 +0100
@@ -98,13 +98,13 @@
     if(createdb)
       flag = flag | DB_TRUNCATE;
     if ((ret =
- Db->dbp->open(Db->dbp, dbfile, NULL, DB_BTREE, flag, 0664)) != 0) {
+ Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, flag, 0664)) != 0) {
       (void) Db->dbp->close(Db->dbp, 0);
       sgLogFatalError("Error db_open: %s", strerror(ret));
     }
   } else {
     if ((ret =
- Db->dbp->open(Db->dbp, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) {
+ Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) {
       sgLogFatalError("Error db_open: %s", strerror(ret));
     }
   }
Received on Sat May 20 2006 - 01:25:46 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT