1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/sysutils/watchfolder/Makefile
Emanuel Haupt 44a052accb Provide an rc_subr script
PR:		133267
Submitted by:	Alexander Logvinov <ports@logvinov.com>
2009-04-01 17:47:22 +00:00

40 lines
1010 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
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://dstunrea.sdf-eu.org/files/ \
CRITICAL
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Watch folders for new files and process them
MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/watchd-${PORTVERSION}
USE_RC_SUBR= watchd
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>