Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2011 01:25:27 +0200 (CEST)
From:      Guido Falsi <mad@madpilot.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/157326: [maintainer-update] www/squidguard add vendor patch to enable dnsbl
Message-ID:  <20110525232527.C388F18CB@megatron.madpilot.net>
Resent-Message-ID: <201105252330.p4PNU2O9034981@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         157326
>Category:       ports
>Synopsis:       [maintainer-update] www/squidguard add vendor patch to enable dnsbl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 25 23:30:02 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Guido Falsi
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
none
>Environment:
System: FreeBSD megatron.madpilot.net 8.2-STABLE FreeBSD 8.2-STABLE #0: Thu Apr 21 12:44:44 CEST 2011 root@megatron.madpilot.net:/usr/obj/usr/src/sys/MEGATRON amd64

>Description:

Add optional vendor patch which adds support for dnsbl.

Suggested (with a patch) by: Davide D'Amico <davide.damico@gmail.com>

>How-To-Repeat:
>Fix:

diff -ruN squidguard.old/Makefile squidguard/Makefile
--- squidguard.old/Makefile	2011-05-26 01:21:51.582818130 +0200
+++ squidguard/Makefile	2011-05-26 01:22:20.390672006 +0200
@@ -9,7 +9,10 @@
 PORTVERSION=	1.4
 PORTREVISION=	3
 CATEGORIES=	www
-MASTER_SITES=	http://www.squidguard.org/Downloads/
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
+MASTER_SITES=	http://www.squidguard.org/Downloads/ \
+		http://www.squidguard.org/Downloads/Contrib/
 
 MAINTAINER=	mad@madpilot.net
 COMMENT=	A fast redirector for squid
@@ -48,14 +51,17 @@
 
 OPTIONS=	SAMPLE_BL	"Install sample blacklists" On \
 		LDAP		"Enable LDAP support" Off \
+		DNS_BL		"Enable DNS based blacklists" Off \
 		QUOTE_STRING	"Add quoted string patch" Off
 
 .include <bsd.port.pre.mk>
 
 .if defined(WITH_QUOTE_STRING)
-PATCH_SITES=	http://www.squidguard.org/Downloads/
-PATCHFILES=	Contrib/squidGuard-1.4-quoted_string_support.diff
-PATCH_DIST_STRIP=-p2
+DISTFILES+=	squidGuard-1.4-quoted_string_support.diff
+.endif
+
+.if defined(WITH_DNS_BL)
+DISTFILES+=	squidGuard-1.4-dnsbl.patch
 .endif
 
 .if defined(WITH_LDAP)
@@ -91,6 +97,12 @@
 		${REINPLACE_CMD} -E -e 's,(db_version),\1_4002,g' \
 			${WRKSRC}/configure ; \
 	fi
+.if defined(WITH_QUOTE_STRING)
+	${PATCH} -d ${WRKSRC} --forward --quiet -p2 <${DISTDIR}/squidGuard-1.4-quoted_string_support.diff
+.endif
+.if defined(WITH_DNS_BL)
+	${PATCH} -d ${WRKSRC} --forward --quiet -p1 <${DISTDIR}/squidGuard-1.4-dnsbl.patch
+.endif
 
 post-build:
 .if !defined(WITHOUT_SAMPLE_BL)
diff -ruN squidguard.old/distinfo squidguard/distinfo
--- squidguard.old/distinfo	2011-05-26 01:21:51.575816978 +0200
+++ squidguard/distinfo	2011-05-26 01:22:20.391672131 +0200
@@ -1,4 +1,6 @@
 SHA256 (squidGuard-1.4.tar.gz) = 0711ce60b8e2bbba107b980fed446a88df35e1584b39f079c0cae54a172c5141
 SIZE (squidGuard-1.4.tar.gz) = 1968492
-SHA256 (Contrib/squidGuard-1.4-quoted_string_support.diff) = 510c2ac13e7211d019c4ab7233bedf6db3d715ebd9e35e7e3f66267cc37b5ec5
-SIZE (Contrib/squidGuard-1.4-quoted_string_support.diff) = 13593
+SHA256 (squidGuard-1.4-quoted_string_support.diff) = 510c2ac13e7211d019c4ab7233bedf6db3d715ebd9e35e7e3f66267cc37b5ec5
+SIZE (squidGuard-1.4-quoted_string_support.diff) = 13593
+SHA256 (squidGuard-1.4-dnsbl.patch) = e1e656573cf3525e69d38db67945c34fbe8b13aa46c3bff0cd946b41be8aec44
+SIZE (squidGuard-1.4-dnsbl.patch) = 9481
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110525232527.C388F18CB>