aboutsummaryrefslogtreecommitdiff
path: root/sysutils/watchmen/Makefile
blob: 3fe3cb9dc241624fe7069c7bea83dba9e1294b1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PORTNAME=	watchmen
PORTVERSION=	0.09
CATEGORIES=	sysutils

MAINTAINER=	proler@gmail.com
COMMENT=	Watch and restart daemons

LICENSE=	GPLv3+

RUN_DEPENDS=	p5-libwww>=6.04:www/p5-libwww \
		p5-URI>=0:net/p5-URI

USE_GITHUB=	yes
GH_ACCOUNT=	proller

USES=		perl5 shebangfix
USE_PERL5=	configure
SHEBANG_FILES=	watchmen
NO_ARCH=	yes

PLIST_FILES=	bin/${PORTNAME} \
		"@sample etc/${PORTNAME}.conf.sample" \
		${SITE_MAN1}/${PORTNAME}.1.gz

OPTIONS_DEFINE=	MYSQL PGSQL EMAIL
MYSQL_DESC=	Enable test mysql queries
PGSQL_DESC=	Enable test postgresql queries
EMAIL_DESC=	Report problems by email

MYSQL_RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql
PGSQL_RUN_DEPENDS=	p5-DBD-Pg>=2.19.2:databases/p5-DBD-Pg
EMAIL_RUN_DEPENDS=	p5-MIME-Lite>=0:mail/p5-MIME-Lite

post-install:
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.dist ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample

.include <bsd.port.mk>