Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jan 2012 17:24:17 GMT
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/164127: www/webalizer WITH_GEODB requires WITH_BDB
Message-ID:  <201201141724.q0EHOHWw061234@freefall.freebsd.org>
Resent-Message-ID: <201201141730.q0EHUDBc061358@freefall.freebsd.org>

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

>Number:         164127
>Category:       ports
>Synopsis:       www/webalizer WITH_GEODB requires WITH_BDB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 14 17:30:13 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Adam Weinberger
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 8.2-STABLE FreeBSD 8.2-STABLE #5 r227907: Wed Nov 23 21:55:50 UTC 2011 simon@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL i386


	
>Description:

www/webalizer with WITH_GEODB will install fine, but it requires bdb support to actually
read the GeoDB.dat file. WITH_GEODB needs to explicitly bring in bdb.

>How-To-Repeat:

WITH_GEODB=yes
[root@apnoea /usr/ports/www/webalizer/work/webalizer-2.23-05]$ ./webalizer
Webalizer V2.23-05 (FreeBSD 8.2-STABLE i386) English
Using logfile /var/log/httpd-access.log (clf)
Error opening file: /usr/local/share/geolizer/GeoDB.dat
GeoDB lookups disabled

WITH_GEODB=yes WITH_BDB=yes
[root@apnoea /usr/ports/www/webalizer/work/webalizer-2.23-05]$ ./webalizer
Webalizer V2.23-05 (FreeBSD 8.2-STABLE i386) English
Using logfile /var/log/httpd-access.log (clf)
Using Webalizer GeoDB 20120101-1

>Fix:


--- webalizer.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/webalizer/Makefile,v
retrieving revision 1.89
diff -u -d -p -r1.89 Makefile
--- Makefile	12 Jan 2012 15:54:22 -0000	1.89
+++ Makefile	14 Jan 2012 17:14:30 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	webalizer
 PORTVERSION=	2.23.5
+PORTREVISION=	1
 CATEGORIES+=	www
 MASTER_SITES=	ftp://ftp.mrunix.net/pub/webalizer/:main \
 MASTER_SITES=	ftp://ftp.mrunix.net/pub/webalizer/geodb/:geodb \
@@ -48,6 +49,9 @@ LIB_DEPENDS=	gd.4:${PORTSDIR}/${GD_PORT}
 .if defined(WITH_GEOIP)
 LIB_DEPENDS+=	GeoIP.5:${PORTSDIR}/net/GeoIP
 .endif
+.if defined(WITH_GEODB)
+WITH_BDB=	yes
+.endif
 
 .if defined(WITH_GEODB)
 PLIST_SUB+=	WITH_GEODB=""
--- webalizer.patch ends here ---


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



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