ports/83867: new port: sysutils/watchfolder - Watch folders for new files and processes them
Emanuel Haupt
ehaupt at critical.ch
Thu Jul 21 14:30:21 UTC 2005
>Number: 83867
>Category: ports
>Synopsis: new port: sysutils/watchfolder - Watch folders for new files and processes them
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 21 14:30:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Emanuel Haupt
>Release: FreeBSD 4.11-RELEASE-p11 i386
>Organization:
>Environment:
System: FreeBSD admin.critical.ch 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #0: Thu Jun 30 09:36:40 CEST 2005 root at admin.critical.ch:/usr/obj/usr/src-release/src/sys/GENERIC i386
>Description:
new port: sysutils/watchfolder - Watch folders for new files and processes them
Watchfolder watches specifed folders for incoming files and processes them with
programs assigned to those folders. Afterwards, the files are removed from the
inbound directory.
>How-To-Repeat:
>Fix:
--- watchfolder.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# watchfolder
# watchfolder/Makefile
# watchfolder/pkg-descr
# watchfolder/distinfo
# watchfolder/pkg-plist
#
echo c - watchfolder
mkdir -p watchfolder > /dev/null 2>&1
echo x - watchfolder/Makefile
sed 's/^X//' >watchfolder/Makefile << 'END-of-watchfolder/Makefile'
X# New ports collection makefile for: watchfolder
X# Date created: 21 Jul 2005
X# Whom: Emanuel Haupt <ehaupt at critical.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME= watchfolder
XPORTVERSION= 0.3.3
XCATEGORIES= sysutils
XMASTER_SITES= http://dstunrea.sdf-eu.org/files/
X
XMAINTAINER= ehaupt at critical.ch
XCOMMENT= Watch folders for new files and processes them
X
XUSE_REINPLACE= yes
X
XWRKSRC= ${WRKDIR}/watchd-${PORTVERSION}
X
XCONFIG_FILE= watchd.conf
XPLIST_SUB+= CONFIG_FILE=${CONFIG_FILE}
XSRC= chain inifile filedb
XPROGRAM= watchd
XDEFINES= -DAIX
X
Xpost-patch:
X @${REINPLACE_CMD} -e 's|\(/etc/${CONFIG_FILE}\)|${PREFIX}\1|' \
X ${WRKSRC}/watchd.c
X
Xdo-build:
X.for f in ${SRC}
X ${CC} ${CFLAGS} ${DEFINES} -c -o ${WRKSRC}/${f}.o ${WRKSRC}/${f}.c
X.endfor
X ${CC} ${CFLAGS} ${DEFINES} -o ${WRKSRC}/${PROGRAM} \
X ${WRKSRC}/${PROGRAM}.c ${SRC:C/(.*)/${WRKSRC}\/\1.o/}
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/${PROGRAM} ${PREFIX}/bin
X ${INSTALL_DATA} ${WRKSRC}/${CONFIG_FILE} ${PREFIX}/etc/${CONFIG_FILE}.sample
X.if !exists(${PREFIX}/etc/${CONFIG_FILE})
X ${INSTALL_DATA} ${WRKSRC}/${CONFIG_FILE} ${PREFIX}/etc
X.endif
X.if !defined(NOPORTDOCS)
X ${MKDIR} ${DOCSDIR}
X.for f in ${PORTNAME}.tex ${PORTNAME}.aux ${PORTNAME}.pdf
X ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-watchfolder/Makefile
echo x - watchfolder/pkg-descr
sed 's/^X//' >watchfolder/pkg-descr << 'END-of-watchfolder/pkg-descr'
XWatchfolder watches specifed folders for incoming files and processes them with
Xprograms assigned to those folders. Afterwards, the files are removed from the
Xinbound directory.
X
XWWW: http://freshmeat.net/projects/watchd/
X
X- ehaupt
Xehaupt at critical.ch
END-of-watchfolder/pkg-descr
echo x - watchfolder/distinfo
sed 's/^X//' >watchfolder/distinfo << 'END-of-watchfolder/distinfo'
XMD5 (watchfolder-0.3.3.tar.gz) = a1fd69af50b955c2da13381f16d27dfa
XSIZE (watchfolder-0.3.3.tar.gz) = 86741
END-of-watchfolder/distinfo
echo x - watchfolder/pkg-plist
sed 's/^X//' >watchfolder/pkg-plist << 'END-of-watchfolder/pkg-plist'
Xbin/watchd
X at unexec if cmp -s %D/etc/%%CONFIG_FILE%% %D/etc/%%CONFIG_FILE%%.sample; then rm -f %D/etc/%%CONFIG_FILE%%; fi
Xetc/%%CONFIG_FILE%%.sample
X at exec [ -f %B/%%CONFIG_FILE%% ] || cp %B/%f %B/%%CONFIG_FILE%%
X%%PORTDOCS%%%%DOCSDIR%%/watchfolder.tex
X%%PORTDOCS%%%%DOCSDIR%%/watchfolder.aux
X%%PORTDOCS%%%%DOCSDIR%%/watchfolder.pdf
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-watchfolder/pkg-plist
exit
--- watchfolder.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list