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