ports/74819: [PATCH] www/sarg: sarg wasn´t find gd libraries
Renato Botelho
renato at galle.com.br
Tue Dec 7 18:20:28 UTC 2004
>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 at 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 at 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 <bsd.port.mk>
--- sarg-2.0.2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list