1998-07-13 00:13:21 +00:00
|
|
|
# New ports collection makefile for: webalizer
|
1999-09-27 02:47:09 +00:00
|
|
|
# Version required: 1.30.*
|
1998-07-13 00:13:21 +00:00
|
|
|
# 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
|
|
|
|
1999-09-27 02:47:09 +00:00
|
|
|
DISTNAME= webalizer-1.30-04-src
|
|
|
|
PKGNAME= de-webalizer-1.30.4
|
1998-07-13 00:13:21 +00:00
|
|
|
CATEGORIES= german www
|
|
|
|
MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/ \
|
1999-09-27 02:47:09 +00:00
|
|
|
ftp://ftp.lan-ks.de/pub/approved/
|
1998-07-13 00:13:21 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= dirk.meyer@dinoex.sub.org
|
|
|
|
|
1999-12-27 21:28:28 +00:00
|
|
|
LIB_DEPENDS= gd.0:${PORTSDIR}/graphics/gd
|
1998-07-13 00:13:21 +00:00
|
|
|
|
1999-06-10 08:20:01 +00:00
|
|
|
WEBALIZER_LANG= german
|
|
|
|
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:
|
1999-01-26 02:21:12 +00:00
|
|
|
.for i in ${MAN1}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/webalizer.1 ${PREFIX}/man/man1/${i}
|
|
|
|
.endfor
|
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>
|