freebsd-ports/sysutils/watchfolder/Makefile
2015-01-06 09:40:16 +00:00

35 lines
939 B
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= watchfolder
PORTVERSION= 0.3.3
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= LOCAL/ehaupt
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Watch folders for new files and process them
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/watchd-${PORTVERSION}
USE_RC_SUBR= watchd
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|gcc $$(OPT)|${CC} ${CFLAGS}|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \
${WRKSRC}/README ${WRKSRC}/watchd.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/watchd ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/watchd.conf ${STAGEDIR}${PREFIX}/etc/watchd.conf.sample
[ -f ${PREFIX}/etc/watchd.conf ] || \
${INSTALL_DATA} ${WRKSRC}/watchd.conf ${STAGEDIR}${PREFIX}/etc
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/doc/watchfolder.pdf \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>