# Created by: Natacha Porte <natbsd@instinctive.eu>
# $FreeBSD: sysutils/filewatcherd/Makefile 329195 2013-10-03 14:11:08Z bapt $

PORTNAME=	filewatcherd
PORTVERSION=	1.0b2
DISTNAME=	${PORTNAME}-${GH_TAGNAME}
CATEGORIES=	sysutils

MAINTAINER=	natbsd@instinctive.eu
COMMENT=	Daemon that watches files and runs commands when they change

LICENSE=	BSD

USE_GITHUB=	yes
GH_ACCOUNT=	faelys
GH_COMMIT=	e1e6c7a
GH_TAGNAME=	1.0-beta2

USE_RC_SUBR=	filewatcherd

SUB_FILES=	pkg-message
PLIST_FILES=	sbin/filewatcherd etc/watchtab.sample

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/filewatcherd ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_DATA} ${FILESDIR}/watchtab.sample ${STAGEDIR}${PREFIX}/etc

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

.include <bsd.port.mk>
