diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2012-09-16 16:35:19 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2012-09-16 16:35:19 +0000 |
commit | 740258d04fadd142521af8520a8e95efb1565e0d (patch) | |
tree | dc6596cade6742c897b933907590f41bad3f95da /www | |
parent | 1eb913cb368e4af46660530e00548adffa4fa707 (diff) | |
download | ports-740258d04fadd142521af8520a8e95efb1565e0d.tar.gz ports-740258d04fadd142521af8520a8e95efb1565e0d.zip |
Notes
Diffstat (limited to 'www')
-rw-r--r-- | www/webalizer/Makefile | 51 | ||||
-rw-r--r-- | www/webalizer/distinfo | 4 |
2 files changed, 35 insertions, 20 deletions
diff --git a/www/webalizer/Makefile b/www/webalizer/Makefile index fcf1df9174a1..e58dba5e1514 100644 --- a/www/webalizer/Makefile +++ b/www/webalizer/Makefile @@ -7,7 +7,7 @@ PORTNAME= webalizer PORTVERSION= 2.23.5 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES+= www MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/:main \ MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/geodb/:geodb \ @@ -34,29 +34,44 @@ CONFLICTS= geolizer-2* WEBALIZER_LANG?=english .endif -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= GEOIP GEODB BDB1 BDB WEBALIZER_CONV \ + FULL_CGI_REFS CLICKABLE_REFERER LARGE_URL +OPTIONS_DEFAULT= +NO_OPTIONS_SORT=yes +GEODB_DESC=Enable Webalizers IP-Database support +WEBALIZER_CONV_DESC=Use character code convert patch +FULL_CGI_REFS_DESC=Show full cgi parameters in referers +CLICKABLE_REFERER_DESC=Make referers clickable +LARGE_URL_DESC=Enable URLs longer 512 bytes -.if defined(WITH_GEODB) || defined(WITH_GEOIP)|| make(makesum) || defined(FETCH_ALL) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MGEODB} || ${PORT_OPTIONS:MGEOIP} || make(makesum) || defined(FETCH_ALL) DISTFILES+= webalizer-flags.tgz:main .endif -.if defined(WITH_GEODB) || make(makesum) || defined(FETCH_ALL) -DISTFILES+= webalizer-geodb-20120101.tgz:geodb +.if ${PORT_OPTIONS:MGEODB} || make(makesum) || defined(FETCH_ALL) +DISTFILES+= webalizer-geodb-20120901.tgz:geodb .endif +# slave ports override with languages specific gd .if !defined(LIB_DEPENDS) LIB_DEPENDS= gd.4:${PORTSDIR}/${GD_PORT} .endif -.if defined(WITH_GEOIP) + +.if ${PORT_OPTIONS:MGEOIP} LIB_DEPENDS+= GeoIP.5:${PORTSDIR}/net/GeoIP .endif -.if defined(WITH_GEODB) +.if ${PORT_OPTIONS:MGEODB} +.if empty(PORT_OPTIONS:MBDB1) +WITH_BDB= yes +.endif PLIST_SUB+= WITH_GEODB="" .else PLIST_SUB+= WITH_GEODB="@comment " .endif -.if defined(WITH_GEOIP) +.if ${PORT_OPTIONS:MGEOIP} WEBALIZER_SUFFIX= -geoip CONFLICTS+= ${PKGNAMEPREFIX}webalizer-2* CONFIGURE_ARGS+= --enable-geoip \ @@ -66,13 +81,13 @@ CONFIGURE_ARGS+= --enable-geoip \ CONFLICTS+= ${PKGNAMEPREFIX}webalizer-geoip-2* .endif -.if defined(WITH_GEODB) || defined(WITH_GEOIP) +.if ${PORT_OPTIONS:MGEODB} || ${PORT_OPTIONS:MGEOIP} PLIST_SUB+= WITH_GEOIP="" .else PLIST_SUB+= WITH_GEOIP="@comment " .endif -.if defined(WITH_BDB_VER) || defined(WITH_BDB) +.if defined(WITH_BDB_VER) || ${PORT_OPTIONS:MBDB} USE_BDB= yes INVALID_BDB_VER= 2 3 40 LDFLAGS+= -L${BDB_LIB_DIR} @@ -113,7 +128,7 @@ EXTRA_PATCHES+= ${FILESDIR}/ja-webalizer.conf-dist.patch .endif .endif -.if defined(WITH_WEBALIZER_CONV) +.if ${PORT_OPTIONS:MWEBALIZER_CONV} USE_ICONV=yes # The patch file is written by URASHIMA Akira # see http://tyche.pu-toyama.ac.jp/~a-urasim/webalizer/ @@ -123,11 +138,11 @@ CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -liconv" CFLAGS+= -I${LOCALBASE}/include .endif -.if !defined(WITHOUT_WEBALIZER_FULL_CGI_REFS) +.if ${PORT_OPTIONS:MFULL_CGI_REFS} CFLAGS+= -DUSE_FULL_CGI_REFS .endif -.if defined(WITH_WEBALIZER_CLICKABLE_REFERER) +.if ${PORT_OPTIONS:MCLICKABLE_REFERER} CFLAGS+= -DUSE_CLICKABLE_REFERER .endif @@ -137,12 +152,12 @@ pre-configure: ${REINPLACE_CMD} \ -e "s|webalizer.conf|${PKGNAMEPREFIX}webalizer.conf|" \ ${WRKSRC}/webalizer.c -.if defined(WITH_MAXURLH) +.if ${PORT_OPTIONS:MLARGE_URL} ${REINPLACE_CMD} \ -e "s|MAXURLH 512 |MAXURLH 2048|" \ ${WRKSRC}/webalizer.h .endif -.if defined(WITH_BDB_VER) || defined(WITH_BDB) +.if defined(WITH_BDB_VER) || ${PORT_OPTIONS:MBDB} ${REINPLACE_CMD} -e "s|-ldb|-l${BDB_LIB_NAME}|" \ ${WRKSRC}/configure .else @@ -171,11 +186,11 @@ post-install: .for i in ${MAN1} ${INSTALL_MAN} ${WRKSRC}/${i:S/^${PKGNAMEPREFIX}//} ${PREFIX}/man/man1/${i} .endfor -.if defined(WITH_GEODB) || defined(WITH_GEOIP) +.if ${PORT_OPTIONS:MGEODB} || ${PORT_OPTIONS:MGEOIP} ${MKDIR} ${PREFIX}/share/geolizer @${INSTALL_DATA} ${WRKDIR}/flags/* ${PREFIX}/share/geolizer/ .endif -.if defined(WITH_GEODB) +.if ${PORT_OPTIONS:MGEODB} @${INSTALL_DATA} ${WRKDIR}/GeoDB.dat ${PREFIX}/share/geolizer/ .endif .if !defined(NOPORTDOCS) @@ -191,4 +206,4 @@ post-install: .endfor .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/www/webalizer/distinfo b/www/webalizer/distinfo index 2f9b59f4e5c6..6ab721fed26b 100644 --- a/www/webalizer/distinfo +++ b/www/webalizer/distinfo @@ -2,5 +2,5 @@ SHA256 (webalizer-2.23-05-src.tgz) = 420cbb515df87a39d17d6810bdf4968d82b4ba6d90c SIZE (webalizer-2.23-05-src.tgz) = 537287 SHA256 (webalizer-flags.tgz) = df9961fec7da2c16ed3faefb763f912c2db5ddce6a24e4f46647d7e64b8ab29a SIZE (webalizer-flags.tgz) = 146658 -SHA256 (webalizer-geodb-20120101.tgz) = ba18b2a567f8e9779657f60b28dbdbc03f13dc20aff8a2c945c684eb7bee7617 -SIZE (webalizer-geodb-20120101.tgz) = 448101 +SHA256 (webalizer-geodb-20120901.tgz) = ac29d9a32a31f182da567cd7683651351d27bf8cd48346a8bf5636e5799879b8 +SIZE (webalizer-geodb-20120901.tgz) = 551954 |