2005-11-09 16:43:05 -05:00
|
|
|
.\" man page for prt-get.conf
|
|
|
|
.\" Johannes Winkelmann, jw@tks6.net
|
|
|
|
|
|
|
|
|
|
|
|
.PU
|
|
|
|
.TH prt-get.conf 5
|
|
|
|
.SH "NAME"
|
|
|
|
.LP
|
|
|
|
prt-get.conf - Configuration file for prt-get
|
|
|
|
|
|
|
|
.SH "DESCRIPTION"
|
|
|
|
This file, by default
|
|
|
|
.IR /etc/prt-get.conf ,
|
|
|
|
is read by prt-get and prt-cache (see prt-get(8) and prt-cache(8))
|
|
|
|
.LP
|
|
|
|
It might look like this:
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
###
|
|
|
|
# prt-get.conf
|
|
|
|
|
|
|
|
# root directories
|
2023-06-23 14:08:28 -04:00
|
|
|
prtdir /usr/ports/core
|
2005-11-09 16:43:05 -05:00
|
|
|
prtdir /usr/ports/opt
|
|
|
|
prtdir /usr/ports/contrib
|
|
|
|
|
|
|
|
prtdir /usr/ports/unofficial
|
|
|
|
|
|
|
|
# use mutt and yafc from local build directory
|
|
|
|
prtdir /home/jw/build:mutt, yafc
|
|
|
|
|
|
|
|
# change default location of cache file
|
|
|
|
cachefile /tmp/port-cache
|
|
|
|
|
|
|
|
# write a log file
|
|
|
|
writelog enabled
|
|
|
|
logmode append
|
|
|
|
logfile /tmp/log/%n.log
|
|
|
|
|
|
|
|
# show compact readme information
|
|
|
|
readme compact
|
|
|
|
.fi
|
|
|
|
|
|
|
|
.LP
|
2023-06-01 14:45:17 -04:00
|
|
|
This example configures a few values: the location where to look
|
|
|
|
for the ports, the location of the cache file, some log options, and
|
2005-11-09 16:43:05 -05:00
|
|
|
how to notify the user about README files.
|
|
|
|
|
|
|
|
If you don't specify the
|
|
|
|
cache file, the default location is
|
2006-04-13 15:28:42 -04:00
|
|
|
.B /var/lib/pkg/prt-get.cache
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.LP
|
2023-06-01 14:45:17 -04:00
|
|
|
Every line can contain one configuration option. The format of each line
|
2005-11-09 16:43:05 -05:00
|
|
|
is
|
|
|
|
.B <key> <value>.
|
2023-06-01 14:45:17 -04:00
|
|
|
The keys that accept arbitrary strings as their value are
|
|
|
|
.B prtdir,
|
|
|
|
.B cachefile,
|
|
|
|
.B logfile,
|
|
|
|
and the
|
|
|
|
.B *command
|
|
|
|
keys (see below). Every other key must be given a value from a predetermined
|
|
|
|
set (e.g., yes|no).
|
|
|
|
|
2005-11-09 16:43:05 -05:00
|
|
|
The value for
|
|
|
|
.B prtdir
|
2023-06-01 14:45:17 -04:00
|
|
|
is a directory; the value for
|
2005-11-09 16:43:05 -05:00
|
|
|
.B cachefile
|
2023-06-01 14:45:17 -04:00
|
|
|
is the file to be used as cache.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2023-06-01 14:45:17 -04:00
|
|
|
.SH Boolean keys
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.B runscripts
|
|
|
|
if set to yes, execute pre- and post-install scripts
|
|
|
|
|
|
|
|
.B preferhigher
|
|
|
|
if set to yes, prt-get will parse version strings and prefer the
|
|
|
|
higher one, even if the one found in the ports tree is lower. Will
|
|
|
|
influence diff, quickdiff and sysup
|
|
|
|
|
|
|
|
.B useregex
|
|
|
|
if set to yes, prt-get will interpret search and filter patterns in
|
|
|
|
list, listinst, printf, search, dsearch and fsearch as regular
|
2023-06-01 14:45:17 -04:00
|
|
|
expressions.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2023-03-10 10:03:11 -05:00
|
|
|
.B softdeps
|
|
|
|
if set to yes, during an update operation prt-get will perform a greedy search
|
|
|
|
of the dependency graph, visiting any \fBinstalled\fP optional dependency of
|
2023-06-01 14:45:17 -04:00
|
|
|
the ports specified on the command line and recursing until either a leaf
|
|
|
|
node is found (port that doesn't depend on anything else) or a cycle is
|
|
|
|
created. If a cycle is \fBnot\fP created by following a soft dependency,
|
|
|
|
then this dependency relationship is added to the list of edges, and
|
|
|
|
topological sort of the resulting graph can proceed as usual. The default is
|
|
|
|
\fBsoftdeps no\fP, which means prt-get will only consider hard dependencies
|
|
|
|
when walking the directed graph.
|
|
|
|
|
|
|
|
.SH Overriding default commands
|
|
|
|
|
|
|
|
.B makecommand,
|
|
|
|
.B addcommand,
|
|
|
|
.B removecommand,
|
|
|
|
and
|
2005-11-09 16:43:05 -05:00
|
|
|
.B runscriptcommand
|
2023-06-01 14:45:17 -04:00
|
|
|
can be given to override the defaults ('pkgmk' for the makecommand, 'pkgadd'
|
|
|
|
for the addcommand, 'pkgrm' for the removecommand and 'sh' for the
|
|
|
|
interpreter of pre- and post-install scripts). These are expert options
|
|
|
|
which should not be used in general; when used the wrong way, they can
|
|
|
|
completely break prt-get's original functionality.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2023-06-01 14:45:17 -04:00
|
|
|
.SH Keys that control logging
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.B writelog
|
|
|
|
which can be set to 'enabled' or 'disabled'
|
2023-06-01 14:45:17 -04:00
|
|
|
|
2005-11-09 16:43:05 -05:00
|
|
|
.B logmode
|
|
|
|
which can be set to 'append' or 'overwrite'
|
2023-06-01 14:45:17 -04:00
|
|
|
|
2006-04-04 12:30:54 -04:00
|
|
|
.B rmlog_on_success
|
|
|
|
which can be set to 'yes' or 'no'; when set to yes, log files of
|
|
|
|
successful builds will be removed
|
2023-06-01 14:45:17 -04:00
|
|
|
|
2005-11-09 16:43:05 -05:00
|
|
|
.B logfile
|
2023-06-01 14:45:17 -04:00
|
|
|
a template for the path where logs get saved. All occurences of %n in
|
|
|
|
logfile are replaced with the port name and all occurences of %p are
|
|
|
|
replaced with the port's path, e.g. for port gcc in core, %p would be
|
|
|
|
.B /usr/ports/core
|
|
|
|
and %n would be
|
2005-11-09 16:43:05 -05:00
|
|
|
.B gcc.
|
2006-04-04 12:30:54 -04:00
|
|
|
This allows you to have separate log files per port.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.B readme
|
2023-06-23 14:08:28 -04:00
|
|
|
can be set to 'disabled', to suppress the notification after installing
|
|
|
|
a port with a README file; 'compact', to collect all the READMEs
|
2023-06-01 14:45:17 -04:00
|
|
|
into one post-transaction output; or 'verbose', to print separate
|
|
|
|
information about each port with a README file. See
|
2005-11-09 16:43:05 -05:00
|
|
|
.B prt-get(8)
|
|
|
|
and especially the readme command how to read those README files using
|
2023-06-01 14:45:17 -04:00
|
|
|
prt-get.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.LP
|
2023-06-01 14:45:17 -04:00
|
|
|
The order of the prtdir options is important: if a port is in multiple
|
2005-11-09 16:43:05 -05:00
|
|
|
directories, prt-get will use the one found first (directories listed
|
2023-06-01 14:45:17 -04:00
|
|
|
first have precedence).
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.LP
|
|
|
|
If you want to restrict the ports used from one prtdir, you can
|
|
|
|
append a comma separated list of ports to be used after the path,
|
|
|
|
using a colon (':') character to separate the two components
|
|
|
|
.B path:package1, package2,...
|
|
|
|
Note that this slows down prt-get a lot if you list a lot of packages.
|
2023-06-23 14:08:28 -04:00
|
|
|
If you become aware of speed problems due to this feature, create a separate
|
|
|
|
ports directory instead and fill it with symlinks to the ports you want.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.LP
|
|
|
|
You can write comments after a '#' character. If you have '#'
|
2023-06-23 14:08:28 -04:00
|
|
|
characters in your paths, there's no way to escape them (likewise there is
|
|
|
|
no way to escape ':' characters). Complain to the author if this is a
|
2005-11-09 16:43:05 -05:00
|
|
|
problem :-)
|
|
|
|
|
|
|
|
|
|
|
|
.SH "AUTHORS"
|
2023-03-10 10:03:11 -05:00
|
|
|
Johannes Winkelmann <jw@tks6.net>, John McQuah <jmcquah at disroot dot org>
|
2005-11-09 16:43:05 -05:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
prt-get(8), pkgmk(8) pkgadd(8), ports(8)
|