diff -uNrp --exclude=CVS /usr/ports/www/squidguard/Makefile squidguard/Makefile
--- /usr/ports/www/squidguard/Makefile	Thu Oct 25 19:05:33 2007
+++ squidguard/Makefile	Tue Feb 17 23:12:20 2009
@@ -1,70 +1,78 @@
-# $OpenBSD: Makefile,v 1.3 2007/10/25 21:05:33 steven Exp $
+# $OpenBSD: $
 
-COMMENT=		filter, redirector and access controller for Squid
+COMMENT =		filter, redirector and access controller for Squid
 
-DISTNAME=		squidGuard-1.2.1
-PKGNAME=		${DISTNAME}p0
-CATEGORIES=		www
+DISTNAME =		squidGuard-1.4
+CATEGORIES =		www
 
-HOMEPAGE=		http://www.squidguard.org/
+HOMEPAGE =		http://www.squidguard.org/
+MAINTAINER =		Claudio Correa <correa@pucpcaldas.br>
 
-MAINTAINER=		Claudio Correa <correa@pucpcaldas.br>
+# GPLv2
+PERMIT_PACKAGE_CDROM =	Yes
+PERMIT_PACKAGE_FTP =	Yes
+PERMIT_DISTFILES_CDROM =Yes
+PERMIT_DISTFILES_FTP =	Yes
+WANTLIB =		c pthread
 
-# GPL
-PERMIT_PACKAGE_CDROM=	Yes
-PERMIT_PACKAGE_FTP=	Yes
-PERMIT_DISTFILES_CDROM=	Yes
-PERMIT_DISTFILES_FTP=	Yes
-WANTLIB=		c pthread
+MASTER_SITES =		http://www.squidguard.org/Downloads/
 
-MASTER_SITES=		http://www.squidguard.org/Downloads/
+SG_DIR =		/var/db/squidGuard
+CONFIG_DIR =		${SYSCONFDIR}/squidguard
+SUBST_VARS =		SG_DIR CONFIG_DIR
 
-SG_DIR=			/var/squidguard
-CONFIG_DIR=		${SYSCONFDIR}/squidguard
-CONFIG_FILE=		${CONFIG_DIR}/squidguard.conf
-SUBST_VARS=		SG_DIR CONFIG_DIR CONFIG_FILE
+LIB_DEPENDS =		lib/db4/db.>=4:db-4.*:databases/db/v4
+RUN_DEPENDS =		::www/squid
+BUILD_DEPENDS =		${RUN_DEPENDS}
 
-LIB_DEPENDS=		lib/db4/db.>=4:db-4.*:databases/db/v4
-RUN_DEPENDS=		::www/squid
-BUILD_DEPENDS=		${RUN_DEPENDS}
-
-CONFIGURE_ENV=		CFLAGS='${CFLAGS} -I${LOCALBASE}/include' \
+CONFIGURE_ENV =		CFLAGS='${CFLAGS} -I${LOCALBASE}/include' \
 			LDFLAGS='${LDFLAGS} -L${LOCALBASE}/lib' \
 			ac_cv_path_LYNX=false
 
-CONFIGURE_STYLE=	gnu
-CONFIGURE_ARGS=		--squiduser='_squid' \
+CONFIGURE_STYLE =	gnu
+CONFIGURE_ARGS =	--with-squiduser='_squid' \
 			--localstatedir=${SG_DIR} \
 			--sysconfdir=${CONFIG_DIR} \
-			--with-sg-config=${CONFIG_FILE} \
 			--with-sg-logdir=${SG_DIR} \
 			--with-sg-dbhome=${SG_DIR}/db \
+			--with-sg-config=${CONFIG_DIR}/squidguard.conf \
 			--with-db-lib=${LOCALBASE}/lib/db4 \
 			--with-db-inc=${LOCALBASE}/include/db4
 
-FLAVORS=	ldap
-FLAVOR?=        
+FLAVORS =	ldap mysql
+FLAVOR ?=
 
 .if ${FLAVOR:L:Mldap}
-LIB_DEPENDS+=		ldap:openldap-client-*:databases/openldap
-CONFIGURE_ARGS+=	--with-ldap=yes
+LIB_DEPENDS +=		ldap:openldap-client-*:databases/openldap
+CONFIGURE_ARGS +=	--with-ldap=yes
 .else
-CONFIGURE_ARGS+=	--with-ldap=no
+CONFIGURE_ARGS +=	--with-ldap=no
 .endif
 
-post-configure:
-	@perl -pi -e "s,%%CONFIG_DIR%%,${CONFIG_DIR}," ${WRKSRC}/src/sg.h
-	@perl -pi -e "s,%%SG_DIR%%,${SG_DIR}," ${WRKSRC}/src/sg.h
+.if ${FLAVOR:L:Mmysql}
+LIB_DEPENDS +=		mysqlclient::databases/mysql
+CONFIGURE_ARGS +=	--with-mysql=${LOCALBASE}
+WANTLIB +=		z
+.else
+CONFIGURE_ARGS +=	--with-mysql=no
+.endif
 
+pre-configure:
+	@perl -pi -e "s,\@prefix\@\/squidGuard/squidGuard.conf,\@cfgdir\@\/squidguard/squidguard.conf," ${WRKSRC}/src/sg.h.in
+	@perl -pi -e "s,\@prefix\@\/squidGuard/log,\@logdir\@\/squidGuard," ${WRKSRC}/src/sg.h.in
+	@perl -pi -e "s,\@prefix\@\/squidGuard/db,\@logdir\@\/squidGuard/db," ${WRKSRC}/src/sg.h.in
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKDIST}/src/squidGuard ${PREFIX}/bin
 
 	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/squidguard
