PKG_COMP4CRON(1)

NAME
pkg_comp4cron - performs fully automatic builds of pkgsrc packages from cron

SYNOPSIS
pkg_comp4cron [-l logdir] [-r recipient] -- pkg_comp_arguments

DESCRIPTION
pkg_comp4cron is a wrapper over pkg_comp(8) that allows plugging pkgsrc builds into cron(8) with minimal effort.

pkg_comp4cron executes pkg_comp(8) with the given arguments after the ‘--’ marker, stores the output of the build in a log file and, if the exit code of the tool indicated an error, proceeds to send an error report to a given recipient.

Unless pkg_comp4cron detects an error in the usage of this wrapper script, the tool does not print any output to the console and does not return any error codes. All errors are reported by means of email.

The following options are supported:

-l logdir
    Path to the directory that will keep the logs of all the calls to pkg_comp(1).

    Default: ~/pkg_comp/log.

-r recipient
    Email address of the recipient of the failure messages.

    Default: the current username, without a domain part.

SEE ALSO
crontab(1), pkg_comp(1), crontab(5)

AUTHORS
The pkg_comp4cron utility was developed by Julio Merino <jmmv@google.com>.