1 /* 2 * Copyright (c) 1992, Brian Berliner and Jeff Polk 3 * Copyright (c) 1989-1992, Brian Berliner 4 * 5 * You may distribute under the terms of the GNU General Public License as 6 * specified in the README file that comes with the CVS 1.4 kit. 7 * 8 * This file holds (most of) the configuration tweaks that can be made to 9 * customize CVS for your site. CVS comes configured for a typical SunOS 4.x 10 * environment. The comments for each configurable item are intended to be 11 * self-explanatory. All #defines are tested first to see if an over-riding 12 * option was specified on the "make" command line. 13 * 14 * If special libraries are needed, you will have to edit the Makefile.in file 15 * or the configure script directly. Sorry. 16 */ 17 18 /* 19 * For portability and heterogeneity reasons, CVS is shipped by default using 20 * my own text-file version of the ndbm database library in the src/myndbm.c 21 * file. If you want better performance and are not concerned about 22 * heterogeneous hosts accessing your modules file, turn this option off. 23 */ 24 #ifndef MY_NDBM 25 #define MY_NDBM 26 #endif 27 28 /* 29 * The "patch" program to run when using the CVS server and accepting 30 * patches across the network. Specify a full pathname if your site 31 * wants to use a particular patch. 32 */ 33 #ifndef PATCH_PROGRAM 34 #define PATCH_PROGRAM "patch" 35 #endif 36 37 /* Directory used for storing temporary files, if not overridden by 38 environment variables or the -T global option. There should be little 39 need to change this (-T is a better mechanism if you need to use a 40 different directory for temporary files). */ 41 #ifndef TMPDIR_DFLT 42 #define TMPDIR_DFLT "c:\\temp" 43 #endif 44 45 /* 46 * The default editor to use, if one does not specify the "-e" option to cvs, 47 * or does not have an EDITOR environment variable. I set this to just "vi", 48 * and use the shell to find where "vi" actually is. This allows sites with 49 * /usr/bin/vi or /usr/ucb/vi to work equally well (assuming that your PATH 50 * is reasonable). 51 * 52 * The notepad program seems to be Windows NT's bare-bones text editor. 53 */ 54 #ifndef EDITOR_DFLT 55 #define EDITOR_DFLT "notepad" 56 #endif 57 58 /* 59 * The default umask to use when creating or otherwise setting file or 60 * directory permissions in the repository. Must be a value in the 61 * range of 0 through 0777. For example, a value of 002 allows group 62 * rwx access and world rx access; a value of 007 allows group rwx 63 * access but no world access. This value is overridden by the value 64 * of the CVSUMASK environment variable, which is interpreted as an 65 * octal number. 66 */ 67 #ifndef UMASK_DFLT 68 #define UMASK_DFLT 002 69 #endif 70 71 /* 72 * The cvs admin command is restricted to the members of the group 73 * CVS_ADMIN_GROUP. If this group does not exist, all users are 74 * allowed to run cvs admin. To disable the cvs admin for all users, 75 * create an empty group CVS_ADMIN_GROUP. To disable access control for 76 * cvs admin, comment out the define below. 77 * 78 * Under Windows NT, this must not be used because it tries to include 79 * <grp.h> 80 */ 81 #ifdef CVS_ADMIN_GROUP 82 /* #define CVS_ADMIN_GROUP "cvsadmin" */ 83 #endif 84 85 /* 86 * The Repository file holds the path to the directory within the 87 * source repository that contains the RCS ,v files for each CVS 88 * working directory. This path is either a full-path or a path 89 * relative to CVSROOT. 90 * 91 * The big advantage that I can see to having a relative path is that 92 * one can change the physical location of the master source 93 * repository, change the contents of CVS/Root files in your 94 * checked-out code, and CVS will work without problems. 95 * 96 * Therefore, RELATIVE_REPOS is now the default. In the future, this 97 * is likely to disappear entirely as a compile-time (or other) option, 98 * so if you have other software which relies on absolute pathnames, 99 * update them. 100 */ 101 #define RELATIVE_REPOS 1 102 103 /* 104 * When committing or importing files, you must enter a log message. 105 * Normally, you can do this either via the -m flag on the command line or an 106 * editor will be started for you. If you like to use logging templates (the 107 * rcsinfo file within the $CVSROOT/CVSROOT directory), you might want to 108 * force people to use the editor even if they specify a message with -m. 109 * Enabling FORCE_USE_EDITOR will cause the -m message to be appended to the 110 * temp file when the editor is started. 111 */ 112 #ifndef FORCE_USE_EDITOR 113 /* #define FORCE_USE_EDITOR */ 114 #endif 115 116 /* 117 * When locking the repository, some sites like to remove locks and assume 118 * the program that created them went away if the lock has existed for a long 119 * time. This used to be the default for previous versions of CVS. CVS now 120 * attempts to be much more robust, so lock files should not be left around 121 * by mistake. The new behaviour will never remove old locks (they must now 122 * be removed by hand). Enabling CVS_FUDGELOCKS will cause CVS to remove 123 * locks that are older than CVSLCKAGE seconds. 124 * Use of this option is NOT recommended. 125 */ 126 #ifndef CVS_FUDGELOCKS 127 /* #define CVS_FUDGELOCKS */ 128 #endif 129 130 /* 131 * When committing a permanent change, CVS and RCS make a log entry of 132 * who committed the change. If you are committing the change logged in 133 * as "root" (not under "su" or other root-priv giving program), CVS/RCS 134 * cannot determine who is actually making the change. 135 * 136 * As such, by default, CVS disallows changes to be committed by users 137 * logged in as "root". You can disable this option by commenting 138 * out the lines below. 139 * 140 * Under Windows NT, privileges are associated with groups, not users, 141 * so the case in which someone has logged in as root does not occur. 142 * Thus, there is no need for this hack. 143 */ 144 #undef CVS_BADROOT 145 146 /* 147 * Yes, we can do the authenticated client. 148 */ 149 #define AUTH_CLIENT_SUPPORT 1 150 151 /* End of CVS configuration section */ 152 153 /* 154 * Externs that are included in libc, but are used frequently enough to 155 * warrant defining here. 156 */ 157 #ifndef STDC_HEADERS 158 extern void exit (); 159 #endif 160