1 # New ports collection makefile for: watchmen
2 # Date created: 2009-07-16
3 # Whom: Oleg Alexeenkov <proler@gmail.com>
5 # $FreeBSD: ports/sysutils/watchmen/Makefile,v 1.9 2012/12/28 19:22:03 svnexp Exp $
12 MASTER_SITES= GOOGLE_CODE
14 MAINTAINER= proler@gmail.com
15 COMMENT= Watch and restart daemons
19 RUN_DEPENDS+= p5-libwww>=6.04:${PORTSDIR}/www/p5-libwww
23 OPTIONS_DEFINE= MYSQL PGSQL EMAIL
24 MYSQL_DESC= Want test mysql queries
25 PGSQL_DESC= Want test postgresql queries
26 EMAIL_DESC= report problems by email
34 etc/${PORTNAME}.conf.dist \
35 %%SITE_PERL%%/%%PERL_ARCH%%/auto/App/watchmen/.packlist
36 PLIST_DIRS= %%SITE_PERL%%/%%PERL_ARCH%%/auto/App/watchmen \
37 %%SITE_PERL%%/%%PERL_ARCH%%/auto/App
39 .include <bsd.port.pre.mk>
41 .if ${PERL_LEVEL} < 500805
42 RUN_DEPENDS+= p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes
45 .if ${PORT_OPTIONS:MMYSQL}
47 RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
50 .if ${PORT_OPTIONS:MPGSQL}
52 RUN_DEPENDS+= p5-DBD-Pg>=2.19.2:${PORTSDIR}/databases/p5-DBD-Pg
55 .if ${PORT_OPTIONS:MEMAIL}
56 RUN_DEPENDS+= p5-Email-Send>=2.198:${PORTSDIR}/mail/p5-Email-Send
60 ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.dist ${PREFIX}/etc
62 .include <bsd.port.post.mk>