sbopkg/tools/sbopkg-conf5.html

866 lines
15 KiB
HTML
Raw Normal View History

<HTML><HEAD><TITLE>Manpage of SBOPKG.CONF</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
</HEAD><BODY>
<H1>SBOPKG.CONF</H1>
Section: (5)<BR>Updated: March 2022<BR><A HREF="#index">Index</A>
<A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR>
2010-11-12 05:07:45 +01:00
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
2010-11-12 05:07:45 +01:00
sbopkg.conf - configuration file for sbopkg
<A NAME="lbAC">&nbsp;</A>
<H2>DESCRIPTION</H2>
2010-11-12 05:07:45 +01:00
The
<I>sbopkg.conf</I>
file contains configuration settings for
<B><A HREF="http://localhost/cgi-bin/man/man2html?8+sbopkg">sbopkg</A></B>(8),
a tool for interacting with the SlackBuilds.org (``SBo'') repository, a
collection of third-party SlackBuild scripts to build Slackware
packages.
The default configuration file is installed at
<I>/etc/sbopkg/sbopkg.conf</I>.
2011-04-28 05:01:06 +02:00
The user may override any settings in that file by creating
<I>~/.sbopkg.conf</I>.
<P>
Please see the
<B>NOTES</B>
section for more information about variables, including
2010-11-12 05:07:45 +01:00
<B>ARCH</B>.
2010-03-05 23:00:38 +01:00
<P>
2010-11-12 05:07:45 +01:00
All boolean options require a
<B>YES</B>
or a
<B>NO</B>
without regard to case.
All path values must be full.
<P>
2010-11-12 05:07:45 +01:00
The default configuration options are:
<DL COMPACT>
2010-11-12 05:07:45 +01:00
<DT><B>ALLOW_MULTI</B>
<DD>
2010-11-12 05:07:45 +01:00
Boolean.
<DT><DD>
When set to
<B>YES</B>,
2010-11-12 05:07:45 +01:00
this option allows the user to run multiple instances of
<B>sbopkg</B>
2010-11-12 05:07:45 +01:00
simultaneously.
<DT><DD>
Please understand that this option is provided for convenience, but
given the number of potential issues you can face when enabling this
(and we aren't going to try to work around users doing silly things),
you should consider this an EXPERIMENTAL UNSUPPORTED feature.
If you encounter problems, please try to make sure these aren't caused
by yourself doing improper things.
<DT><DD>
For reference, these are some of the things you shouldn't do with this
option enabled:
<DL COMPACT><DT><DD>
<DL COMPACT>
<DT>*<DD>
run instances with a mixture of
<B>YES</B>
2010-11-12 05:07:45 +01:00
and
<B>NO</B>
2010-11-12 05:07:45 +01:00
settings
<DT>*<DD>
sync a repository when another instance is using it
<DT>*<DD>
change the branch of a git repository when another instance is using it
(this caveat does not apply to rsync repositories)
<DT>*<DD>
2012-10-04 05:16:56 +02:00
simultaneously process the same package from different instances
2010-11-12 05:07:45 +01:00
<DT>*<DD>
save a queue file while using it from another instance
</DL>
</DL>
2010-11-12 05:07:45 +01:00
<DT><DD>
There can be more unsafe situations we haven't thought about.
Take care.
<DT><DD>
The default assignment is:
<DT><DD>
ALLOW_MULTI=${ALLOW_MULTI:-NO}
<DT><B>CLEANUP</B>
<DD>
2010-11-12 05:07:45 +01:00
Boolean.
<DT><DD>
When set to
<B>YES</B>,
2010-11-12 05:07:45 +01:00
the unpacked source files and package tree in
<I>$TMP</I>
2010-11-12 05:07:45 +01:00
are deleted right after the build, though the downloaded source archive
and completed package are left in
<I>$SRCDIR</I>
and
<I>$OUTPUT</I>.
<DT><DD>
A side effect of setting
<B>CLEANUP</B>
to
<B>YES</B>
is that
<B>TMP</B>
2011-04-28 05:01:06 +02:00
is set to
<B>sbopkg</B>'s
own temporary directory
(<I>$TMPDIR/sbopkg.RANDOM_STRING</I>)
and any other
2010-11-12 05:07:45 +01:00
<B>TMP</B>
setting is ignored.
<DT><DD>
The default assignment is:
<DT><DD>
CLEANUP=${CLEANUP:-NO}
<DT><B>DEBUG_UPDATES</B>
<DD>
2010-11-12 05:07:45 +01:00
Enumeration.
<DT><DD>
This option should be set to
<B>0</B>,
2010-11-12 05:07:45 +01:00
<B>1</B>,
2010-11-12 05:07:45 +01:00
or
<B>2</B>.
<B>DEBUG_UPDATES</B>
sets the default debugging level for the update list feature of
<B>sbopkg</B>.
When set to
<B>0</B>,
only potential updated (or downgraded) packages are listed.
When set to
<B>1</B>,
potential updates plus packages not in the repo and packages that are
newer than the repo are listed.
When set to
<B>2</B>,
all non-updated packages are also listed.
Changing
<B>DEBUG_UPDATES</B>
to
<B>1</B>
or
<B>2</B>
may be helpful if it appears the updatelist might be missing an update.
<DT><DD>
The default assignment is:
<DT><DD>
DEBUG_UPDATES=${DEBUG_UPDATES:-0}
<DT><B>DIFF</B>
<DD>
2010-11-12 05:07:45 +01:00
Command.
<DT><DD>
This option allows the user to set which diff program to use when
<B>sbopkg</B>
2010-11-12 05:07:45 +01:00
displays differences between edited files.
<DT><DD>
The default assignment is:
<DT><DD>
DIFF=${DIFF:-diff}
2010-11-12 05:07:45 +01:00
<DT><B>DIFFOPTS</B>
<DD>
2010-11-12 05:07:45 +01:00
Command options.
<DT><DD>
This option allows the user to set which options are used by the
<I>$DIFF</I>
2010-11-12 05:07:45 +01:00
program when
<B>sbopkg</B>
2010-11-12 05:07:45 +01:00
displays differences between edited files.
<DT><DD>
The default assignment is:
<DT><DD>
DIFFOPTS=${DIFFOPTS:--u}
<DT><B>KEEPLOG</B>
<DD>
2010-11-12 05:07:45 +01:00
Boolean.
<DT><DD>
This option allows the user to choose whether to keep a permanent log of
packages that are built with
<B>sbopkg</B>
2010-11-12 05:07:45 +01:00
in order to review the builds for historical or troubleshooting
purposes.
See
<B>LOGFILE</B>
2010-11-12 05:07:45 +01:00
for the location of this log.
<DT><DD>
The default assignment is:
<DT><DD>
KEEPLOG=${KEEPLOG:-YES}
<DT><B>LOGFILE</B>
<DD>
2010-11-12 05:07:45 +01:00
Path.
<DT><DD>
This option sets the name for the build log if
<B>KEEPLOG</B>
2010-11-12 05:07:45 +01:00
is set to
<B>YES</B>.
2010-11-12 05:07:45 +01:00
<DT><DD>
The default assignment is:
<DT><DD>
LOGFILE=${LOGFILE:-/var/log/sbopkg/sbopkg-build-log}
<DT><B>MKDIR_PROMPT</B>
<DD>
2010-11-12 05:07:45 +01:00
Boolean.
<DT><DD>
When set to
<B>YES</B>,
2010-11-12 05:07:45 +01:00
<B>sbopkg</B>
will prompt for confirmation before changing the filesystem by creating
its directories.
If you do not wish to be prompted (for instance, if you have some of the
directories on a temporary filesystem and don't wish to be prompted for
confirmation each time the filesystem is reinitialized) you can set this
to
<B>NO</B>.
<DT><DD>
The default assignment is:
<DT><DD>
MKDIR_PROMPT=${MKDIR_PROMPT:-NO}
2010-11-12 05:07:45 +01:00
2012-10-04 05:16:56 +02:00
<DT><B>NICE</B>
<DD>
Integer.
<DT><DD>
This value is passed to
<B><A HREF="http://localhost/cgi-bin/man/man2html?1+nice">nice</A></B>(1)
as its
<B>-n</B>
argument.
If this value is unset or left at the default,
<B>sbopkg</B>
will execute SlackBuilds with
<B>nice</B>'s
default niceness, which is
<B>10.</B>
If you do not wish the priority to be effected, be sure to set it to
<B>0</B>.
Note that this only affects SlackBuild execution and does not affect the
priority of
<B>sbopkg</B>
as a whole.
<DT><DD>
The default assignment is:
<DT><DD>
NICE=${NICE:-10}
2010-11-12 05:07:45 +01:00
<DT><B>OUTPUT</B>
<DD>
2010-11-12 05:07:45 +01:00
Path.
<DT><DD>
This option sets the default directory where compiled packages are
saved.
<B>OUTPUT</B>
2010-11-12 05:07:45 +01:00
must be exported as it is also used by the SBo SlackBuilds.
Note that the default value of
<B>OUTPUT</B>
2010-11-12 05:07:45 +01:00
is therefore the same as in the SBo SlackBuilds.
<DT><DD>
The default assignment is:
<DT><DD>
export OUTPUT=${OUTPUT:-/tmp}
<DT><B>QUEUEDIR</B>
<DD>
2010-11-12 05:07:45 +01:00
Path.
<DT><DD>
This option defines the directory under which saved queue files will be
kept.
<DT><DD>
The default assignment is:
<DT><DD>
QUEUEDIR=${QUEUEDIR:-/var/lib/sbopkg/queues}
2010-11-12 05:07:45 +01:00
<DT><B>REPO_BRANCH</B>
<DD>
2010-11-12 05:07:45 +01:00
Enumeration.
<DT><DD>
This option allows the user to set the default active repository branch.
The current standard values are listed in the default
<I>repos.d/*</I>
2010-11-12 05:07:45 +01:00
files and can also be listed by issuing
<DL COMPACT><DT><DD>
<DL COMPACT>
2010-11-12 05:07:45 +01:00
<DT><DD>
<PRE>
# sbopkg -V ?
</PRE>
</DL>
</DL>
2010-11-12 05:07:45 +01:00
<DT><DD>
The default assignment is:
<DT><DD>
REPO_BRANCH=${REPO_BRANCH:-15.0}
2010-11-12 05:07:45 +01:00
<DT><B>REPO_NAME</B>
<DD>
2010-11-12 05:07:45 +01:00
Enumeration.
<DT><DD>
This option allows the user to choose the repository to use.
See
<B>REPO_BRANCH</B>
for how to get an enumeration of standard values.
The ``local'' choice corresponds to a user-maintained repository whose
structure must be the same as the one used by SBo, in the sense of a
<I>category/package/files</I>
hierarchy.
Note: all of the
<B>REPO_*</B>
variables are affected by the repository files maintained in
<I>/etc/sbopkg/repos.d.</I>
Please see the
2011-04-28 05:01:06 +02:00
<I>README-repos</I>
2010-11-12 05:07:45 +01:00
document in the
<B>sbopkg</B>
documentation directory.
<DT><DD>
The default assignment is:
<DT><DD>
REPO_NAME=${REPO_NAME:-SBo}
<DT><B>REPO_ROOT</B>
2010-03-05 23:00:38 +01:00
<DD>
2010-11-12 05:07:45 +01:00
Path.
<DT><DD>
This option allows the user to set the location of the local mirrors of
the remote repositories.
Currently, the size of a local copy of the SBo repository is about 336MB.
2010-11-12 05:07:45 +01:00
<DT><DD>
The default assignment is:
<DT><DD>
REPO_ROOT=${REPO_ROOT:-/var/lib/sbopkg}
<DT><B>RSYNCFLAGS</B>
<DD>
2010-11-12 05:07:45 +01:00
Command options.
<DT><DD>
<B>Rsync</B>
is used by
<B>sbopkg</B>
to mirror the SBo repository.
This option allows the user to manually tweak the
<B>rsync</B>
flags (options) that are used by
<B>sbopkg</B>.
Users are cautioned against making any changes to the default values
since new flags may or may not work.
Note: the
<B>rsync</B>
command in
<B>sbopkg</B>
already uses the
<B>--archive</B>,
<B>--delete</B>,
<B>--no-owner</B>,
and
<B>--exclude</B>
flags, so there is no need to add them to the
<B>RSYNCFLAGS</B>
option.
Changing those internal default options is not recommended.
However,
<B>--timeout</B>
is a useful option to play with if getting syncing errors.
<DT><DD>
The default assignment is:
<DT><DD>
RSYNCFLAGS=&quot;${RSYNCFLAGS:---verbose --timeout=30}&quot;
<DT><B>SRCDIR</B>
<DD>
2010-11-12 05:07:45 +01:00
Path.
<DT><DD>
This option contains the location of the cache directory where source
downloads will be saved.
<DT><DD>
The default assignment is:
<DT><DD>
SRCDIR=${SRCDIR:-/var/cache/sbopkg}
<DT><B>BLACKLISTFILE</B>
<DD>
Path.
<DT><DD>
This option contains the location of the file that list all blacklisted
package(s).
<DT><DD>
The default assignment is:
<DT><DD>
BLACKLISTFILE=${BLACKLISTFILE:-/etc/sbopkg/blacklist}
2010-11-12 05:07:45 +01:00
<DT><B>TMP</B>
2010-11-12 05:07:45 +01:00
<DD>
Path.
<DT><DD>
This option sets the default directory where built packages are saved.
<B>TMP</B>
must be exported as it is also used by the SBo SlackBuilds.
Note that the default value of
<B>TMP</B>
is therefore the same as in the SBo SlackBuilds.
<DT><DD>
Also note that if the
<B>CLEANUP</B>
variable is set to
<B>YES</B>,
any custom
<B>TMP</B>
setting is ignored.
<DT><DD>
The default assignment is:
<DT><DD>
export TMP=${TMP:-/tmp/SBo}
2011-02-05 05:34:55 +01:00
<DT><B>TMPDIR</B>
<DD>
Path.
<DT><DD>
This option sets the default directory where certain working files
specific to
<B>sbopkg</B>
are saved on a temporary basis. Note that this variable is actually used
by
<B><A HREF="http://localhost/cgi-bin/man/man2html?1+mktemp">mktemp</A></B>(1),
and that the actual directory is hardcoded internally to
<I>sbopkg.XXXXXX</I>
where 'XXXXXX' is a random string.
This variable determines the containing directory for that.
If /tmp is not a suitable containing directory, TMPDIR can be assigned
to on the command line when invoking
<B>sbopkg</B>
or the variable can be modified in
<I>sbopkg.conf</I>.
<DT><DD>
The default assignment is:
<DT><DD>
export TMPDIR=${TMPDIR:-/tmp}
2010-11-12 05:07:45 +01:00
<DT><B>WGETFLAGS</B>
<DD>
2010-11-12 05:07:45 +01:00
Command options.
<DT><DD>
<B>Wget</B>
is used by
<B>sbopkg</B>
to download the source files for package building.
This option allows the user to manually tweak the
<B>wget</B>
flags (options) that are used by
<B>sbopkg</B>.
Users are cautioned against making any changes to the default values
since new flags may or may not work.
However,
<B>--timeout</B>
is a useful option to play with if getting download errors.
<DT><DD>
The default assignment is:
<DT><DD>
WGETFLAGS=&quot;${WGETFLAGS:--c --progress=bar:force --timeout=30 --tries=5}&quot;
<DT><B>SRC_REPO</B>
<DD>
Path
<DT><DD>
This option sets the alternative third party source repository that can
be used to download the source files for package building.
<DT><DD>
The default value is hard-coded to <A HREF="http://slackware.uk/sbosrcarch">http://slackware.uk/sbosrcarch</A>
</DL>
<A NAME="lbAD">&nbsp;</A>
2010-11-12 05:07:45 +01:00
<H2>NOTES</H2>
<A NAME="lbAE">&nbsp;</A>
<H3>Overriding Environmental Variables</H3>
It is possible to set or override environmental variables and pass them
to the SlackBuilds when they are built from within
<B>sbopkg</B>.
This is already demonstrated in the following example line (and others
like it) in the
<I>sbopkg.conf</I>
file:
2010-11-12 05:07:45 +01:00
<DL COMPACT><DT><DD>
<P>
2010-11-12 05:07:45 +01:00
<PRE>
export TMP=${TMP:-/tmp/SBo}
2010-11-12 05:07:45 +01:00
</PRE>
</DL>
<P>
2010-11-12 05:07:45 +01:00
This sets
<B>TMP</B>
to
<I>/tmp/SBo</I>
for building SBo packages within
<B>sbopkg</B>
(which is currently the default for SBo SlackBuilds already).
Since this variable is exported, it could be changed for both
<B>sbopkg</B>
and for building SBo packages within
<B>sbopkg</B>.
For example, changing this line so it reads:
<DL COMPACT><DT><DD>
<P>
2010-11-12 05:07:45 +01:00
<PRE>
export TMP=${TMP:-/home/sbo/tmp}
2010-11-12 05:07:45 +01:00
</PRE>
</DL>
<P>
2010-11-12 05:07:45 +01:00
would then set
<B>TMP</B>
to
<I>/home/sbo/tmp</I>
for building SBo packages and still allow it to be overridden at runtime
by invoking
<B>sbopkg</B>
as
<DL COMPACT><DT><DD>
<P>
2010-11-12 05:07:45 +01:00
<PRE>
# export TMP=foo; sbopkg
</PRE>
</DL>
<P>
2010-11-12 05:07:45 +01:00
<B>OUTPUT</B>
can also be changed to save compiled packages in a location other than
the default of
<I>/tmp</I>.
<P>
2010-11-12 05:07:45 +01:00
You can also export variables in
<I>sbopkg.conf</I>
that are not used by
<B>sbopkg</B>
at all.
<A NAME="lbAF">&nbsp;</A>
2010-11-12 05:07:45 +01:00
<H3>About the ARCH Variable</H3>
2010-11-12 05:07:45 +01:00
You may be wondering why
<B>ARCH</B>
2010-11-12 05:07:45 +01:00
is not a configuration setting in the default
<I>sbopkg.conf</I>
2010-11-12 05:07:45 +01:00
file.
The reason is that it does not have to be.
If
<B>ARCH</B>
is not set,
<B>sbopkg</B>
does some checking (using the output of
<B>uname -m</B>)
to determine what the system's architecture is.
If the architecture is x86, x86_64, or arm*, then
<B>sbopkg</B>
automatically sets
<B>ARCH</B>
to i586, x86_64, or arm, respectively.
2010-11-12 05:07:45 +01:00
If
<B>ARCH</B>
is set,
<B>sbopkg</B>
will inherit that setting.
This means the user can add, for example,
<B>export ARCH=i686</B>
in their
<I>.bashrc</I>
or similar file, or the user can also execute something in the
root terminal like
<DL COMPACT><DT><DD>
<P>
2010-11-12 05:07:45 +01:00
<PRE>
# export ARCH=i686; sbopkg
</PRE>
</DL>
<P>
2010-11-12 05:07:45 +01:00
The user can also manually add it to their
<I>sbopkg.conf</I>
file if they wish.
Finally, if
<B>ARCH</B>
is not set by the user and
<B>sbopkg</B>
does not detect one of the previously mentioned architectures, then
<B>ARCH</B>
will be set by whatever is in the SlackBuilds.
Note that the SlackBuild may, in certain instances, discard or override
previous
<B>ARCH</B>
settings if this is required for the build.
<A NAME="lbAG">&nbsp;</A>
2010-11-12 05:07:45 +01:00
<H2>FILES</H2>
<DL COMPACT>
<DT><I>/etc/sbopkg/sbopkg.conf</I>
<DD>
File to specify configuration options.
2011-04-28 05:01:06 +02:00
<DT><I>~/.sbopkg.conf</I>
<DD>
File to override system configuration options.
<DT><I>/etc/sbopkg/renames.d/*.renames</I>
2010-11-12 05:07:45 +01:00
<DD>
2011-04-28 05:01:06 +02:00
Files that list software in the SBo repository that has been renamed.
2010-11-12 05:07:45 +01:00
See the
2011-04-28 05:01:06 +02:00
<I>README-renames</I>
2010-11-12 05:07:45 +01:00
document in the
<B>sbopkg</B>
documentation directory for more information.
2011-04-28 05:01:06 +02:00
<DT><I>/etc/sbopkg/repos.d/*.repo</I>
2010-11-12 05:07:45 +01:00
<DD>
2011-04-28 05:01:06 +02:00
Files for various types of
2010-11-12 05:07:45 +01:00
<B>sbopkg</B>
repositories.
See the
2011-04-28 05:01:06 +02:00
<I>README-repos</I>
2010-11-12 05:07:45 +01:00
document in the
<B>sbopkg</B>
documentation directory for more information.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHORS</H2>
Willy Sudiarto Raharjo
&lt;willysr@sbopkg.org&gt;
<P>
2010-11-12 05:07:45 +01:00
Chess Griffin
&lt;chess@chessgriffin.com&gt;
2010-11-12 05:07:45 +01:00
<P>
Mauro Giachero
&lt;mauro.giachero@gmail.com&gt;
2010-11-12 05:07:45 +01:00
<P>
slakmagik
&lt;slakmagik@gmail.com&gt;
2010-11-12 05:07:45 +01:00
<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>
2010-11-12 05:07:45 +01:00
<B><A HREF="http://localhost/cgi-bin/man/man2html?1+diff">diff</A></B>(1),
2011-02-05 05:34:55 +01:00
<B><A HREF="http://localhost/cgi-bin/man/man2html?1+mktemp">mktemp</A></B>(1),
2012-10-04 05:16:56 +02:00
<B><A HREF="http://localhost/cgi-bin/man/man2html?1+nice">nice</A></B>(1),
2010-11-12 05:07:45 +01:00
<B><A HREF="http://localhost/cgi-bin/man/man2html?1+rsync">rsync</A></B>(1),
2010-11-12 05:07:45 +01:00
<B><A HREF="http://localhost/cgi-bin/man/man2html?8+sbopkg">sbopkg</A></B>(8),
2010-11-12 05:07:45 +01:00
<B><A HREF="http://localhost/cgi-bin/man/man2html?1+uname">uname</A></B>(1),
2010-11-12 05:07:45 +01:00
<B><A HREF="http://localhost/cgi-bin/man/man2html?1+wget">wget</A></B>(1),
<I>/usr/doc/sbopkg-0.38.2/*</I>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">DESCRIPTION</A><DD>
2010-11-12 05:07:45 +01:00
<DT><A HREF="#lbAD">NOTES</A><DD>
<DL>
<DT><A HREF="#lbAE">Overriding Environmental Variables</A><DD>
<DT><A HREF="#lbAF">About the ARCH Variable</A><DD>
</DL>
<DT><A HREF="#lbAG">FILES</A><DD>
<DT><A HREF="#lbAH">AUTHORS</A><DD>
<DT><A HREF="#lbAI">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="http://github.com/hamano/man2html/">man2html</A>,
using the manual pages.<BR>
Time: 16:29:25 GMT, March 10, 2022
</BODY>
</HTML>