head	1.11;
access;
symbols
	RELEASE_8_3_0:1.8
	RELEASE_9_0_0:1.8
	RELEASE_7_4_0:1.7
	RELEASE_8_2_0:1.7
	RELEASE_6_EOL:1.7
	RELEASE_8_1_0:1.7
	RELEASE_7_3_0:1.7
	RELEASE_8_0_0:1.7
	RELEASE_7_2_0:1.7
	RELEASE_7_1_0:1.7
	RELEASE_6_4_0:1.7
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.5
	RELEASE_6_3_0:1.5
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.1;
locks; strict;
comment	@# @;


1.11
date	2012.11.17.06.01.00;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2012.06.28.18.37.19;	author az;	state Exp;
branches;
next	1.9;

1.9
date	2012.05.07.18.52.08;	author sylvio;	state Exp;
branches;
next	1.8;

1.8
date	2011.08.02.16.22.11;	author bapt;	state Exp;
branches;
next	1.7;

1.7
date	2008.06.24.12.34.55;	author rafan;	state Exp;
branches;
next	1.6;

1.6
date	2008.06.15.21.45.51;	author erwin;	state Exp;
branches;
next	1.5;

1.5
date	2007.09.08.01.03.50;	author linimon;	state Exp;
branches;
next	1.4;

1.4
date	2007.07.05.06.19.48;	author edwin;	state Exp;
branches;
next	1.3;

1.3
date	2006.07.10.14.58.27;	author rafan;	state Exp;
branches;
next	1.2;

1.2
date	2005.04.20.15.12.23;	author leeym;	state Exp;
branches;
next	1.1;

1.1
date	2005.02.18.10.02.09;	author pav;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Switch exporter over
@
text
@# New ports collection makefile for:	amavis-stats
# Date created:				12 July 2004
# Whom:					Mantas Kaulakys <stone@@tainet.lt>
#
# $FreeBSD: head/security/amavis-stats/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	amavis-stats
PORTVERSION=	0.1.12
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	http://downloads.topicdesk.com/amavis_stats/

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	A simple AMaViS statistics generator based on rrdtool

RUN_DEPENDS=	rrdtool>=0:${PORTSDIR}/databases/rrdtool

USE_PERL5_RUN=	yes
USE_PHP=	pcre

MAN1=		amavis-stats.1

NO_BUILD=	yes

PORTDOCS=	README

WEBOWN?=	www
WEBGRP?=	www

AMAVISUSER?=	amavis
AMAVISGROUP?=	amavis

PKGINSTALL=	${WRKDIR}/INSTALL
PKGDEINSTALL=	${WRKDIR}/DEINSTALL
PKGMESSAGE=	${WRKDIR}/pkg-message

SUB_FILES=	INSTALL DEINSTALL pkg-message
SUB_LIST+=	AMAVISUSER=${AMAVISUSER} AMAVISGROUP=${AMAVISGROUP}

pre-install: apply-slist
	@@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/amavis-stats ${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/amavis-stats.1 ${MAN1PREFIX}/man/man1
	${MKDIR} ${PREFIX}/www/amavis-stats
	${MKDIR} ${PREFIX}/www/amavis-stats/img
	${TOUCH} ${PREFIX}/www/amavis-stats/img/.keep
	${INSTALL_DATA} ${WRKSRC}/amavis-stats.php ${PREFIX}/www/amavis-stats
	cd ${PREFIX}/www/amavis-stats && ${LN} -s amavis-stats.php index.php
	${CHOWN} -R ${AMAVISUSER}:${AMAVISGROUP} ${PREFIX}/www/amavis-stats
	${CHOWN} ${WEBOWN}:${WEBGRP} ${PREFIX}/www/amavis-stats/img

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.10
log
@- Remove SITE_PERL from *_DEPENDS
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.9
log
@- Chase rrdtool shlib version bump.
@
text
@d17 1
a17 1
RUN_DEPENDS=	${SITE_PERL}/mach/RRDs.pm:${PORTSDIR}/databases/rrdtool
@


1.8
log
@Fix master_site
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.7
log
@- Chase rrdtool 1.3.0 update, bump PORTREVISION

PR:		ports/124749
Submitted by:	Zhen REN <bg1tpt at gmail.com> (maintainer of rrdtool)
@
text
@d12 1
a12 1
MASTER_SITES=	http://rekudos.net/download/
@


1.6
log
@Drop maintainership

Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.5
log
@Welcome bsd.perl.mk.  Add support for constructs such as USE_PERL5=5.8.0+.
Drop support for antique perl.

Work done by:	gabor
Sponsored by:	Google Summer of Code 2007
Hat:		portmgr
@
text
@d14 1
a14 1
MAINTAINER=	stone@@tainet.lt
@


1.4
log
@First steps in a big migration:

    Move net/rrdtool to databases/rrdtool.

    It's an itch which needs to be scratched: net/rrdtool came from
    net/mrtg, which was a good location for it. net/mrtg has later
    been moved to net-mgmt/mrtg. net/rrdtool is "Round Robin Database
    Tools", therefor it's better if it moves to databases/rrdtool.
    Same with net/rrdtool10.

PR:		ports/112942
Submitted by:	Edwin Groothuis <edwin@@mavetju.org>
@
text
@a40 6
.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500601
IGNORE=		Need at least perl 5.6.1 to build
.endif

d63 1
a63 1
.include <bsd.port.post.mk>
@


1.3
log
@- Fix syntax error

PR:		99886 [1], 97297
Submitted by:	Oleg Gawriloff <barzog at telecom.by> [1]
Approved by:	maintainer
@
text
@d17 1
a17 1
RUN_DEPENDS=	${SITE_PERL}/mach/RRDs.pm:${PORTSDIR}/net/rrdtool
@


1.2
log
@Add dependency to php pcre extension.
Fix typo in comments.

Noticed by:     Thomas Novin thnov@@xyz.pp.se

PR:		80134
Submitted by:	Mantas Kaulakys <stone@@tainet.lt> (maintainer)
@
text
@d10 1
@


1.1
log
@amavis-stats is a simple AMaViS statistics generator based on rrdtool.  It
produces graphs of clean emails, spam emails and infected emails broken down by
virus, from amavis log entries. RRD files are created and updated by a perl
script run from cron. Graphs are generated by a php script and viewed with a
web browser.

PR:		ports/68934
Submitted by:	Mantas Kaulakys <stone@@tainet.lt>
@
text
@d19 1
a19 1
USE_PHP=	yes
d43 1
a43 1
IGNORE=		"Need at least perl 5.6.1 to build"
@

