svn commit: r457314 - in head/sysutils: . snooze
Tobias Kortkamp
tobik at FreeBSD.org
Tue Dec 26 20:52:15 UTC 2017
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 at 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 <bsd.port.mk>
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
More information about the svn-ports-head
mailing list