xref: /openbsd-src/usr.sbin/cron/config.h (revision b2ea75c1b17e1a9a339660e7ed45cd24946b230e)
1 /*	$OpenBSD: config.h,v 1.10 2001/05/29 21:41:33 millert Exp $	*/
2 
3 /* Copyright 1988,1990,1993,1994 by Paul Vixie
4  * All rights reserved
5  */
6 /*
7  * Copyright (c) 1997,2000 by Internet Software Consortium, Inc.
8  *
9  * Permission to use, copy, modify, and distribute this software for any
10  * purpose with or without fee is hereby granted, provided that the above
11  * copyright notice and this permission notice appear in all copies.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
14  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
15  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
16  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
17  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20  * SOFTWARE.
21  */
22 
23 /* config.h - configurables for Vixie Cron
24  */
25 
26 /*
27  * these are site-dependent
28  */
29 
30 #ifndef DEBUGGING
31 #define DEBUGGING 1	/* 1 or 0 -- do you want debugging code built in? */
32 #endif
33 
34 			/*
35 			 * choose one of these mailer commands.  some use
36 			 * /bin/mail for speed; it makes biff bark but doesn't
37 			 * do aliasing.  sendmail does do aliasing but is
38 			 * a hog for short messages.  aliasing is not needed
39 			 * if you make use of the MAILTO= feature in crontabs.
40 			 * (hint: MAILTO= was added for this reason).
41 			 */
42 
43 #define MAILFMT "%s -FCronDaemon -odi -oem -t"		/*-*/
44 			/* -Fx	 = set full-name of sender
45 			 * -odi	 = Option Deliverymode Interactive
46 			 * -oem	 = Option Errors Mailedtosender
47 			 * -t    = Get recipient from headers
48 			 */
49 #define MAILARG _PATH_SENDMAIL				/*-*/
50 
51 /* #define MAILFMT "%s -d %s"				-*/
52 			/* -d = undocumented but common flag: deliver locally?
53 			 */
54 /* #define MAILARG "/bin/mail",mailto			-*/
55 
56 /* #define MAILFMT "%s -mlrxto %s"			-*/
57 /* #define MAILARG "/usr/mmdf/bin/submit",mailto	-*/
58 
59 /* #define MAIL_DATE				-*/
60 			/* should we include an ersatz Date: header in
61 			 * generated mail?  if you are using sendmail
62 			 * as the mailer, it is better to let sendmail
63 			 * generate the Date: header.
64 			 */
65 
66 			/* if ALLOW_FILE and DENY_FILE are not defined or are
67 			 * defined but neither exists, should crontab(1) be
68 			 * usable only by root?
69 			 */
70 /*#define ALLOW_ONLY_ROOT			-*/
71 
72 			/* if you want to use syslog(3) instead of appending
73 			 * to CRONDIR/LOG_FILE (/var/cron/log, e.g.), define
74 			 * SYSLOG here.  Note that quite a bit of logging
75 			 * info is written, and that you probably don't want
76 			 * to use this on 4.2bsd since everything goes in
77 			 * /usr/spool/mqueue/syslog.  On 4.[34]bsd you can
78 			 * tell /etc/syslog.conf to send cron's logging to
79 			 * a separate file.
80 			 *
81 			 * Note that if this and LOG_FILE in "pathnames.h"
82 			 * are both defined, then logging will go to both
83 			 * places.
84 			 */
85 #define SYSLOG	 			/*-*/
86 
87 #define CAPITALIZE_FOR_PS	 	/*-*/
88 
89 #define HAVE_TM_GMTOFF		 	/*-*/
90 
91 			/* if your OS supports a BSD-style login.conf file */
92 #define LOGIN_CAP			/*-*/
93 
94 			/* if your OS supports BSD authentication */
95 #define BSD_AUTH			/*-*/
96