Home | History | Annotate | Line # | Download | only in dist
      1 /*	$NetBSD: config.h,v 1.5 2017/06/09 17:36:30 christos Exp $	*/
      2 
      3 /* Copyright 1988,1990,1993,1994 by Paul Vixie
      4  * All rights reserved
      5  */
      6 
      7 /*
      8  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
      9  * Copyright (c) 1997,2000 by Internet Software Consortium, Inc.
     10  *
     11  * Permission to use, copy, modify, and distribute this software for any
     12  * purpose with or without fee is hereby granted, provided that the above
     13  * copyright notice and this permission notice appear in all copies.
     14  *
     15  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
     16  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     17  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
     18  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     19  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     20  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
     21  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     22  */
     23 
     24 /* config.h - configurables for ISC Cron
     25  *
     26  * Id: config.h,v 1.10 2004/01/23 18:56:42 vixie Exp
     27  */
     28 
     29 /*
     30  * these are site-dependent
     31  */
     32 
     33 #ifndef DEBUGGING
     34 #define DEBUGGING 1	/* 1 or 0 -- do you want debugging code built in? */
     35 #endif
     36 
     37 			/*
     38 			 * choose one of these mailer commands.  some use
     39 			 * /bin/mail for speed; it makes biff bark but doesn't
     40 			 * do aliasing.  sendmail does do aliasing but is
     41 			 * a hog for short messages.  aliasing is not needed
     42 			 * if you make use of the MAILTO= feature in crontabs.
     43 			 * (hint: MAILTO= was added for this reason).
     44 			 */
     45 
     46 #define MAILFMT "%s -FCronDaemon -odi -oem -oi -t" /*-*/
     47 			/* -Fx	 = Set full-name of sender
     48 			 * -odi	 = Option Deliverymode Interactive
     49 			 * -oem	 = Option Errors Mailedtosender
     50 			 * -oi   = Ignore "." alone on a line
     51 			 * -t    = read recipient from header of message
     52 			 */
     53 #define MAILARG _PATH_SENDMAIL				/*-*/
     54 
     55 /* #define MAILFMT "%s -d %s"				*/
     56 			/* -d = undocumented but common flag: deliver locally?
     57 			 */
     58 /* #define MAILARG "/bin/mail",mailto			*/
     59 
     60 /* #define MAILFMT "%s -mlrxto %s"			*/
     61 /* #define MAILARG "/usr/mmdf/bin/submit",mailto	*/
     62 
     63 /* #define MAIL_DATE				*/
     64 			/* should we include an ersatz Date: header in
     65 			 * generated mail?  if you are using sendmail
     66 			 * as the mailer, it is better to let sendmail
     67 			 * generate the Date: header.
     68 			 */
     69 
     70 			/* if you want to use syslog(3) instead of appending
     71 			 * to CRONDIR/LOG_FILE (/var/cron/log, e.g.), define
     72 			 * SYSLOG here.  Note that quite a bit of logging
     73 			 * info is written, and that you probably don't want
     74 			 * to use this on 4.2bsd since everything goes in
     75 			 * /usr/spool/mqueue/syslog.  On 4.[34]bsd you can
     76 			 * tell /etc/syslog.conf to send cron's logging to
     77 			 * a separate file.
     78 			 *
     79 			 * Note that if this and LOG_FILE in "pathnames.h"
     80 			 * are both defined, then logging will go to both
     81 			 * places.
     82 			 */
     83 #define SYSLOG	 			/*-*/
     84 
     85 			/* if you want cron to capitalize its name in ps
     86 			 * when running a job.  Does not work on SYSV.
     87 			 */
     88 /* #define CAPITALIZE_FOR_PS		*/
     89 
     90 			/* if you have a tm_gmtoff member in struct tm.
     91 			 * If not, we will have to compute the value ourselves.
     92 			 */
     93 #define HAVE_TM_GMTOFF		/*-*/
     94 #define HAVE_FCHOWN		/*-*/
     95 #define HAVE_UTIMES		/*-*/
     96 #define HAVE_UTIMENSAT
     97 #define HAVE_FUTIMENS
     98 #define _INCOMPLETE_XOPEN_C063
     99 
    100 			/* if your OS supports a BSD-style login.conf file */
    101 /* #define LOGIN_CAP			*/
    102 
    103 			/* if your OS supports BSD authentication */
    104 /*#define BSD_AUTH			*/
    105 
    106 			/* Define this to run crontab setgid instead of
    107 			 * setuid root.  Group access will be used to read
    108 			 * the tabs/atjobs dirs and the allow/deny files.
    109 			 * If this is not defined then crontab and at
    110 			 * must be setuid root.
    111 			 */
    112 			/* if your os supports PAM authentication */
    113 /*#define USE_PAM			*/
    114 
    115 /*#define CRON_GROUP	"crontab"	*/
    116 
    117 #define ENABLE_FIX_DIRECTORIES
    118 
    119 #define MAXTABSIZE_DEFAULT	(1024*256)
    120