freebsd-ports/www/mod_watch/Makefile
Anders Nordby 15e52923bf Update to 3.18.
Use DOCSDIR, install a few more docs files.

PR:		62806
2004-06-03 14:15:33 +00:00

56 lines
1.5 KiB
Makefile

# New ports collection makefile for: mod_watch
# Date created: 18 August 2001
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= mod_watch
PORTVERSION= 3.18
CATEGORIES= www
MASTER_SITES= http://www.snert.com/Software/download/ \
ftp://ftp.nuug.no/pub/anders/distfiles/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
EXTRACT_SUFX= .tgz
MAINTAINER= anders@FreeBSD.org
COMMENT= An Apache module to monitor bandwidth usage, for use with MRTG etc
USE_APACHE= yes
USE_PERL5= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_ARGS+= APXS="${APXS}"
ALL_TARGET= build-dynamic
RDOCS= CHANGES.TXT LICENSE.TXT notes-conf.txt notes-support.txt
DOCS= apache2mrtg.html index.shtml mailto.js mod_watch.html style.css
DOCS_HTMLIMAGES= apache-header-476-62.png mrpixel.gif mrtg-bar.png \
sun-logo.jpg wave1.jpg
post-patch:
${PERL} -pi -e "s@^APXS.*@@" ${WRKSRC}/Makefile
do-install:
${APXS} -i -A -n watch ${WRKSRC}/mod_watch.so
${INSTALL_SCRIPT} ${WRKSRC}/apache2mrtg.pl ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/mod_watch.pl ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/nfields.pl ${PREFIX}/sbin
.if !defined(NOPORTDOCS)
@${INSTALL} -d -m 0755 ${DOCSDIR}/html/Img
.for f in ${RDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/html/
.endfor
.for f in ${DOCS_HTMLIMAGES}
${INSTALL_DATA} ${WRKSRC}/Img/${f} ${DOCSDIR}/html/Img/
.endfor
.endif
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>