Skip site navigation (1)Skip section navigation (2)
Date:      21 Jul 2005 14:26:21 -0000
From:      Emanuel Haupt <ehaupt@critical.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/83867: new port: sysutils/watchfolder - Watch folders for new files and processes them
Message-ID:  <20050721142621.48191.qmail@mx.critical.ch>
Resent-Message-ID: <200507211430.j6LEUEY4031742@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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@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@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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050721142621.48191.qmail>