aboutsummaryrefslogtreecommitdiff
path: root/www/webalizer
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2007-03-25 11:44:24 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2007-03-25 11:44:24 +0000
commitf99fc821cd23fa8b1ccef3052b3c85ac0d655f8a (patch)
tree149d2f227eae6b8e0631ad75eca9b7a6bcf7ebee /www/webalizer
parentac16320f8e7bbdc33c3a7c7f85b561a7e2c25c9f (diff)
downloadports-f99fc821cd23fa8b1ccef3052b3c85ac0d655f8a.tar.gz
ports-f99fc821cd23fa8b1ccef3052b3c85ac0d655f8a.zip
Notes
Diffstat (limited to 'www/webalizer')
-rw-r--r--www/webalizer/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/www/webalizer/Makefile b/www/webalizer/Makefile
index f48d13307ddc..49731e4c7031 100644
--- a/www/webalizer/Makefile
+++ b/www/webalizer/Makefile
@@ -145,12 +145,16 @@ do-extract:
.endif
pre-configure:
- @${MV} ${WRKSRC}/webalizer.1 ${WRKSRC}/webalizer.1.sed
- ${SED} -e "s=/etc=${PREFIX}/etc=" \
- ${WRKSRC}/webalizer.1.sed > ${WRKSRC}/webalizer.1
- @${MV} ${WRKSRC}/webalizer.c ${WRKSRC}/webalizer.c.sed
- ${SED} -e "s=webalizer.conf=${PKGNAMEPREFIX}webalizer.conf=" \
- ${WRKSRC}/webalizer.c.sed > ${WRKSRC}/webalizer.c
+ ${REINPLACE_CMD} -e "s|/etc|${PREFIX}/etc|" \
+ ${WRKSRC}/webalizer.1
+ ${REINPLACE_CMD} \
+ -e "s|webalizer.conf|${PKGNAMEPREFIX}webalizer.conf|" \
+ ${WRKSRC}/webalizer.c
+.if defined(WITH_GEOIP)
+ ${REINPLACE_CMD} \
+ -e 's|USE_GEOIP=""|USE_GEOIP="yes"|' \
+ ${WRKSRC}/configure
+.endif
.if !defined(WEBALIZER_LANG)
@${ECHO_MSG} "You can customize the language by typing"
@${ECHO_MSG} " make WEBALIZER_LANG=<lang>"