From owner-svn-ports-head@freebsd.org Mon Nov 13 02:03:36 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48748CFC319; Mon, 13 Nov 2017 02:03:36 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17A257CFD1; Mon, 13 Nov 2017 02:03:36 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAD23Z5w055238; Mon, 13 Nov 2017 02:03:35 GMT (envelope-from mi@FreeBSD.org) Received: (from mi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAD23YsT055233; Mon, 13 Nov 2017 02:03:34 GMT (envelope-from mi@FreeBSD.org) Message-Id: <201711130203.vAD23YsT055233@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mi set sender to mi@FreeBSD.org using -f From: Mikhail Teterin Date: Mon, 13 Nov 2017 02:03:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r454094 - in head/sysutils: . incron X-SVN-Group: ports-head X-SVN-Commit-Author: mi X-SVN-Commit-Paths: in head/sysutils: . incron X-SVN-Commit-Revision: 454094 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2017 02:03:36 -0000 Author: mi Date: Mon Nov 13 02:03:34 2017 New Revision: 454094 URL: https://svnweb.freebsd.org/changeset/ports/454094 Log: Add port of Linux incron(d) -- the daemon can watch multiple paths and do things, when any filesystem changes are detected. Written for Linux' inotify, it was ported using the libinotify. Sponsored by: Virtual Estates, Inc. Added: head/sysutils/incron/ head/sysutils/incron/Makefile (contents, props changed) head/sysutils/incron/distinfo (contents, props changed) head/sysutils/incron/pkg-descr (contents, props changed) head/sysutils/incron/pkg-plist (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Mon Nov 13 01:45:12 2017 (r454093) +++ head/sysutils/Makefile Mon Nov 13 02:03:34 2017 (r454094) @@ -472,6 +472,7 @@ SUBDIR += i7z SUBDIR += iat SUBDIR += immortal + SUBDIR += incron SUBDIR += inotify-tools SUBDIR += installwatch SUBDIR += intel-nvmupdate Added: head/sysutils/incron/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/incron/Makefile Mon Nov 13 02:03:34 2017 (r454094) @@ -0,0 +1,34 @@ +# Created by: mi@aldan.algebra.com +# $FreeBSD$ + +PORTNAME= incron +DISTVERSION= 2017-10-30 +CATEGORIES= sysutils + +MAINTAINER= mi@aldan.algebra.com +COMMENT= Handle finesystem-events the way cron handles time ones + +LICENSE= GPLv2 LGPL21 MIT +LICENSE_COMB= dual +LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE-GPL +LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE-LGPL +LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-X11 + +LIB_DEPENDS= libinotify.so:devel/libinotify + +USE_GITHUB= indeed +GH_ACCOUNT= ar- +GH_TAGNAME= e05b7c892f569cf7dadc3c02a464ec1824d27b8e +CPPFLAGS+= -I${LOCALBASE}/include -D__NR_inotify_init +LDFLAGS+= -L${LOCALBASE}/lib -linotify +MAKE_ARGS= PREFIX="${PREFIX}" USER=${UID} \ + DOCDIR="${PREFIX}/etc" \ + MANPATH=${MANPREFIX}/man + +post-patch: + ${REINPLACE_CMD} -e 's,/etc/incron,${PREFIX}/etc/incron,' \ + ${WRKSRC}/*conf* ${WRKSRC}/Makefile ${WRKSRC}/*.[158h] \ + ${WRKSRC}/*.cpp + ${REINPLACE_CMD} -e '/INITDIR/d' ${WRKSRC}/Makefile + +.include Added: head/sysutils/incron/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/incron/distinfo Mon Nov 13 02:03:34 2017 (r454094) @@ -0,0 +1,3 @@ +TIMESTAMP = 1510537921 +SHA256 (ar--incron-2017-10-30-e05b7c892f569cf7dadc3c02a464ec1824d27b8e_GH0.tar.gz) = 12e739de81f7a76189f1da36831de4f1f4ebdbfd38a3801ab4904cc6c89c4fde +SIZE (ar--incron-2017-10-30-e05b7c892f569cf7dadc3c02a464ec1824d27b8e_GH0.tar.gz) = 339550 Added: head/sysutils/incron/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/incron/pkg-descr Mon Nov 13 02:03:34 2017 (r454094) @@ -0,0 +1,9 @@ +This program is an "inotify cron" system. It consists of a daemon +and a table manipulator. You can use it a similar way as the regular +cron. The difference is that the inotify cron handles filesystem +events rather than time periods. + +Written to use (and named after) Linux' "inotify", on BSD it uses +the libinotify compatibility layer. + +WWW: http://inotify.aiken.cz/?section=incron&page=about Added: head/sysutils/incron/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/incron/pkg-plist Mon Nov 13 02:03:34 2017 (r454094) @@ -0,0 +1,9 @@ +bin/incrontab +@sample etc/incron.conf.example +sbin/incrond +man/man1/incrontab.1.gz +man/man5/incron.conf.5.gz +man/man5/incrontab.5.gz +man/man8/incrond.8.gz +@dir etc/incron.d +@dir /var/spool/incron