diff options
author | madpilot <madpilot@FreeBSD.org> | 2014-01-15 01:29:21 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2014-01-15 01:29:21 +0800 |
commit | 36bbc0c4a2ba4e5d7b4ac844105a757be653c2dd (patch) | |
tree | 3bcf46407e80655acdfa466b2c560d8558680ac2 /www | |
parent | fb4de239085cb1ec5361faaf235d25d8808e79b7 (diff) | |
download | freebsd-ports-gnome-36bbc0c4a2ba4e5d7b4ac844105a757be653c2dd.tar.gz freebsd-ports-gnome-36bbc0c4a2ba4e5d7b4ac844105a757be653c2dd.tar.zst freebsd-ports-gnome-36bbc0c4a2ba4e5d7b4ac844105a757be653c2dd.zip |
Fix when compiled with BerkeleyDB 6.
PR: ports/185737
Submitted by: Leonid Nevecherya <nlv@imbera.ru>
Diffstat (limited to 'www')
-rw-r--r-- | www/squidguard/Makefile | 2 | ||||
-rw-r--r-- | www/squidguard/files/patch-src_sgDB.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/www/squidguard/Makefile b/www/squidguard/Makefile index 633eedcc4413..e03d274ba317 100644 --- a/www/squidguard/Makefile +++ b/www/squidguard/Makefile @@ -2,7 +2,7 @@ PORTNAME= squidGuard PORTVERSION= 1.4 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= www MASTER_SITES= http://www.squidguard.org/Downloads/:a \ http://www.squidguard.org/Downloads/Contrib/:b diff --git a/www/squidguard/files/patch-src_sgDB.c b/www/squidguard/files/patch-src_sgDB.c index 06a357585359..47e600da11d0 100644 --- a/www/squidguard/files/patch-src_sgDB.c +++ b/www/squidguard/files/patch-src_sgDB.c @@ -1,5 +1,5 @@ --- src/sgDb.c.orig 2008-07-14 20:29:41.000000000 +0200 -+++ src/sgDb.c 2011-11-15 12:00:23.744601663 +0100 ++++ src/sgDb.c 2014-01-14 11:53:55.712138134 +0100 @@ -119,14 +119,39 @@ flag = DB_CREATE; if(createdb) @@ -24,7 +24,7 @@ + } + } +#endif -+#if DB_VERSION_MAJOR == 5 ++#if DB_VERSION_MAJOR >= 5 + if(globalUpdate || createdb || (dbfile != NULL && stat(dbfile,&st))){ + flag = DB_CREATE; + if(createdb) |