Update sysutils/watchmen to version 0.07_1
[dports.git] / sysutils / watchmen / Makefile
1 # New ports collection makefile for:    watchmen
2 # Date created:         2009-07-16
3 # Whom:                 Oleg Alexeenkov <proler@gmail.com>
4 #
5 # $FreeBSD: ports/sysutils/watchmen/Makefile,v 1.9 2012/12/28 19:22:03 svnexp Exp $
6 #
7
8 PORTNAME=       watchmen
9 PORTVERSION=    0.07
10 PORTREVISION=   1
11 CATEGORIES=     sysutils
12 MASTER_SITES=   GOOGLE_CODE
13
14 MAINTAINER=     proler@gmail.com
15 COMMENT=        Watch and restart daemons
16
17 LICENSE=        GPLv3
18
19 RUN_DEPENDS+=   p5-libwww>=6.04:${PORTSDIR}/www/p5-libwww
20
21 PERL_CONFIGURE= yes
22
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
27
28 USE_PERL5_RUN=  yes
29 POD2MAN?=       pod2man
30
31 MAN1=           ${PORTNAME}.1
32 PLIST_FILES=    \
33         bin/${PORTNAME}  \
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
38
39 .include <bsd.port.pre.mk>
40
41 .if ${PERL_LEVEL} < 500805
42 RUN_DEPENDS+=   p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes
43 .endif
44
45 .if ${PORT_OPTIONS:MMYSQL}
46 USE_MYSQL=      yes
47 RUN_DEPENDS+=   p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
48 .endif
49
50 .if ${PORT_OPTIONS:MPGSQL}
51 USE_PGSQL=      yes
52 RUN_DEPENDS+=   p5-DBD-Pg>=2.19.2:${PORTSDIR}/databases/p5-DBD-Pg
53 .endif
54
55 .if ${PORT_OPTIONS:MEMAIL}
56 RUN_DEPENDS+=   p5-Email-Send>=2.198:${PORTSDIR}/mail/p5-Email-Send
57 .endif
58
59 post-install:
60         ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.dist ${PREFIX}/etc
61
62 .include <bsd.port.post.mk>