From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Dec 7 18:20:28 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D535816A4CE for ; Tue, 7 Dec 2004 18:20:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BBC943D76 for ; Tue, 7 Dec 2004 18:20:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB7IKSHn087717 for ; Tue, 7 Dec 2004 18:20:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB7IKSAR087713; Tue, 7 Dec 2004 18:20:28 GMT (envelope-from gnats) Resent-Date: Tue, 7 Dec 2004 18:20:28 GMT Resent-Message-Id: <200412071820.iB7IKSAR087713@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Renato Botelho Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A656816A4CE for ; Tue, 7 Dec 2004 18:19:49 +0000 (GMT) Received: from srv1.galle.com.br (srv1.galle.com.br [200.246.25.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CCBC43D5F for ; Tue, 7 Dec 2004 18:19:48 +0000 (GMT) (envelope-from root@srv1.galle.com.br) Received: (qmail 91061 invoked by uid 0); 7 Dec 2004 18:19:44 -0000 Message-Id: <20041207181944.91060.qmail@srv1.galle.com.br> Date: 7 Dec 2004 18:19:44 -0000 From: Renato Botelho To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: mt@primats.org.ua Subject: =?iso-8859-1?q?ports/74819=3A_=5BPATCH=5D_www/sarg=3A?= =?iso-8859-1?q?_sarg_wasn=B4t_find_gd_libraries?= X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2004 18:20:28 -0000 >Number: 74819 >Category: ports >Synopsis: [PATCH] www/sarg: sarg wasn´t find gd libraries >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Dec 07 18:20:27 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Renato Botelho >Release: FreeBSD 5.3-RELEASE-p1 i386 >Organization: Galle Folheados - http://www.galle.com.br >Environment: System: FreeBSD srv1.galle.com.br 5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #4: Wed Dec 1 17:16:06 BRDT >Description: Sarg wasn´t finding gd libraries, so, the option to generate bar graphs wasn´t working. Added a WITHOUT_GD option to disable this feature that is enabled by default Special thanks to the Sarg´s author (Pedro Lineu Orso) Port maintainer (mt@primats.org.ua) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- sarg-2.0.2.patch begins here --- diff -ruN --exclude=CVS /var/jail/data/usr/ports/www/sarg.orig/Makefile /var/jail/data/usr/ports/www/sarg/Makefile --- /var/jail/data/usr/ports/www/sarg.orig/Makefile Tue Dec 7 05:31:12 2004 +++ /var/jail/data/usr/ports/www/sarg/Makefile Tue Dec 7 16:10:54 2004 @@ -14,12 +14,25 @@ MAINTAINER= mt@primats.org.ua COMMENT= Squid log analyzer and HTML report generator +.if !defined(WITHOUT_GD) +LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd +.endif + GNU_CONFIGURE= yes CONFIGURE_ARGS= CC=gcc --enable-bindir="${PREFIX}/bin" --enable-sysconfdir="${PREFIX}/etc/${PORTNAME}" --enable-htmldir=${PREFIX}/www/${PORTNAME} +.if !defined(WITHOUT_GD) +CFLAGS+= -I ${LOCALBASE}/include -L ${LOCALBASE}/lib +.endif + MAN1= sarg.1 post-extract: @${CHMOD} +x ${WRKSRC}/sarg-php/locale + +post-configure: +.if !defined(WITHOUT_GD) + @${SED} -i .orig 's|^\(LDFLAGS.*\)|\1 -I ${LOCALBASE}/include -L ${LOCALBASE}/lib|g' ${WRKSRC}/Makefile +.endif .include --- sarg-2.0.2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: