Annotation of src/usr.bin/rdist/config.h, Revision 1.4
1.4 ! deraadt 1: /* * $OpenBSD: config.h,v 1.3 1996/03/05 05:03:47 dm Exp $*/
1.1 dm 2: /*
3: * Copyright (c) 1993 Michael A. Cooper
4: * Copyright (c) 1993 Regents of the University of California.
5: * All rights reserved.
6: *
7: * Redistribution and use in source and binary forms, with or without
8: * modification, are permitted provided that the following conditions
9: * are met:
10: * 1. Redistributions of source code must retain the above copyright
11: * notice, this list of conditions and the following disclaimer.
12: * 2. Redistributions in binary form must reproduce the above copyright
13: * notice, this list of conditions and the following disclaimer in the
14: * documentation and/or other materials provided with the distribution.
15: * 3. All advertising materials mentioning features or use of this software
16: * must display the following acknowledgement:
17: * This product includes software developed by the University of
18: * California, Berkeley and its contributors.
19: * 4. Neither the name of the University nor the names of its contributors
20: * may be used to endorse or promote products derived from this software
21: * without specific prior written permission.
22: *
23: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33: * SUCH DAMAGE.
34: */
35:
36: /*
37: * @(#)config.h
38: */
39:
40: #ifndef __config_h__
41: #define __config_h__
42:
43: /*
44: * Configuration parameters
45: */
46:
47: #include OS_H
48:
49: /*
50: * Include system pathname header file. Usually this is <paths.h>.
51: * If your system doesn't have such a file, use "paths.h"
52: */
53: #if defined(PATHS_H)
54: # include PATHS_H
55: #else
56: # include "paths.h"
57: #endif
58:
59: /*
60: * Define _PATH_OLDRDIST to be the name of the original rdist that
61: * was distributed with 4.3BSD.
62: *
63: * If you want to be backwards compability with the old rdist, uncomment
64: # the "#define" line. If you don't want to be backwards compability or
65: * don't have the old rdist, then uncomment the "#undef" line.
66: */
67: #ifndef _PATH_OLDRDIST
1.3 dm 68: #define _PATH_OLDRDIST "/usr/bin/oldrdist" /* Enable compat */
1.1 dm 69: #endif
70: /*#undef _PATH_OLDRDIST*/ /* Disable compat */
71:
72: /*
73: * Check to see if file is on a NFS. If it is, the file is
74: * skipped unless the hostname specified in the Distfile has
75: * a trailing "+". e.g. "foobar+". This feature is enabled by
76: * the -N option. If your system does not support NFS or you don't
77: * want the -N option, undefine this.
78: */
79: #define NFS_CHECK
80:
81: /*
82: * Check to see if file on a Read-Only filesystem. If it is, no
83: * attempt is made to update the file. This feature is enabled by
84: * the -O option.
85: */
86: #define RO_CHECK
87:
88: /*
89: * Default value for the maximum number of clients to update at once.
90: * Can be changed with the -M option.
91: */
92: #define MAXCHILDREN 4
93:
94: /*
95: * Response Time Out interval (in seconds).
96: * Should be long enough to allow transfer of large files.
97: * The -t option can be used to override this value.
98: */
99: #define RTIMEOUT 900
100:
101: /*
102: * Define LOG_OPTS to be the syslog/openlog() logging options you
103: * wish to use. Define to be 0 if you don't want any options.
104: * Define LOG_FACILITY to be the syslog/openlog() facility to log
105: * to. Both LOG_OPTS and LOG_FACILITY values are defined in <syslog.h>
106: * If you don't have syslog, then undefine both values.
107: */
108: #define LOG_OPTS LOG_PID
109: #if defined(LOG_DAEMON)
110: # define LOG_FACILITY LOG_DAEMON
111: #endif
112:
113: /*
114: * Syslog levels. Define these to match the levels you want to log
115: * via syslog(). These are defined in <syslog.h>. If you don't want
116: * a particuliar level logged _ever_, undefine it. What is logged is
117: * usually controlled via command line options, so you normally should
118: * not need to undefine these.
119: */
120: #define SL_FERROR LOG_INFO /* Fatal errors */
121: #define SL_NERROR LOG_INFO /* Normal errors */
122: #define SL_WARNING LOG_INFO /* Warnings */
123: #define SL_CHANGE LOG_INFO /* Things that change */
124: #define SL_INFO LOG_INFO /* General info */
125: #define SL_NOTICE LOG_NOTICE /* General notices */
126: #define SL_DEBUG LOG_DEBUG /* Debugging */
127:
128: #endif /* __config_h__ */