head	1.12;
access;
symbols
	RELEASE_5_4_0:1.11
	RELEASE_4_11_0:1.11
	RELEASE_5_3_0:1.11
	RELEASE_4_10_0:1.10
	RELEASE_5_2_1:1.10
	RELEASE_5_2_0:1.10
	RELEASE_4_9_0:1.7
	RELEASE_5_1_0:1.7
	RELEASE_4_8_0:1.7
	RELEASE_5_0_0:1.6
	RELEASE_4_7_0:1.6
	RELEASE_4_6_2:1.6
	RELEASE_4_6_1:1.6
	RELEASE_4_6_0:1.6
	RELEASE_5_0_DP1:1.6
	RELEASE_4_5_0:1.4
	RELEASE_4_4_0:1.1;
locks; strict;
comment	@# @;


1.12
date	2005.05.07.09.55.42;	author linimon;	state dead;
branches;
next	1.11;

1.11
date	2004.06.03.14.15.33;	author anders;	state Exp;
branches;
next	1.10;

1.10
date	2003.11.07.09.12.57;	author marcus;	state Exp;
branches;
next	1.9;

1.9
date	2003.10.16.05.38.54;	author edwin;	state Exp;
branches;
next	1.8;

1.8
date	2003.10.16.01.56.58;	author kris;	state Exp;
branches;
next	1.7;

1.7
date	2003.03.07.06.12.45;	author ade;	state Exp;
branches;
next	1.6;

1.6
date	2002.03.24.17.07.39;	author anders;	state Exp;
branches;
next	1.5;

1.5
date	2002.02.24.17.44.01;	author anders;	state Exp;
branches;
next	1.4;

1.4
date	2001.11.21.23.52.04;	author anders;	state Exp;
branches;
next	1.3;

1.3
date	2001.10.07.02.03.44;	author petef;	state Exp;
branches;
next	1.2;

1.2
date	2001.09.17.03.45.48;	author dwcjr;	state Exp;
branches;
next	1.1;

1.1
date	2001.09.03.18.27.28;	author knu;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Per insistence of the author of this software, remove these ports from
the Ports Collection.  The author specifically insists that no patches
be distributed for his software.

Please do not contact portmgr about this policy, it is the author's sole
choice.

Hat:	portmgr
@
text
@# New ports collection makefile for:	mod_watch
# Date created:			18 August 2001
# Whom:				Anders Nordby <anders@@fix.no>
#
# $FreeBSD: ports/www/mod_watch/Makefile,v 1.11 2004/06/03 14:15:33 anders Exp $
#

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>
@


1.11
log
@Update to 3.18.
Use DOCSDIR, install a few more docs files.

PR:		62806
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.10
log
@Use the new Apache bits from bsd.port.mk.

Submitted by:	dinoex
@
text
@d9 1
a9 2
PORTVERSION=	3.12
PORTREVISION=	1
d11 1
a11 1
MASTER_SITES=	http://www.snert.com/Software/mod_watch/ \
d28 1
d43 3
a45 2
	${INSTALL_DATA} ${WRKSRC}/CHANGES.TXT ${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/LICENSE.TXT ${DOCSDIR}/
@


1.9
log
@Added patches to get it compiling on -current.
Informed maitna.er
@
text
@d20 1
a20 3
BUILD_DEPENDS=	${APXS}:${PORTSDIR}/www/apache13
RUN_DEPENDS=	${APXS}:${PORTSDIR}/www/apache13

a24 1
APXS?=		${LOCALBASE}/sbin/apxs
@


1.8
log
@BROKEN on 5.x: does not compile
@
text
@d10 1
a35 6
.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 501000
BROKEN=		"Does not compile"
.endif

d58 1
a58 1
.include <bsd.port.post.mk>
@


1.7
log
@Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
@
text
@d35 6
d63 1
a63 1
.include <bsd.port.mk>
@


1.6
log
@Update to version 3.12.
@
text
@d17 1
@


1.5
log
@Update to version 3.10.
@
text
@d9 1
a9 1
PORTVERSION=	3.10
d13 1
a13 1
DISTNAME=	${PORTNAME}310
d41 1
d45 1
@


1.4
log
@Update mod_watch to version 2.4. Reclaim maintainership.

PR:		31714
@
text
@d9 1
a9 1
PORTVERSION=	2.4
d13 1
a13 1
DISTNAME=	${PORTNAME}204
d26 1
d28 1
a28 2
DOCS=	apache2mrtg.html dbm-client.html dbm-server.html index.shtml \
	mod_watch.html style.css
d30 3
a32 1
FIXCONVERT=	CHANGES.TXT convert.pl index.shtml
d35 1
a35 8
.for f in ${FIXCONVERT}
	@@${SED} -e 's:convert.pl:convertdbm.pl:g' < ${WRKSRC}/${f} \
		> ${WRKSRC}/${f}.tmp
	@@${MV} ${WRKSRC}/${f}.tmp ${WRKSRC}/${f}
.endfor

do-build:
	@@cd ${WRKSRC} && ${APXS} -c mod_watch.c
a40 3
	${INSTALL_SCRIPT} ${WRKSRC}/convert.pl ${PREFIX}/sbin/convertdbm.pl
	${INSTALL_SCRIPT} ${WRKSRC}/dbm-client.pl ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKSRC}/dbm-server.pl ${PREFIX}/sbin
d42 2
a43 5
	@@${INSTALL} -d -m 0755 ${PREFIX}/share/doc/mod_watch/html/Img
	${INSTALL_DATA} ${WRKSRC}/CHANGES.TXT ${PREFIX}/share/doc/mod_watch/
	${INSTALL_DATA} ${WRKSRC}/Img/mrpixel.gif ${PREFIX}/share/doc/mod_watch/html/Img/
	${INSTALL_DATA} ${WRKSRC}/Img/sun-logo.jpg ${PREFIX}/share/doc/mod_watch/html/Img/
	${INSTALL_DATA} ${WRKSRC}/Img/wave1.jpg ${PREFIX}/share/doc/mod_watch/html/Img/
d45 4
a48 1
	${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_watch/html/
@


1.3
log
@Set maintainer to ports@@FreeBSD.org

Submitted by:	Anders Nordby <anders@@fix.no> (previous maintainer)
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_watch/Makefile,v 1.2 2001/09/17 03:45:48 dwcjr Exp $
d9 1
a9 1
PORTVERSION=	2.3
d13 1
a13 1
DISTNAME=	${PORTNAME}203
d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
@


1.2
log
@Update to 203

PR:		30561
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/www/mod_watch/Makefile,v 1.1 2001/09/03 18:27:28 knu Exp $
d16 1
a16 1
MAINTAINER=	anders@@fix.no
@


1.1
log
@Add mod_watch, an Apache module to monitor bandwidth usage.  For use
with MRTG etc.

PR:		ports/29853
Submitted by:	Anders Nordby <anders@@fix.no>
@
text
@d5 1
a5 1
# $FreeBSD$
d9 1
a9 1
PORTVERSION=	2.1
d13 1
a13 1
DISTNAME=	${PORTNAME}201
@

