1998-06-28 14:42:09 +02:00
|
|
|
# New ports collection makefile for: webalizer
|
|
|
|
# Date created: 02.Jun 1998
|
|
|
|
# Whom: dirk.meyer@dinoex.sub.org
|
|
|
|
#
|
1999-08-31 04:43:35 +02:00
|
|
|
# $FreeBSD$
|
2000-04-10 02:07:29 +02:00
|
|
|
#
|
1998-06-28 14:42:09 +02:00
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= webalizer
|
2002-04-18 06:23:54 +02:00
|
|
|
PORTVERSION= 2.1.10
|
2002-04-19 07:14:58 +02:00
|
|
|
PORTREVISION= 1
|
2001-05-28 21:57:20 +02:00
|
|
|
CATEGORIES+= www
|
1998-06-28 14:42:09 +02:00
|
|
|
MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/ \
|
2001-02-23 06:48:23 +01:00
|
|
|
ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
|
2002-04-18 06:23:54 +02:00
|
|
|
DISTNAME= ${PORTNAME}-2.01-10-src
|
1998-06-28 14:42:09 +02:00
|
|
|
|
2002-05-02 08:05:45 +02:00
|
|
|
MAINTAINER?= dinoex@FreeBSD.org
|
1998-06-28 14:42:09 +02:00
|
|
|
|
2001-06-04 13:29:30 +02:00
|
|
|
.if !defined(LIB_DEPENDS)
|
2002-04-19 20:45:32 +02:00
|
|
|
.if defined(WEBALIZER_WITH_GD2)
|
2002-05-23 06:35:38 +02:00
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd2
|
2002-04-19 20:45:32 +02:00
|
|
|
.else
|
2001-02-12 11:01:08 +01:00
|
|
|
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
|
2001-06-04 13:29:30 +02:00
|
|
|
.endif
|
2002-04-19 20:45:32 +02:00
|
|
|
.endif
|
1998-06-28 14:42:09 +02:00
|
|
|
|
2002-04-19 07:14:58 +02:00
|
|
|
USE_BZIP2= yes
|
1999-06-10 10:15:24 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2002-01-06 00:43:13 +01:00
|
|
|
DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
EXAMPLESDIR?= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
2001-05-28 21:57:20 +02:00
|
|
|
|
|
|
|
.if defined(BATCH)
|
|
|
|
# no cosmetique spaces allowed
|
|
|
|
WEBALIZER_LANG?=english
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-10-10 06:31:37 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-dns \
|
|
|
|
--with-etcdir=${PREFIX}/etc \
|
|
|
|
--with-gdlib=${PREFIX}/lib \
|
1999-08-01 22:30:09 +02:00
|
|
|
--with-gd=${PREFIX}/include/gd
|
1999-11-01 01:58:47 +01:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="-L${PREFIX}/lib"
|
2001-06-23 15:02:26 +02:00
|
|
|
CFLAGS+= -DLINKLIST_MAX_STRING=256
|
2001-05-28 21:57:20 +02:00
|
|
|
MAKE_ARGS+= CFLAGS="${CFLAGS}"
|
|
|
|
MAN1= ${PKGNAMEPREFIX}webalizer.1
|
1999-01-26 03:18:17 +01:00
|
|
|
DOC1= CHANGES COPYING Copyright INSTALL \
|
2000-10-10 06:31:37 +02:00
|
|
|
README README.FIRST DNS.README country-codes.txt
|
2001-05-28 21:57:20 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src$//}
|
|
|
|
PLIST_SUB+= PKGNAMEPREFIX=${PKGNAMEPREFIX}
|
2002-01-27 16:49:35 +01:00
|
|
|
SUPP_LANG= catalan chinese croatian czech danish dutch english \
|
|
|
|
estonian finnish french galician german greek hungarian \
|
|
|
|
icelandic indonesian italian japanese korean latvian \
|
|
|
|
malay norwegian polish portuguese portuguese_brazil \
|
|
|
|
romanian romanian-iso-8859-2 russain serbian \
|
|
|
|
simplified_chinese slowak slovene spanish swedish \
|
|
|
|
turkish ukrainian
|
1999-06-10 10:15:24 +02:00
|
|
|
|
|
|
|
.if defined(WEBALIZER_LANG)
|
|
|
|
CONFIGURE_ARGS+= --with-language=${WEBALIZER_LANG}
|
|
|
|
.endif
|
1998-07-31 10:48:02 +02:00
|
|
|
|
1999-07-04 20:54:16 +02:00
|
|
|
pre-configure:
|
2001-03-10 20:03:14 +01:00
|
|
|
@${PERL5} -pi -e "s=/etc=${PREFIX}/etc=" ${WRKSRC}/webalizer.1
|
2001-05-28 21:57:20 +02:00
|
|
|
@${PERL5} -pi -e "s=webalizer.conf=${PKGNAMEPREFIX}webalizer.conf=" \
|
|
|
|
${WRKSRC}/webalizer.c
|
1998-07-31 10:48:02 +02:00
|
|
|
.if !defined(WEBALIZER_LANG)
|
|
|
|
@${ECHO_MSG} "You can customize the language by typing"
|
2000-10-10 06:31:37 +02:00
|
|
|
@${ECHO_MSG} " make WEBALIZER_LANG=<lang>"
|
|
|
|
@${ECHO_MSG} "where <lang> is one of:"
|
|
|
|
@${ECHO_MSG} ${SUPP_LANG}
|
1998-07-31 10:48:02 +02:00
|
|
|
.endif
|
|
|
|
|
1998-06-28 14:42:09 +02:00
|
|
|
do-install:
|
2001-05-28 21:57:20 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/webalizer \
|
|
|
|
${PREFIX}/bin/${PKGNAMEPREFIX}webalizer
|
|
|
|
${LN} -sf ${PKGNAMEPREFIX}webalizer \
|
|
|
|
${PREFIX}/bin/${PKGNAMEPREFIX}webazolver
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample.conf \
|
|
|
|
${PREFIX}/etc/${PKGNAMEPREFIX}webalizer.conf-dist ;
|
1998-06-28 14:42:09 +02:00
|
|
|
|
|
|
|
post-install:
|
1999-01-26 03:18:17 +01:00
|
|
|
.for i in ${MAN1}
|
2001-05-28 21:57:20 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/webalizer.1 ${PREFIX}/man/man1/${i}
|
1999-01-26 03:18:17 +01:00
|
|
|
.endfor
|
1998-06-28 14:42:09 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-01-06 00:43:13 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
1999-01-26 03:18:17 +01:00
|
|
|
.for i in ${DOC1}
|
2002-01-06 00:43:13 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
1998-06-28 14:42:09 +02:00
|
|
|
.endfor
|
2002-01-06 00:43:13 +01:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2000-10-10 06:31:37 +02:00
|
|
|
.for i in msfree.png sample.conf webalizer.png
|
2002-01-06 00:43:13 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR}/${i}
|
1998-06-28 14:42:09 +02:00
|
|
|
.endfor
|
2001-05-28 21:57:20 +02:00
|
|
|
.endif
|
1998-06-28 14:42:09 +02:00
|
|
|
|
2001-05-28 21:57:20 +02:00
|
|
|
.include <bsd.port.post.mk>
|