ports/154656: [maintainer-update] www/squidguard: add optional vendor patch

Guido Falsi mad at madpilot.net
Thu Feb 10 15:10:11 UTC 2011


>Number:         154656
>Category:       ports
>Synopsis:       [maintainer-update] www/squidguard: add optional vendor patch
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 10 15:10:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Guido Falsi
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
none
>Environment:
System: FreeBSD megatron.madpilot.net 8.1-STABLE FreeBSD 8.1-STABLE #23: Sun Nov 14 14:54:14 CET 2010 root at megatron.madpilot.net:/usr/obj/usr/src/sys/MEGATRON amd64

>Description:

Add an option to activate a vendor patch which allows using quoted
strings in the configuration file.

There is a bug in the software with certain strings used as usernames
or passwords. I'm adding this optional patch as a workaround.

Reported by: Teddy Jayasaputra <tedyjs at yahoo.com>

While I'm here remove MD5 sum and add LICENSE info.

>How-To-Repeat:
>Fix:

diff -ruN squidguard.old/Makefile squidguard/Makefile
--- squidguard.old/Makefile	2011-02-10 15:41:35.781832159 +0100
+++ squidguard/Makefile	2011-02-10 15:56:48.690069865 +0100
@@ -14,6 +14,9 @@
 MAINTAINER=	mad at madpilot.net
 COMMENT=	A fast redirector for squid
 
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 RUN_DEPENDS=	${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid
 
 USE_BDB=	3+
@@ -44,10 +47,17 @@
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
 OPTIONS=	SAMPLE_BL	"Install sample blacklists" On \
-		LDAP		"Enable LDAP support" Off
+		LDAP		"Enable LDAP support" 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
+.endif
+
 .if defined(WITH_LDAP)
 CONFIGURE_ARGS+=	--with-ldap
 USE_OPENLDAP=		yes
diff -ruN squidguard.old/distinfo squidguard/distinfo
--- squidguard.old/distinfo	2011-02-10 15:41:35.782831700 +0100
+++ squidguard/distinfo	2011-02-10 15:56:48.689066692 +0100
@@ -1,3 +1,4 @@
-MD5 (squidGuard-1.4.tar.gz) = de834150998c1386c30feae196f16b06
 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
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list