blob: f2f9cc2cb53f4c12445ed35eb2d10030f7e2b9d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# New ports collection makefile for: mod_watch
# Date created: 18 August 2001
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= mod_watch
PORTVERSION= 3.12
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.snert.com/Software/mod_watch/ \
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
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
${INSTALL_DATA} ${WRKSRC}/CHANGES.TXT ${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/LICENSE.TXT ${DOCSDIR}/
.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>
|