openbsd-ports/www/webalizer/Makefile
mbalmer 58a1d6d934 Add a MESSAGE file explaining that this is an extended version of the
webalizer and that webalizer.current files need to be deleted.

requested by brad.
2008-01-30 21:38:48 +00:00

49 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.24 2008/01/30 21:38:48 mbalmer Exp $
COMMENT= web server log file analysis program
DISTNAME= webalizer-2.01-10-RB21-src
PKGNAME= webalizer-2.01.10p5
CATEGORIES= www
MASTER_SITES= http://www.patrickfrei.ch/webalizer/rb21/
HOMEPAGE= http://www.patrickfrei.ch/webalizer/
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
LIB_DEPENDS= gd.>=18::graphics/gd
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c jpeg m png z
MODULES= converters/libiconv
WRKDIST= ${WRKDIR}/webalizer-2.01-10-RB21
CONFIGURE_STYLE= gnu dest
CONFIGURE_ARGS= --enable-dns
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
LIBS="-ljpeg"
NO_REGRESS= Yes
pre-patch:
tr -d \\r <${WRKSRC}/sample.conf >${WRKSRC}/sample.conf.new && \
mv ${WRKSRC}/sample.conf.new ${WRKSRC}/sample.conf
post-install:
cd ${PREFIX}/bin && ln -s webalizer webazolver
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/webalizer
${INSTALL_DATA} ${WRKSRC}/DNS.README ${PREFIX}/share/doc/webalizer/
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/webalizer/
${INSTALL_DATA} ${WRKSRC}/README.FIRST ${PREFIX}/share/doc/webalizer/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/webalizer
${INSTALL_DATA} ${WRKSRC}/sample.conf \
${PREFIX}/share/examples/webalizer/
.include <bsd.port.mk>