ports/141211: [PATCH] security/squidclamav: update to 4.1 + fix build with custom LOCALBASE

Sahil Tandon sahil at tandon.net
Sun Dec 6 07:50:03 UTC 2009


>Number:         141211
>Category:       ports
>Synopsis:       [PATCH] security/squidclamav: update to 4.1 + fix build with custom LOCALBASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 06 07:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Sahil Tandon
>Release:        FreeBSD 7.2-RELEASE i386
>Organization:
>Environment:

	
>Description:
- Update to 4.1
- Add SF to MASTER_SITES
- Fix build with custom LOCALBASE

Note: The latter point *should* simply require the modification of CONFIGURE_ENV, but the underlying Makefile does not "take" LDFLAGS from the environm
ent as documented, so I use a messy REINPLACE_CMD in post-configure until this is fixed upstream.
>How-To-Repeat:
	
>Fix:

	



--- squidclamav.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/security/squidclamav/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	26 Jun 2009 11:18:18 -0000	1.4
+++ Makefile	6 Dec 2009 07:47:28 -0000
@@ -6,9 +6,10 @@
 #
 
 PORTNAME=	squidclamav
-PORTVERSION=	4.0
+PORTVERSION=	4.1
 CATEGORIES=	security
-MASTER_SITES=	http://www.samse.fr/GPL/squidclamav/ \
+MASTER_SITES=	SF \
+		http://www.samse.fr/GPL/squidclamav/ \
 		http://www.darold.net/projects/squidclamav/
 
 MAINTAINER=	llevier at argosnet.com
@@ -18,12 +19,16 @@
 
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
+CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
 NO_LATEST_LINK=	yes
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 SUB_FILES=	pkg-message
 
 PLIST_FILES=	bin/squidclamav etc/squidclamav.conf.dist
 
+post-configure:
+	@${REINPLACE_CMD} -E 's|^(LDFLAGS = ).*|\1-L${LOCALBASE}/lib|' \
+		${WRKSRC}/Makefile
+
 do-install:
 	@${INSTALL_PROGRAM} ${WRKSRC}/squidclamav ${PREFIX}/bin
 	@${INSTALL_DATA} ${WRKSRC}/squidclamav.conf.dist ${PREFIX}/etc
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/security/squidclamav/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo	26 Jun 2009 11:18:18 -0000	1.2
+++ distinfo	6 Dec 2009 07:47:28 -0000
@@ -1,3 +1,3 @@
-MD5 (squidclamav-4.0.tar.gz) = 0a5e2fa8a4270a90235621fce9269949
-SHA256 (squidclamav-4.0.tar.gz) = ed1149cf05eb06165864e5a08bb8a7dcc28f9b9c9fe5c397d5010396b160bae6
-SIZE (squidclamav-4.0.tar.gz) = 102704
+MD5 (squidclamav-4.1.tar.gz) = dfb96fc89d9b5514a3f3b228b09c7a40
+SHA256 (squidclamav-4.1.tar.gz) = 0b3a0057eda8b7e9e8fba447f55d2b820f7b57f611032cc8d9567414d74a90bd
+SIZE (squidclamav-4.1.tar.gz) = 102505
--- squidclamav.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list