Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Nov 2017 02:03:34 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r454094 - in head/sysutils: . incron
Message-ID:  <201711130203.vAD23YsT055233@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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



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