freebsd-ports/sysutils/snooze/Makefile
Tobias Kortkamp ca303b7572 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
2017-12-26 20:52:14 +00:00

32 lines
621 B
Makefile

# $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 <bsd.port.mk>