diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2008-07-18 04:16:48 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2008-07-18 04:16:48 +0000 |
commit | 9bbed3bcbfc98dc82daeba06bf9f35c2206a8302 (patch) | |
tree | 86fc946f81ac3d81c907d44a58b68d81584a5d61 /www | |
parent | a275b9de9c636542509a35090412ef470acc1f45 (diff) | |
download | ports-9bbed3bcbfc98dc82daeba06bf9f35c2206a8302.tar.gz ports-9bbed3bcbfc98dc82daeba06bf9f35c2206a8302.zip |
- new option WITH_GEODB
Notes
Notes:
svn path=/head/; revision=217005
Diffstat (limited to 'www')
-rw-r--r-- | www/webalizer/Makefile | 15 | ||||
-rw-r--r-- | www/webalizer/pkg-plist | 5 |
2 files changed, 17 insertions, 3 deletions
diff --git a/www/webalizer/Makefile b/www/webalizer/Makefile index d8a3a165969b..3127c2731bff 100644 --- a/www/webalizer/Makefile +++ b/www/webalizer/Makefile @@ -17,6 +17,9 @@ DISTFILES= ${DISTNAME}.tgz:main webalizer-geodb-20080701.tgz:main .if defined(WITH_GEOIP) || make(makesum) || defined(FETCH_ALL) DISTFILES+= world.small.zip:flags special.small.zip:flags .endif +.if defined(WITH_GEODB) || make(makesum) || defined(FETCH_ALL) +DISTFILES+= webalizer-geodb-20080701.tgz:main +.endif MAINTAINER?= dinoex@FreeBSD.org COMMENT= A web server log file analysis program @@ -44,6 +47,12 @@ WEBALIZER_LANG?=english .include <bsd.port.pre.mk> +.if defined(WITH_GEODB) +PLIST_SUB+= WITH_GEODB="" +.else +PLIST_SUB+= WITH_GEODB="@comment " +.endif + .if defined(WITH_GEOIP) WEBALIZER_SUFFIX= -geoip CONFLICTS+= ${PKGNAMEPREFIX}webalizer-2* @@ -172,9 +181,13 @@ post-install: .for i in ${MAN1} ${INSTALL_MAN} ${WRKSRC}/${i:S/^${PKGNAMEPREFIX}//} ${PREFIX}/man/man1/${i} .endfor -.if defined(WITH_GEOIP) +.if defined(WITH_GEODB) || defined(WITH_GEOIP) ${MKDIR} ${PREFIX}/share/geolizer +.endif +.if defined(WITH_GEOIP) @${INSTALL_DATA} ${WRKDIR}/*.png ${PREFIX}/share/geolizer/ +.endif +.if defined(WITH_GEODB) @${INSTALL_DATA} ${WRKDIR}/GeoDB.dat ${PREFIX}/share/geolizer/ .endif .if !defined(NOPORTDOCS) diff --git a/www/webalizer/pkg-plist b/www/webalizer/pkg-plist index 35228a7d803a..a5e502bf76e8 100644 --- a/www/webalizer/pkg-plist +++ b/www/webalizer/pkg-plist @@ -3,7 +3,7 @@ bin/%%PKGNAMEPREFIX%%wcmgr @exec ln -f %B/%%PKGNAMEPREFIX%%webalizer %B/%%PKGNAMEPREFIX%%webazolver @unexec rm -f %B/%%PKGNAMEPREFIX%%webazolver etc/%%PKGNAMEPREFIX%%webalizer.conf-dist -%%WITH_GEOIP%%share/geolizer/GeoDB.dat +%%WITH_GEODB%%share/geolizer/GeoDB.dat %%WITH_GEOIP%%share/geolizer/ad.png %%WITH_GEOIP%%share/geolizer/ae.png %%WITH_GEOIP%%share/geolizer/af.png @@ -255,7 +255,8 @@ etc/%%PKGNAMEPREFIX%%webalizer.conf-dist %%WITH_GEOIP%%share/geolizer/za.png %%WITH_GEOIP%%share/geolizer/zm.png %%WITH_GEOIP%%share/geolizer/zw.png -%%WITH_GEOIP%%@dirrm share/geolizer +%%WITH_GEODB%%@dirrmtry share/geolizer +%%WITH_GEOIP%%@dirrmtry share/geolizer %%PORTDOCS%%%%DOCSDIR%%/CHANGES %%PORTDOCS%%%%DOCSDIR%%/Copyright %%PORTDOCS%%%%DOCSDIR%%/DNS.README |