~ chicken-core (chicken-5) /chicken-install.mdoc
Trap1.\" Copyright (c) 2007-2022, The CHICKEN Team2.\" All rights reserved.3.\"4.\" Redistribution and use in source and binary forms, with or without5.\" modification, are permitted provided that the following conditions6.\" are met:7.\" 1. Redistributions of source code must retain the above copyright8.\" notice, this list of conditions and the following disclaimer.9.\" 2. Redistributions in binary form must reproduce the above copyright10.\" notice, this list of conditions and the following disclaimer in the11.\" documentation and/or other materials provided with the distribution.12.\" 3. The name of the authors may not be used to endorse or promote products13.\" derived from this software without specific prior written permission.14.\"15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.18.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.25.\"26.\"27.Dd Apr 26, 201728.Dt CHICKEN-INSTALL 129.Os30.Sh NAME31.Nm chicken-install32.Nd download and install extension libraries for CHICKEN Scheme33.Sh SYNOPSIS34.Nm35.Op Ar OPTION ...36.Op Ar NAME[:VERSION] ...37.Sh DESCRIPTION38.Nm39downloads, compiles and installs a prepackaged extension library from sources.40If no extension name is given on the command line, then any existing41.Em egg42descriptions in the current directory will be executed in unspecified order.43.Pp44The program accepts following arguments:45.Bl -tag -width Ds46.It Fl h , Fl help47Show usage and exit.48.It Fl version49Show version and exit.50.It Fl v , Fl verbose51Print extra information during installation.52.It Fl force53Install without confirmation, even if versions don't match.54.It Fl k , Fl keep55Keep temporary files.56.It Fl s , Fl sudo57Use an external program to elevate privileges for filesystem operations.58The program defaults to59.Xr sudo 860but can be overridden with the61.Ev SUDO62environment variable.63.It Fl r , Fl retrieve64Just retrieve the egg, don't install it65.No (giving Fl r No more than once implies Fl recursive Ns ).66.It Fl recursive67.No If Fl retrieve No is given, also fetch dependencies recursively.68.It Fl dry-run69Do not build or install, just print the locations of the generated build70& install scripts.71.It Fl list-versions72List available versions for the given eggs.73.It Fl purge74Remove cached files for given eggs (or purge cache completely).75.It Fl host76When cross-compiling, only compile extensions for host.77.It Fl target78When cross-compiling, only compile extensions for target.79.It Fl test80Run included test cases, if available.81.It Fl n , Fl no-install82Do not install the egg, just build it.83.It Fl no-install-dependencies84Do not install dependencies. Note that this option may result in build85failures due to missing extension libraries.86.It Fl u , Fl update-db87Update export database.88.It Fl repository89Print path used for egg installation.90.It Fl override Ar filename91Override versions for installed eggs with information from92.Ar filename .93.It Fl from-list Ar filename94Install eggs listed in95.Ar filename ,96which has the same format as97.Xr chicken-status 1 Ns 's98.Fl list No output.99This option may be given multiple times.100.It Fl cached101Only install eggs from cache, do not download.102.It Fl l , Fl location Ar directory103Get egg sources from the given directory.104May be provided multiple times.105Locations specified on the command line have precedence over the106ones specified in setup.defaults.107.It Fl feature , Fl D Ar name108Register feature109.Ar name ,110usable as a condition in cond-expand clauses.111.El112.Sh ENVIRONMENT113Following environment variables change the behaviour of114.Nm Ns :115.Bl -tag -width CHICKEN_INSTALL_REPOSITORY116.It Ev CHICKEN_EGG_CACHE117Location where eggs are retrieved and built.118.It Ev CHICKEN_INSTALL_PREFIX119The path prefix for all target files, as given when building the system.120Use this variable to override where programs, include files and additional121data files shall be installed.122.It Ev CHICKEN_INSTALL_REPOSITORY123The path where extension libraries are installed. Defaults to the124package library path selected during configuration125.Pq usually $prefix/lib/chicken/<binary-version> .126Note that this variable takes precedence to CHICKEN_INSTALL_PREFIX.127.It Ev SUDO128The command to execute when using129.Fl s130flag in command. If not provided, defaults to131.Xr sudo 8 .132.El133.Sh FILES134.Bl -tag -width 4n135.It Pa $XDG_CONFIG_HOME/chicken/setup.defaults136User specific setup.defaults file. (137.Ev $XDG_CONFIG_HOME138defaults to139.Pa $HOME/.config140)141.It Pa $prefix/share/chicken/setup.default142System-wide setup.defaults file.143.It Pa $XDG_CACHE_HOME/chicken-install/144Default directory for cached eggs. (145.Ev $XDG_CACHE_HOME146defaults to147.Pa $HOME/.cache148)149.El150.Sh EXIT STATUS151The152.Nm153utility exits 0 on success, 2 if the user aborted an operation, 3 if it154was invoked with no explicitly given egg names and no *.egg files could155be found in the current directory, and >0 if any other error occurs.156.Sh EXAMPLES157Install158.Sq regex159egg as root user:160.Pp161.Dl # chicken-install regex162.Pp163Install an egg as an normal user but using164.Xr sudo 8 :165.Pp166.Dl $ chicken-install -s regex167.Pp168Install an egg as an normal user but elevating privileges with different program, such as OpenBSD169.Xr doas 1 :170.Pp171.Dl $ SUDO=/usr/bin/doas chicken-install -s regex172.Sh SEE ALSO173.Xr chicken 1 ,174.Xr chicken-status 1 ,175.Xr chicken-uninstall 1 ,176.Xr csc 1177.Pp178More information can be found in the179.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".180.Sh AUTHORS181.An The CHICKEN Team182.Sh BUGS183Submit bug reports by e-mail to184.Mt chicken-janitors@nongnu.org