From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 23 11:50:03 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 364054D0 for ; Fri, 23 Aug 2013 11:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 155B520FC for ; Fri, 23 Aug 2013 11:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7NBo2AR043096 for ; Fri, 23 Aug 2013 11:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7NBo2O8043095; Fri, 23 Aug 2013 11:50:02 GMT (envelope-from gnats) Resent-Date: Fri, 23 Aug 2013 11:50:02 GMT Resent-Message-Id: <201308231150.r7NBo2O8043095@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Natacha Porté Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5ED9A4BC for ; Fri, 23 Aug 2013 11:47:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3943D20F2 for ; Fri, 23 Aug 2013 11:47:46 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7NBljeH037571 for ; Fri, 23 Aug 2013 11:47:45 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7NBljrR037569; Fri, 23 Aug 2013 11:47:45 GMT (envelope-from nobody) Message-Id: <201308231147.r7NBljrR037569@oldred.freebsd.org> Date: Fri, 23 Aug 2013 11:47:45 GMT From: Natacha Porté To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181485: [NEW PORT] sysutils/filewatcherd: Daemon that watches files and runs commands when they change X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 11:50:03 -0000 >Number: 181485 >Category: ports >Synopsis: [NEW PORT] sysutils/filewatcherd: Daemon that watches files and runs commands when they change >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Aug 23 11:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Natacha Porté >Release: 9.1-RELEASE >Organization: >Environment: FreeBSD bifrost 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0 r252111M: Sun Jun 23 14:31:39 CEST 2013 root@bifrost:/usr/obj/usr/src-STABLE/9.1/sys/GENERIC amd64 >Description: filewatcherd is a daemon inspired by cron, that run commands based on file changes instead of time. In principle it is similar to incron, but it's simpler, more limited, and does not depend on anything outside of FreeBSD base. WWW: https://github.com/faelys/filewatcherd Note: I tried going through redports with it, but something seems broken outside of the port https://redports.org/buildarchive/20130823112101-37091/ >How-To-Repeat: >Fix: Patch attached with submission follows: # 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: # # filewatcherd # filewatcherd/files # filewatcherd/files/watchtab.sample # filewatcherd/files/pkg-message.in # filewatcherd/files/filewatcherd.in # filewatcherd/distinfo # filewatcherd/pkg-descr # filewatcherd/Makefile # echo c - filewatcherd mkdir -p filewatcherd > /dev/null 2>&1 echo c - filewatcherd/files mkdir -p filewatcherd/files > /dev/null 2>&1 echo x - filewatcherd/files/watchtab.sample sed 's/^X//' >filewatcherd/files/watchtab.sample << '0b74342446c2519a6fa457d853b6cd86' X/root/wolverine delete 0.1 touch ${TRIGGER} 0b74342446c2519a6fa457d853b6cd86 echo x - filewatcherd/files/pkg-message.in sed 's/^X//' >filewatcherd/files/pkg-message.in << '0e20082a8f2b50b2cbb3a7b560e337a1' X======================================================================== Xfilwatcherd configuration files were installed in the following directory: X X %%ETCDIR%% X XBefore starting the server or the client you need to perform the Xfollowing steps: X X1) Copy the appropriate sample configuration file as follows: X X cp %%ETCDIR%%/watchtab.sample %%ETCDIR%%/watchtab X X2) Edit filewatcherd's configuration file to suit your needs: X X $EDITOR %%ETCDIR%%/watchtab X X3) Add the following line to your rc.conf: X X filewatcherd_enable="YES" X X XThen you can start filewatcherd by issuing the following command: X X %%PREFIX%%/etc/rc.d/filewatcherd start X======================================================================== 0e20082a8f2b50b2cbb3a7b560e337a1 echo x - filewatcherd/files/filewatcherd.in sed 's/^X//' >filewatcherd/files/filewatcherd.in << '5b6d682ebc427fdea6b678d83c9677a1' X#!/bin/sh X# $FreeBSD$ X# X# PROVIDE: filewatcherd X# REQUIRE: DAEMON X# KEYWORD: shutdown X# X# Add the following lines to /etc/rc.conf to enable filewatcherd: X# X# filewatcherd_enable (bool): Set it to "YES" to enable filewatcherd X# Default is "NO". X# filewatcherd_conf (path): Set full path to config file. X# Default is "%%PREFIX%%/etc/watchtab". X X. /etc/rc.subr X Xname=filewatcherd Xrcvar=filewatcherd_enable X Xload_rc_config $name X X: ${filewatcherd_enable:=NO} X: ${filewatcherd_conf="%%PREFIX%%/etc/watchtab"} X Xcommand=%%PREFIX%%/sbin/filewatcherd Xcommand_args="${filewatcherd_conf}" Xrequired_files=${filewatcherd_conf} X Xrun_rc_command "$1" 5b6d682ebc427fdea6b678d83c9677a1 echo x - filewatcherd/distinfo sed 's/^X//' >filewatcherd/distinfo << '457cd12ec6282f9736671b9899662ac0' XSHA256 (filewatcherd-1.0-beta1.tar.gz) = 869cfd9c0b5d1a0afd0d1d8485e0ad2e988b881820a608999d342e26c02b64c2 XSIZE (filewatcherd-1.0-beta1.tar.gz) = 12919 457cd12ec6282f9736671b9899662ac0 echo x - filewatcherd/pkg-descr sed 's/^X//' >filewatcherd/pkg-descr << '93a2bc55bd78c145c0ef692e512eb562' Xfilewatcherd is a daemon inspired by cron, that run commands based on file changes instead of time. X XIn principle it is similar to incron, but it's simpler, more limited, and does not depend on anything outside of FreeBSD base. X XWWW: https://github.com/faelys/filewatcherd 93a2bc55bd78c145c0ef692e512eb562 echo x - filewatcherd/Makefile sed 's/^X//' >filewatcherd/Makefile << '0b82f1fcd098c0db6c6f1e5934cab97a' X# Created by: Natacha Porte X# $FreeBSD$ X XPORTNAME= filewatcherd XDISTVERSION= 1.0-beta1 XCATEGORIES= sysutils X XUSE_GITHUB= yes XGH_ACCOUNT= faelys XGH_COMMIT= a2b8081 X XMAINTAINER= natbsd@instinctive.eu XCOMMENT= Daemon that watches files and runs commands when they change X XLICENSE= BSD X XUSE_RC_SUBR= filewatcherd X XSUB_FILES= pkg-message XPLIST_FILES= sbin/filewatcherd etc/watchtab.sample X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/filewatcherd ${PREFIX}/sbin X ${INSTALL_DATA} ${FILESDIR}/watchtab.sample ${PREFIX}/etc X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include 0b82f1fcd098c0db6c6f1e5934cab97a exit >Release-Note: >Audit-Trail: >Unformatted: