.\" Hey, Emacs! This is an -*- nroff -*- source file. .\" Copyright (c) 1997 Manoj Srivastava .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, write to the Free .\" Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA .\" 02111-1307, USA. .\" .\" $Id: cvsdeb.conf.5,v 1.18 2003/08/18 19:01:54 srivasta Exp $ .\" .TH CVSDEB.CONF 5 "Feb 21 1998" "Debian" "Debian GNU/Linux manual" .\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection .\" other parms are allowed: see man(7), man(1) .SH NAME cvsdeb.conf \- site\-wide configuration file for .B cvs\-buildpackage and friends .SH SYNOPSIS .I /etc/cvsdeb.conf .SH "DESCRIPTION" The file .I /etc/cvsdeb.conf is actually a .BR "Bourne Shell" snippet included during the package build process, and hence you may put any shell directive in that file (just make very sure you know what you are doing). .PP All the variables have reasonable default values, and some maybe overridden on a per run or a per individual basis by using environment variables, and all configurable variables can be overridden by options to the scripts themselves. .PP The value of a variable can be set so: .TP 3 a) Defaults exist in the rules file. These are the values used if no customization is done. .IP b) Some variables can be set in the config file .I /etc/cvsdeb.conf. These values override the defaults. .IP c) Some variables can also be set by setting a corresponding environment variable. These values override the config file and the defaults. .IP d) Using script command line options. All configurable variables may be set by this method, and will override the other methods above. .SH "Predefined variables for cvs-buildpackage" The following variables are defined for .B cvs\-buildpackage. .TP 16 .B package Name of the package .TP .B version The raw version of the package .TP .B sversion The version number stripped of epochs. .TP .B uversion The upstream version. .TP .B tversion Debian revision number, if any. .SH "Configuration File options" At the moment, the user modifiable variables supported are: .TP 18 .B DEBUG Debugging information: The default value is 0 (no debugging information is printed). To enable debugging output, set the value to 1. .TP .B conf_forceclean There are two things .B CVS may choke on: .I symbolic links and .I CVS directories in the source tree. Also, there are times when one may not want to honour the upstream .I .cvsignore files. The .B conf_forceclean. configuration variable causes the .B cvs-inject and .B cvs-upgrade programs to ask whether the offending files should be deleted, if not, the programs exit with an error message. Without this option, the programs exit with an error message without asking. This can be over ridden by the environment variable .B CVSDEB_FORCECLEAN. .TP .B conf_rootdir The root directory is used to set the default value of the cvs-buildpackage work directory, using the package name. The default value is .I /usr/src/Packages. This should probably not be a sub dir of .B CVSROOT, since cvs shall refuse to export packages there, and the script shall fail. .TP .B conf_workdir The cvs-buildpackage work directory. This directory is where the original sources are expected, and this is where the module shall be exported from CVS. If you set this value, the value of the root directory would be ignored. Please note that the cvs-buildpackage work directory referred to here is the scratch directory where this program works, not the directory that the human uses to work in. This should probably not be a sub dir of .B CVSROOT, since cvs shall refuse to export packages there, and the script shall fail. .TP .B conf_dpkg_options This is where one may stash -us -uc or whatever to pass on to .B dpkg\-buildpackage. This is different from the other variables in that this is an array variable. These options shall augment (not replace) .B dpkg-buildpackage options provided on the command line. Bash provides one-dimensional array variables. Any variable may be used as an array; the `declare' builtin will explicitly declare an array. There is no maximum limit on the size of an array, nor any requirement that members be indexed or assigned contiguously. Arrays are zero-based. Arrays are assigned to using compound assignments of the form .I conf_dpkg_options=(value1 ... valueN) or .I dpkg_options=(value1 ${dpkg_options[@]}) .TP .B conf_rootcommand This is where one specifies the default command to gain root access (usually set to .I fakeroot, sudo or .I super ). This is also passed along to .B dpkg\-buildpackage. .TP .B conf_buildpackage Sets the name of the builder program invoked, nominally set to .B dpkg-buildpackage. However, the user may choose to use a different build program, or a wrapper, or even .IB "'chroot /opt/root dpkg-buildpackage'" to build the package in a .I chroot jail, if desired. (Obviously, this requires that the Work directory to be a subdirectory of a previously set up chroot jail). One may also hook in .B pbuilder by setting this variable to .IB "'pdebuild --auto-debsign --buildresult ../'". (Again, this requires that pbuilder has been set up correctly). This option can be over ridden by the environment variable .B CVSDEB_BUILDPACKAGE. .TP .B conf_packageopts Additional arguments to give to .B conf_buildpackage that shall be appended to .B dpkg-buildpackage options. Use this variable to append to the list of options. This option can be over ridden by the environment variable .B CVSDEB_PACKAGEOPTS. .TP .B conf_forcetag. If this is set, then .B cvs\-buildpackage shall call .I cvs tag -F to ensure that all files are re\-tagged correctly. .TP .B conf_prefix=prefix If this is set, then this prefix is prepended to the package name while looking for the repository. In other word, we append this to .B CVSROOT while looking for packages. Use this to group all your .I Debian package sources together in a subdirectory in the .B CVS repository .TP .B conf_packageintag. If this is set, then .B cvs\-buildpackage will include the package name and an underscore at the start of every CVS tag it generates or uses. .TP .B conf_cvsmodule This option sets the .B CVS module for use with .B cvs\-inject and .B cvs\-upgrade. .TP .B conf_use_changelog This option tells the .B cvs\-inject and .B cvs\-upgrade commands to incorporate debian changelog entries into the cvs changelog. .TP .B conf_hook_script This option, if set, should point to a script that should be run just before calling .B dpkg\-buildpackage. Ideally, things like this are done using the modules file and programs, but is still provided here for convenience. This is overridden by the environment variable .B CVSDEB_HOOK. .TP .B conf_get_orig This option, if set, should contain a command to execute to get the original tarball into the current directory. This can then be used to allow one to get the original file using, for instance, .B wget or .BR curl . This is overridden by the .B CVSDEB_GET_ORIG environment variable. .TP .B conf_use_apt If set to .BR YES , cvs-buildpackage will use .B apt-get source to retrive the original tarball, if one for the correct upstream version is found in a .B Sources file known to .BR apt . This is overridden by the .B CVSDEB_USE_APT environment variable. .PP .SH "Environment Variables" At the moment, the user modifiable variables supported are: .TP 15 .B CVSDEB_ROOTDIR If defined, this environment variable will override the value of the root directory set in the configuration file. .TP .B CVSDEB_WORKDIR If defined, this environment variable will override the value of the cvs-buildpackage work directory set in the configuration file, and would cause the scripts to ignore the root directory, irrespective of where that value was set. .TP .B CVSDEB_MODULE If defined, this environment variable will override the value of the .B CVS module set in the configuration file. .TP .B CVSDEB_USE_CHANGELOG If defined, this environment variable will make .B cvs-inject and .B cvs-upgrade programs incorporate entries from the Debian changelog file into the CVS changelog. .TP .B CVSDEB_BUILDPACKAGE. If defined, this environment variable will override the value of the configuration file variable .B conf_buildpackage .TP .B CVSDEB_HOOK Over rides the configuration file option .B conf_hook_script. .PP .TP .B CVSDEB_GET_ORIG Over rides the configuration file option .B conf_get_orig. .SH Files System\-wide defaults are placed in .I /etc/cvsdeb.conf, This can be overridden and supplemented by .I "~/.cvsdeb.conf" file by each user. .SH "SEE ALSO" .BR cvs\-inject (1), .BR cvs\-buildpackage (1), .BR cvs\-upgrade (1), .BR dpkg\-buildpackage (1), .BR cvs (1). .SH BUGS There are no bugs. Any resemblance thereof is delirium. Really. .SH AUTHOR This manual page was written by Manoj Srivastava , for the Debian GNU/Linux system.