2009-07-17 18:57:31 +00:00
|
|
|
# New ports collection makefile for: watchmen
|
|
|
|
# Date created: 2009-07-16
|
|
|
|
# Whom: Oleg Alexeenkov <proler@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= watchmen
|
2010-09-19 12:45:31 +00:00
|
|
|
PORTVERSION= 0.05
|
2010-10-01 09:07:51 +00:00
|
|
|
PORTREVISION= 1
|
2009-07-17 18:57:31 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
|
|
|
|
MAINTAINER= proler@gmail.com
|
|
|
|
COMMENT= Watch and restart daemons
|
|
|
|
|
2010-09-19 12:45:31 +00:00
|
|
|
OPTIONS= MYSQL "Want test mysql queries" off \
|
|
|
|
PGSQL "Want test postgresql queries" off \
|
|
|
|
EMAIL "report problems by email" off
|
|
|
|
|
2009-07-17 18:57:31 +00:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww
|
|
|
|
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
|
|
|
|
USE_PERL5_RUN= yes
|
|
|
|
POD2MAN?= pod2man
|
|
|
|
|
|
|
|
MAN1= ${PORTNAME}.1
|
2009-10-10 09:39:03 +00:00
|
|
|
PLIST_FILES= \
|
2009-07-17 18:57:31 +00:00
|
|
|
bin/${PORTNAME} \
|
|
|
|
etc/${PORTNAME}.conf.dist \
|
|
|
|
%%SITE_PERL%%/%%PERL_ARCH%%/auto/watchmen/.packlist
|
2010-09-19 12:45:31 +00:00
|
|
|
PLIST_DIRS= %%SITE_PERL%%/%%PERL_ARCH%%/auto/watchmen
|
2009-07-17 18:57:31 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500805
|
|
|
|
RUN_DEPENDS+= p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes
|
|
|
|
.endif
|
|
|
|
|
2010-09-19 12:45:31 +00:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql${MYSQL_VER}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PGSQL= yes
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_EMAIL)
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Email/Send.pm:${PORTSDIR}/mail/p5-Email-Send
|
|
|
|
.endif
|
|
|
|
|
2009-07-17 18:57:31 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.dist ${PREFIX}/etc
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|