From owner-svn-ports-all@freebsd.org Tue Dec 26 20:52:15 2017 Return-Path: Delivered-To: svn-ports-all@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 D7854E81A9A; Tue, 26 Dec 2017 20:52:15 +0000 (UTC) (envelope-from tobik@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 AF7EF66D8E; Tue, 26 Dec 2017 20:52:15 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBQKqEJo087941; Tue, 26 Dec 2017 20:52:14 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBQKqEpH087937; Tue, 26 Dec 2017 20:52:14 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201712262052.vBQKqEpH087937@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Tue, 26 Dec 2017 20:52:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457314 - in head/sysutils: . snooze X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/sysutils: . snooze X-SVN-Commit-Revision: 457314 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2017 20:52:15 -0000 Author: tobik Date: Tue Dec 26 20:52:14 2017 New Revision: 457314 URL: https://svnweb.freebsd.org/changeset/ports/457314 Log: New port: sysutils/snooze Snooze waits until a particular time and then runs a command. Together with a service supervision system such as runsv(8) (from sysutils/runit), this can be used to replace cron(8). Benefits over cron(8): - mnemonic syntax - no overlapping job runs possible - filtering by ISO week and day of year - no centralized daemon required (no fuzzing with multiple users/permissions) - can easily disable jobs or force their execution instantly - have custom logs - very robust with respect to external time changes - can use a file timestamp to ensure minimum waiting time between two runs, even across reboots - randomized delays - variable slack - ad-hoc usage possible, just run the program from command line WWW: https://github.com/chneukirchen/snooze Added: head/sysutils/snooze/ head/sysutils/snooze/Makefile (contents, props changed) head/sysutils/snooze/distinfo (contents, props changed) head/sysutils/snooze/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Tue Dec 26 20:09:09 2017 (r457313) +++ head/sysutils/Makefile Tue Dec 26 20:52:14 2017 (r457314) @@ -1116,6 +1116,7 @@ SUBDIR += smenu SUBDIR += smp_utils SUBDIR += snap + SUBDIR += snooze SUBDIR += snowlog SUBDIR += socket SUBDIR += socklog Added: head/sysutils/snooze/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/snooze/Makefile Tue Dec 26 20:52:14 2017 (r457314) @@ -0,0 +1,32 @@ +# $FreeBSD$ + +PORTNAME= snooze +DISTVERSIONPREFIX= v +DISTVERSION= 0.2-3 +DISTVERSIONSUFFIX= -g00c19ec +CATEGORIES= sysutils + +MAINTAINER= tobik@FreeBSD.org +COMMENT= Run a command at a particular time + +LICENSE= CC0-1.0 + +USE_GITHUB= yes +GH_ACCOUNT= chneukirchen + +MAKE_ARGS= CFLAGS="${CFLAGS}" PREFIX="${PREFIX}" MANDIR="${PREFIX}/man" + +PLIST_FILES= bin/snooze \ + man/man1/snooze.1.gz +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/snooze + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +.include Added: head/sysutils/snooze/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/snooze/distinfo Tue Dec 26 20:52:14 2017 (r457314) @@ -0,0 +1,3 @@ +TIMESTAMP = 1514319996 +SHA256 (chneukirchen-snooze-v0.2-3-g00c19ec_GH0.tar.gz) = 5da9d468f800d48468aab6f3793494197c807923f19fd5667375e9cd879b4e79 +SIZE (chneukirchen-snooze-v0.2-3-g00c19ec_GH0.tar.gz) = 7185 Added: head/sysutils/snooze/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/snooze/pkg-descr Tue Dec 26 20:52:14 2017 (r457314) @@ -0,0 +1,22 @@ +Snooze waits until a particular time and then runs a command. +Together with a service supervision system such as runsv(8) (from +sysutils/runit), this can be used to replace cron(8). + +Benefits over cron(8): + +- mnemonic syntax +- no overlapping job runs possible +- filtering by ISO week and day of year +- no centralized daemon required (no fuzzing with multiple + users/permissions) +- can easily disable jobs or force their execution + instantly +- have custom logs +- very robust with respect to external time changes +- can use a file timestamp to ensure minimum waiting time between two + runs, even across reboots +- randomized delays +- variable slack +- ad-hoc usage possible, just run the program from command line + +WWW: https://github.com/chneukirchen/snooze