freebsd-ports/sysutils/watchfolder/Makefile
Jean-Yves Lefort c72c7f15c3 Add watchfolder.
Watchfolder watches specified folders for incoming files and processes them
with programs assigned to those folders. Afterwards, the files are removed
from the inbound directory.

WWW: http://freshmeat.net/projects/watchd/

PR:		ports/83867
Submitted by:	Emanuel Haupt <ehaupt@critical.ch>
2005-07-25 05:10:57 +00:00

35 lines
959 B
Makefile

# New ports collection makefile for: watchfolder
# Date created: 21 Jul 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= watchfolder
PORTVERSION= 0.3.3
CATEGORIES= sysutils
MASTER_SITES= http://dstunrea.sdf-eu.org/files/
MAINTAINER= ehaupt@critical.ch
COMMENT= Watch folders for new files and process them
WRKSRC= ${WRKDIR}/watchd-${PORTVERSION}
USE_REINPLACE= yes
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 ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/watchd.conf ${PREFIX}/etc/watchd.conf.sample
[ -f ${PREFIX}/etc/watchd.conf ] || \
${INSTALL_DATA} ${WRKSRC}/watchd.conf ${PREFIX}/etc
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/doc/watchfolder.pdf ${DOCSDIR}
.endif
.include <bsd.port.mk>