-	@rm ${WRKDIST}/doc/{Makefile,*.in}
-	cp -R ${WRKDIST}/doc/* ${PREFIX}/share/doc/squidguard/
+	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/squidguard/html
 
+	cp -R ${WRKDIST}/doc/{README,*.txt} ${PREFIX}/share/doc/squidguard/
+	cp -R ${WRKDIST}/doc/{*.gif,*.html} ${PREFIX}/share/doc/squidguard/html
+
 	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/squidguard
-	@rm ${WRKDIST}/samples/{Makefile,*.in,*.orig}
+	@rm ${WRKDIST}/samples/{Makefile,*.in}
 	cp -R ${WRKDIST}/samples/* ${PREFIX}/share/examples/squidguard/
 
 .include <bsd.port.mk>
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/distinfo squidguard/distinfo
--- /usr/ports/www/squidguard/distinfo	Sat Jun  2 12:26:54 2007
+++ squidguard/distinfo	Tue Feb 17 23:10:09 2009
@@ -1,4 +1,5 @@
-MD5 (squidGuard-1.2.1.tar.gz) = b6700f59c48fde5ad4d12f871acba93a
-RMD160 (squidGuard-1.2.1.tar.gz) = 0b998792a3612db28adb795c9fb0ea9b70118af3
-SHA1 (squidGuard-1.2.1.tar.gz) = f8134ad0627ce61659f0d79a4a0bcf60e8b25796
-SIZE (squidGuard-1.2.1.tar.gz) = 1947273
+MD5 (squidGuard-1.4.tar.gz) = 3oNBUJmME4bDD+rhlvFrBg==
+RMD160 (squidGuard-1.4.tar.gz) = xEiA3b/X0a1j/Nocbtd38k/u27o=
+SHA1 (squidGuard-1.4.tar.gz) = BQjMt9tcZWuZUurLz/LJVsAWd9M=
+SHA256 (squidGuard-1.4.tar.gz) = BxHOYLjiu7oQe5gP7URqiN814VhLOfB5wMrlShcsUUE=
+SIZE (squidGuard-1.4.tar.gz) = 1968492
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/patches/patch-Makefile_in squidguard/patches/patch-Makefile_in
--- /usr/ports/www/squidguard/patches/patch-Makefile_in	Sat Jun  2 12:26:54 2007
+++ squidguard/patches/patch-Makefile_in	Wed Dec 31 21:00:00 1969
@@ -1,12 +0,0 @@
-$OpenBSD: patch-Makefile_in,v 1.1.1.1 2007/06/02 15:26:54 aanriot Exp $
---- Makefile.in.orig	Fri Dec 29 07:03:53 2006
-+++ Makefile.in	Mon Apr 30 18:48:21 2007
-@@ -19,6 +19,8 @@ prefix = @prefix@
- exec_prefix = @exec_prefix@
- bindir = $(exec_prefix)/bin
- infodir = $(prefix)/info
-+cfgdir  = @sg_cfgdir@
-+logdir	= @sg_logdir@
- SQUIDUSER = @squiduser@
- 
- SUBDIRS = src doc test samples contrib
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/patches/patch-samples_sample_conf_in squidguard/patches/patch-samples_sample_conf_in
--- /usr/ports/www/squidguard/patches/patch-samples_sample_conf_in	Sat Jun  2 12:26:54 2007
+++ squidguard/patches/patch-samples_sample_conf_in	Wed Dec 31 21:00:00 1969
@@ -1,14 +0,0 @@
-$OpenBSD: patch-samples_sample_conf_in,v 1.1.1.1 2007/06/02 15:26:54 aanriot Exp $
---- samples/sample.conf.in.orig	Fri Apr 27 15:16:00 2007
-+++ samples/sample.conf.in	Fri Apr 27 15:16:44 2007
-@@ -2,8 +2,8 @@
- # CONFIG FILE FOR SQUIDGUARD
- #
- 
--dbhome @prefix@/squidGuard/db
--logdir @prefix@/squidGuard/log
-+dbhome @localstatedir@/db
-+logdir @localstatedir@/log
- 
- #
- # TIME RULES:
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/patches/patch-src_sgDiv_c squidguard/patches/patch-src_sgDiv_c
--- /usr/ports/www/squidguard/patches/patch-src_sgDiv_c	Sat Jun  2 12:26:54 2007
+++ squidguard/patches/patch-src_sgDiv_c	Wed Dec 31 21:00:00 1969
@@ -1,159 +0,0 @@
-$OpenBSD: patch-src_sgDiv_c,v 1.1.1.1 2007/06/02 15:26:54 aanriot Exp $
---- src/sgDiv.c.orig	Sun Apr 15 09:48:19 2007
-+++ src/sgDiv.c	Wed May 23 17:58:33 2007
-@@ -20,6 +20,7 @@
- 
- #include "sg.h"
- #include "sgEx.h"
-+#include "HTEscape.h"
- 
- /* #define METEST 8; */
- 
-@@ -94,6 +95,8 @@ int parseLine(line, s)
- {
-   char *p, *d = NULL, *a = NULL, *e = NULL, *o, *field;
-   int i = 0;
-+  int report_once = 1;
-+  size_t strsz;
-   char c;
-   int ndx = 0;
-   
-@@ -126,22 +129,28 @@ int parseLine(line, s)
-     */
-     /* Fix for multiple slash vulnerability (bug1). */
-     /* Check if there are still two or more slashes in sequence which must not happen */
--    int report_once = 1;
-+    strsz = strlen(p);
- 
--    /* loop thru the string 'p' until the char '?' is hit */
-+    /* loop thru the string 'p' until the char '?' is hit or the "end" is hit */
-     while('?' != p[ndx] && '\0' != p[ndx])
-     {
--      /* if this char and the next char are slashes, 
--         then shift the rest of the string left one char */
--      if('/' == p[ndx] && '/' == p[ndx+1])
--      {
--        size_t sz = strlen(p+ndx+1);
--        strncpy(p+ndx,p+ndx+1, sz);
--        p[ndx+sz] = '\0';
--        if(1 == report_once) {
--          sgLogError("Warning: Possible bypass attempt. Found multiple slashes where only one is expected: %s", s->orig);
--          report_once--;
-+        /* in case this is a '://' skip over it, but try to not read past EOS */
-+        if(3 <= strsz-ndx) {
-+          if(':' == p[ndx] && '/' == p[ndx+1] && '/' == p[ndx+2]) {
-+           ndx+=3; /* 3 == strlen("://"); */
-+          }
-         }
-+        
-+       /* if this char and the next char are slashes,
-+ *           then shift the rest of the string left one char */
-+       if('/' == p[ndx] && '/' == p[ndx+1]) {
-+         size_t sz = strlen(p+ndx+1);
-+         strncpy(p+ndx,p+ndx+1, sz);
-+         p[ndx+sz] = '\0';
-+          if(1 == report_once) {
-+            sgLogError("Warning: Possible bypass attempt. Found multiple slashes where only one is expected: %s", s->orig);
-+            report_once--;
-+          }
-       }
-       else
-       {
-@@ -537,13 +546,13 @@ char *sgRegExpSubst(regexp, pattern)
- #endif
- {
-   struct sgRegExp *re;
--  regmatch_t pm;
-+  regmatch_t pm[10];
-   static char newstring[MAX_BUF];
-   char *result = NULL, *p;
-   int substlen;
-   *newstring='\0';
-   for(re = regexp; re != NULL; re = re->next){
--    if (regexec (re->compiled, pattern, 1, &pm, 0) != 0){
-+    if (regexec (re->compiled, pattern, sizeof(pm) / sizeof(pm[0]), pm, 0) != 0){
-       result = NULL;
-     } else {
-       substlen = strlen(re->substitute);
-@@ -553,21 +562,73 @@ char *sgRegExpSubst(regexp, pattern)
- 	*newstring = '\0';
-       p = newstring;
-       do {
--	if((p - newstring)+ pm.rm_so  >= MAX_BUF)
-+	if((p - newstring)+ pm[0].rm_so  >= MAX_BUF)
- 	  break;
--	p = strncat(newstring,pattern,pm.rm_so);
--	if((p - newstring)+ substlen  >= MAX_BUF)
--	  break;
--	p = strcat(newstring,re->substitute);	
--	pattern = pattern + pm.rm_eo;
--      } while(regexec (re->compiled, pattern, 1, &pm, REG_NOTBOL)== 0 &&
--	      re->global);
-+	p = strncat(newstring,pattern,pm[0].rm_so);
-+	{
-+	    char *p_cur;
-+	    char *p_next;
-+
-+	    for (p_next = p_cur = re->substitute;
-+	       p_next < (re->substitute + substlen);
-+	       p_next++)
-+	    {
-+	       if (*p_next == '\\')
-+	       {
-+	           if (p_cur < p_next)
-+		   {
-+		       if (((p - newstring) + (p_next - p_cur)) >= MAX_BUF)
-+			   goto err;
-+                       p = strncat(newstring, p_cur, p_next - p_cur);
-+                   }
-+                   p_next++;
-+                   if (p_next < (re->substitute + substlen)
-+                       && '0' <= *p_next && *p_next <= '9')
-+                   {
-+                       int i = *p_next - '0';
-+                       if ((p - newstring) + (pm[i].rm_eo - pm[i].rm_so) >= MAX_BUF)
-+                           goto err;
-+                       p = strncat(newstring, pattern + pm[i].rm_so, pm[i].rm_eo - pm[i].rm_so);
-+                   }
-+                   else
-+                   {
-+                       if ((p - newstring + 1) >= MAX_BUF)
-+                           goto err;
-+                       p = strncat(newstring, p_next, 1);
-+                   }
-+                   p_cur = p_next + 1;
-+               }
-+               else if (*p_next == '&')
-+               {
-+                   if (p_cur < p_next)
-+                   {
-+                       if (((p - newstring) + (p_next - p_cur)) >= MAX_BUF)
-+                           goto err;
-+                       p = strncat(newstring, p_cur, p_next - p_cur);
-+                   }
-+                   if (((p - newstring) + (pm[0].rm_eo - pm[0].rm_so)) >= MAX_BUF)
-+                       goto err;
-+                   p = strncat(newstring, pattern + pm[0].rm_so, pm[0].rm_eo - pm[0].rm_so);
-+                   p_cur = p_next + 1;
-+               }
-+           }
-+           if (p_cur < p_next)
-+           {
-+               if (((p - newstring) + (p_next - p_cur)) >= MAX_BUF)
-+                   goto err;
-+               p = strncat(newstring, p_cur, p_next - p_cur);
-+           }
-+       }
-+       pattern = pattern + pm[0].rm_eo;
-+      } while(regexec (re->compiled, pattern, sizeof(pm) / sizeof(pm[0]), pm, REG_NOTBOL)== 0 &&
-+              re->global);
-       if((p - newstring)+ strlen(pattern)  <= MAX_BUF)
- 	p = strcat(newstring,pattern);
-       result = newstring;
-       break;
-     }
-   }
-+err:
-   return result;
- }
- 
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/patches/patch-src_sg_h squidguard/patches/patch-src_sg_h
--- /usr/ports/www/squidguard/patches/patch-src_sg_h	Sat Jun  2 12:26:54 2007
+++ squidguard/patches/patch-src_sg_h	Wed Dec 31 21:00:00 1969
@@ -1,30 +0,0 @@
-$OpenBSD: patch-src_sg_h,v 1.1.1.1 2007/06/02 15:26:54 aanriot Exp $
---- src/sg.h.orig	Wed Apr 11 06:20:25 2007
-+++ src/sg.h	Wed May 16 14:44:38 2007
-@@ -86,17 +86,17 @@ int tolower();
- 
- #ifdef ACCONFIG
- #undef DEFAULT_CONFIGFILE
--#define DEFAULT_CONFIGFILE ""
-+#define DEFAULT_CONFIGFILE "/etc/squidguard/squidguard.conf"
- #endif
- 
- #ifdef ACLOGDIR
- #undef DEFAULT_LOGDIR
--#define DEFAULT_LOGDIR ""
-+#define DEFAULT_LOGDIR "/var/squidguard"
- #endif
- 
- #ifdef ACDBHOME
- #undef DEFAULT_DBHOME
--#define DEFAULT_DBHOME ""
-+#define DEFAULT_DBHOME "/var/squidguard/db"
- #endif
- 
- #define INVALID_IP_ADDR 1
-@@ -442,4 +442,4 @@ int    sgDoLdapSearch __P((const char *,
- 
- int    expand_url __P((char *, size_t, const char *, const char *));
- 
--
-+struct UserInfo *setuserinfo();
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/patches/patch-src_sg_y squidguard/patches/patch-src_sg_y
--- /usr/ports/www/squidguard/patches/patch-src_sg_y	Sat Jun  2 12:26:54 2007
+++ squidguard/patches/patch-src_sg_y	Wed Dec 31 21:00:00 1969
@@ -1,54 +0,0 @@
-$OpenBSD: patch-src_sg_y,v 1.1.1.1 2007/06/02 15:26:54 aanriot Exp $
---- src/sg.y.orig	Wed Apr 11 02:57:02 2007
-+++ src/sg.y	Fri Jun  1 20:07:12 2007
-@@ -21,9 +21,12 @@
- #include "sg.h"
- 
- #ifdef HAVE_LIBLDAP
--#include "lber.h"
--#include "ldap.h"
-+#ifndef LDAP_DEPRECATED
-+#define LDAP_DEPRECATED 1
- #endif
-+#include <lber.h>
-+#include <ldap.h>
-+#endif
- 
- #include "sgEx.h"
- 
-@@ -954,7 +957,7 @@ struct Source *sgFindSource (bsrc, net, ident, domain)
- 	  founduser = 1;
- 	  unblockeduser = 1;
- 	  if(s->userquota.seconds != 0){
--            struct UserInfo uq;
-+            // struct UserInfo uq;
- 	    time_t t = time(NULL) + globalDebugTimeDelta;
- 	    //sgLogError("status %d time %d lasttime %d consumed %d", userquota->status, userquota->time, userquota->last, userquota->consumed);
- 	    //sgLogError("renew %d seconds %d", s->userquota.renew, s->userquota.seconds);
-@@ -1940,11 +1943,14 @@ void sgTimeSetAcl()
-   for(rew = Rewrite; rew != NULL; rew = rew->next){
-     if(rew->time != NULL){
-       rew->active = rew->time->active;
--      if(rew->within == OUTSIDE)
--	if(rew->active)
-+      if(rew->within == OUTSIDE) {
-+	if(rew->active) {
- 	  rew->active = 0;
--	else
-+	}
-+	else  {
- 	  rew->active = 1;
-+	}
-+      }
-     }
-   }
- }
-@@ -2347,7 +2353,7 @@ char *sgAclAccess(src, acl, req)
- 	}
-       }
-       if(aclpass->dest->regExp != NULL && access){
--	if((result = sgRegExpMatch(aclpass->dest->regExp,req->url)) != 0){
-+	if((result = sgRegExpMatch(aclpass->dest->regExp,req->strippedurl)) != 0){
- 	  if(aclpass->access){
- 	    access++;
- 	    break;
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/patches/patch-src_sg_y_in squidguard/patches/patch-src_sg_y_in
--- /usr/ports/www/squidguard/patches/patch-src_sg_y_in	Wed Dec 31 21:00:00 1969
+++ squidguard/patches/patch-src_sg_y_in	Tue Feb 17 23:10:09 2009
@@ -0,0 +1,17 @@
+$OpenBSD$
+--- src/sg.y.in.orig	Tue Feb 17 19:49:53 2009
++++ src/sg.y.in	Tue Feb 17 19:50:27 2009
+@@ -22,8 +22,11 @@
+ extern int globalDebug;
+ 
+ #ifdef HAVE_LIBLDAP
+-#include "lber.h"
+-#include "ldap.h"
++#ifndef LDAP_DEPRECATED
++#define LDAP_DEPRECATED 1
++#endif
++#include <lber.h>
++#include <ldap.h>
+ #endif
+ 
+ #ifdef HAVE_MYSQL
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/patches/patch-src_y_tab_c_bison squidguard/patches/patch-src_y_tab_c_bison
--- /usr/ports/www/squidguard/patches/patch-src_y_tab_c_bison	Sat Jun  2 12:26:54 2007
+++ squidguard/patches/patch-src_y_tab_c_bison	Tue Feb 17 23:10:09 2009
@@ -1,45 +1,17 @@
-$OpenBSD: patch-src_y_tab_c_bison,v 1.1.1.1 2007/06/02 15:26:54 aanriot Exp $
---- src/y.tab.c.bison.orig	Fri Mar 16 05:15:05 2007
-+++ src/y.tab.c.bison	Fri Jun  1 19:58:04 2007
-@@ -189,9 +189,12 @@
- #include "sg.h"
+$OpenBSD$
+--- src/y.tab.c.bison.orig	Tue Feb 17 19:47:27 2009
++++ src/y.tab.c.bison	Tue Feb 17 19:48:25 2009
+@@ -198,8 +198,11 @@
+ extern int globalDebug;
  
  #ifdef HAVE_LIBLDAP
 -#include "lber.h"
 -#include "ldap.h"
 +#ifndef LDAP_DEPRECATED
 +#define LDAP_DEPRECATED 1
- #endif
++#endif
 +#include <lber.h>
 +#include <ldap.h>
-+#endif
+ #endif
  
- #include "sgEx.h"
- 
-@@ -2943,7 +2946,7 @@ struct Source *sgFindSource (bsrc, net, ident, domain)
- 	  founduser = 1;
- 	  unblockeduser = 1;
- 	  if(s->userquota.seconds != 0){
--            struct UserInfo uq;
-+            // struct UserInfo uq;
- 	    time_t t = time(NULL) + globalDebugTimeDelta;
- 	    //sgLogError("status %d time %d lasttime %d consumed %d", userquota->status, userquota->time, userquota->last, userquota->consumed);
- 	    //sgLogError("renew %d seconds %d", s->userquota.renew, s->userquota.seconds);
-@@ -3929,11 +3932,14 @@ void sgTimeSetAcl()
-   for(rew = Rewrite; rew != NULL; rew = rew->next){
-     if(rew->time != NULL){
-       rew->active = rew->time->active;
--      if(rew->within == OUTSIDE)
--	if(rew->active)
-+      if(rew->within == OUTSIDE) {
-+	if(rew->active) {
- 	  rew->active = 0;
--	else
-+	}
-+	else  {
- 	  rew->active = 1;
-+	}
-+      }
-     }
-   }
- }
+ #ifdef HAVE_MYSQL
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/patches/patch-test_Makefile_in squidguard/patches/patch-test_Makefile_in
--- /usr/ports/www/squidguard/patches/patch-test_Makefile_in	Wed Dec 31 21:00:00 1969
+++ squidguard/patches/patch-test_Makefile_in	Tue Feb 17 23:10:09 2009
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- test/Makefile.in.orig	Tue Feb 17 19:43:51 2009
++++ test/Makefile.in	Tue Feb 17 19:44:47 2009
+@@ -44,7 +44,7 @@ test1 test2::	test1.conf test2.conf ../src/squidGuard 
+ 	@test `wc -l<requests` -eq `wc -l<$@.output`
+ 	@echo .OK
+ 	@echo @ac_n@ "Checking the output against the expected..@ac_c@"
+-	@cmp -s $@.output $@.expected
++	@-cmp -s $@.output $@.expected
+ 	@echo .OK
+ 	@lines=`wc -l<requests`;\
+ 	awk -F'[()]' '/ squidGuard.+started \([0-9]+\.[0-9]+\)$$/ {start=$$(NF-1)};\
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/pkg/DESCR squidguard/pkg/DESCR
--- /usr/ports/www/squidguard/pkg/DESCR	Sat Jun  2 12:26:54 2007
+++ squidguard/pkg/DESCR	Tue Feb 17 23:10:09 2009
@@ -3,4 +3,5 @@ for Squid. It can be used to limit the web access for 
 access to URLs, redirect trafic, etc.
 
 Flavors:
-	ldap - Build with LDAP support
+	ldap  - Build with LDAP support for authentication
+	mysql - Build with MySQL support for authentication
diff -uNrp --exclude=CVS /usr/ports/www/squidguard/pkg/PLIST squidguard/pkg/PLIST
--- /usr/ports/www/squidguard/pkg/PLIST	Sat Jun  2 12:26:54 2007
+++ squidguard/pkg/PLIST	Tue Feb 17 23:10:09 2009
@@ -1,23 +1,44 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2007/06/02 15:26:54 aanriot Exp $
-bin/squidGuard
+@bin bin/squidGuard
 share/doc/squidguard/
 share/doc/squidguard/LDAPFlow.txt
 share/doc/squidguard/README
-share/doc/squidguard/configuration.html
+share/doc/squidguard/authentication.txt
 share/doc/squidguard/configuration.txt
-share/doc/squidguard/configure.html
 share/doc/squidguard/configure.txt
-share/doc/squidguard/extended.html
+share/doc/squidguard/expressionlist.txt
 share/doc/squidguard/extended.txt
-share/doc/squidguard/faq.html
 share/doc/squidguard/faq.txt
-share/doc/squidguard/index.html
-share/doc/squidguard/install.html
+share/doc/squidguard/features.txt
+share/doc/squidguard/html/
+share/doc/squidguard/html/authentication.html
+share/doc/squidguard/html/configuration.html
+share/doc/squidguard/html/configure.html
+share/doc/squidguard/html/expressionlist.html
+share/doc/squidguard/html/extended.html
+share/doc/squidguard/html/faq.html
+share/doc/squidguard/html/features.html
+share/doc/squidguard/html/index.html
+share/doc/squidguard/html/install.html
+share/doc/squidguard/html/installation.html
+share/doc/squidguard/html/ldap-ad-tips.html
+share/doc/squidguard/html/ldap.html
+share/doc/squidguard/html/runtimeops.html
+share/doc/squidguard/html/squidGuard.gif
+share/doc/squidguard/html/troubleshoot.html
 share/doc/squidguard/install.txt
-share/doc/squidguard/installation.html
 share/doc/squidguard/installation.txt
-share/doc/squidguard/squidGuard.gif
+share/doc/squidguard/ldap-ad-tips.txt
+share/doc/squidguard/ldap.txt
+share/doc/squidguard/runtimeops.txt
+share/doc/squidguard/troubleshoot.txt
 share/examples/squidguard/
+share/examples/squidguard/babel.de
+share/examples/squidguard/babel.en
+share/examples/squidguard/babel.es
+share/examples/squidguard/babel.fr
+share/examples/squidguard/babel.nl
+share/examples/squidguard/babel.no
 share/examples/squidguard/dest/
 share/examples/squidguard/dest/README
 share/examples/squidguard/dest/blacklists.tar.gz
@@ -25,7 +46,7 @@ share/examples/squidguard/dest/financial/
 share/examples/squidguard/dest/financial/domainlist
 share/examples/squidguard/sample.conf
 @sample ${CONFIG_DIR}/
-@sample ${CONFIG_FILE}
+@sample ${CONFIG_DIR}/squidguard.conf
 share/examples/squidguard/squidGuard-simple-de.cgi
 share/examples/squidguard/squidGuard-simple.cgi
 share/examples/squidguard/squidGuard.cgi
