1998-07-13 02:13:21 +02:00
|
|
|
# New ports collection makefile for: webalizer
|
|
|
|
# Date created: 02.Jun 1998
|
|
|
|
# Whom: dirk.meyer@dinoex.sub.org
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1998-07-13 02:13:21 +02:00
|
|
|
|
2000-04-15 01:53:21 +02:00
|
|
|
PORTNAME= webalizer
|
2000-04-09 00:04:57 +02:00
|
|
|
PORTVERSION= 1.30.4
|
1998-07-13 02:13:21 +02:00
|
|
|
CATEGORIES= german www
|
|
|
|
MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/ \
|
1999-09-27 04:47:09 +02:00
|
|
|
ftp://ftp.lan-ks.de/pub/approved/
|
2000-04-09 00:04:57 +02:00
|
|
|
DISTNAME= webalizer-1.30-04-src
|
1998-07-13 02:13:21 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= dirk.meyer@dinoex.sub.org
|
|
|
|
|
1999-12-27 22:28:28 +01:00
|
|
|
LIB_DEPENDS= gd.0:${PORTSDIR}/graphics/gd
|
1998-07-13 02:13:21 +02:00
|
|
|
|
1999-06-10 10:20:01 +02:00
|
|
|
WEBALIZER_LANG= german
|
|
|
|
GNU_CONFIGURE= yes
|
1999-09-27 04:47:09 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gdlib=${PREFIX}/lib \
|
|
|
|
--with-gd=${PREFIX}/include/gd \
|
|
|
|
--with-language=${WEBALIZER_LANG}
|
1999-11-01 01:58:47 +01:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="-L${PREFIX}/lib"
|
1999-01-26 03:21:12 +01:00
|
|
|
BIN1= de-webalizer
|
|
|
|
MAN1= de-webalizer.1
|
|
|
|
DOC1= CHANGES COPYING Copyright INSTALL \
|
|
|
|
README country-codes.txt webalizer.LSM
|
1999-09-27 04:47:09 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src$//}
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${PERL5} -pi -e "s=/etc=${PREFIX}/etc=" ${WRKSRC}/webalizer.c
|
1998-07-13 02:13:21 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for i in ${BIN1}
|
1999-01-26 03:21:12 +01:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/webalizer ${PREFIX}/bin/${i}
|
1998-07-13 02:13:21 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
1999-01-26 03:21:12 +01:00
|
|
|
.for i in ${MAN1}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/webalizer.1 ${PREFIX}/man/man1/${i}
|
|
|
|
.endfor
|
1998-07-13 02:13:21 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/de-webalizer
|
1999-01-26 03:21:12 +01:00
|
|
|
.for i in ${DOC1}
|
1998-07-13 02:13:21 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/de-webalizer/${i}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
${MKDIR} ${PREFIX}/share/examples/de-webalizer
|
1999-03-31 17:17:31 +02:00
|
|
|
.for i in msfree.gif sample.conf webalizer.gif
|
1998-07-13 02:13:21 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/examples/de-webalizer/${i}
|
|
|
|
.endfor
|
1999-03-31 17:17:31 +02:00
|
|
|
@if [ ! -f ${PREFIX}/etc/de-webalizer.conf-dist ]; then \
|
1999-01-26 03:21:12 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample.conf \
|
1999-03-31 17:17:31 +02:00
|
|
|
${PREFIX}/etc/de-webalizer.conf-dist ; \
|
1999-01-26 03:21:12 +01:00
|
|
|
fi
|
1998-07-13 02:13:21 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|