mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 19:50:25 +03:00
396 lines
11 KiB
HTML
396 lines
11 KiB
HTML
Content-type: text/html
|
|
|
|
<HTML><HEAD><TITLE>Manpage of SBOPKG.CONF</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>SBOPKG.CONF</H1>
|
|
Section: (5)<BR>Updated: June 2009<BR><A HREF="#index">Index</A>
|
|
<A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
<B>sbopkg.conf</B>
|
|
|
|
- Configuration file for sbopkg
|
|
<P>
|
|
<A NAME="lbAC"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
The sbopkg.conf file contains configuration settings for
|
|
<B>sbopkg</B>
|
|
|
|
(8), a tool for interacting with the SlackBuilds.org ("SBo")
|
|
repository, a collection of third-party SlackBuild scripts to build
|
|
Slackware packages. A sample file is provided at
|
|
/etc/sbopkg/sbopkg.conf.new. Also, please see a note below about
|
|
$ARCH.
|
|
<P>
|
|
The different configuration options are:
|
|
<P>
|
|
<DL COMPACT>
|
|
<DT><B>REPO_NAME</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option allows the user to choose the repository to use.
|
|
The default options are SBo, SB64 and local.
|
|
The 'local' choice corresponds to a user-maintained repository whose
|
|
structure must be the same as the one used by SlackBuilds.org. NOTE:
|
|
all of the REPO_* variables are affected by the repository files
|
|
maintained in /etc/sbopkg/repos.d. Please see the README-repos.d
|
|
document in the sbopkg /doc directory.
|
|
<P>
|
|
The default value of REPO_NAME is:
|
|
<BR>
|
|
|
|
REPO_NAME=${REPO_NAME:-SBo}.
|
|
<P>
|
|
<DT><B>REPO_BRANCH</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option allows the user to set the default active repository
|
|
branch. The current options are 11.0, 12.0, 12.1, 12.2, and 13.0 for
|
|
the SBo repository, master for the SB64 repositort and local for the
|
|
local repository.
|
|
<P>
|
|
The default value of REPO_BRANCH is:
|
|
<BR>
|
|
|
|
REPO_BRANCH=${REPO_BRANCH:-13.0}.
|
|
<P>
|
|
<DT><B>REPO_ROOT</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
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 less than 50MB.
|
|
<P>
|
|
The default value of REPO_ROOT is:
|
|
<BR>
|
|
|
|
REPO_ROOT=${REPO_ROOT:-/var/lib/sbopkg}.
|
|
<P>
|
|
<DT><B>SRCDIR</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option contains the location of the cache directory where
|
|
source downloads will be saved.
|
|
<P>
|
|
The default value of SRCDIR is:
|
|
<BR>
|
|
|
|
SRCDIR=${SRCDIR:-/var/cache/sbopkg}.
|
|
<P>
|
|
<DT><B>SBOPKGTMP</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option sets the default directory where certain working
|
|
files are saved on a temporary basis.
|
|
<P>
|
|
The default value of SBOPKGTMP is:
|
|
<BR>
|
|
|
|
SBOPKGTMP=${SBOPKGTMP:-/tmp/sbopkg}.
|
|
<P>
|
|
<DT><B>TMP</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option sets the default directory where built packages should be stored.
|
|
TMP must be exported as it is used by the SlackBuilds. Also note that the
|
|
default value of TMP is the same as in the SBo SlackBuild scripts.
|
|
<P>
|
|
The default value of TMP is:
|
|
<BR>
|
|
|
|
export TMP=${TMP:-/tmp/SBo}.
|
|
<P>
|
|
<DT><B>OUTPUT</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option sets the default directory where compiled packages are
|
|
saved. OUTPUT must be exported as it is also used by the SBo
|
|
SlackBuilds. Also note that the default value of OUTPUT is therefore
|
|
the same as in the SBo SlackBuilds.
|
|
<P>
|
|
The default value of OUTPUT is:
|
|
<BR>
|
|
|
|
export OUTPUT=${OUTPUT:-/tmp}.
|
|
<P>
|
|
<DT><B>QUEUEDIR</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option defines the directory under which saved queue files will
|
|
be kept.
|
|
<P>
|
|
The default value of QUEUEDIR is:
|
|
<BR>
|
|
|
|
QUEUEDIR=${QUEUEDIR:-/var/lib/sbopkg/queues}.
|
|
<P>
|
|
<DT><B>KEEPLOG</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option should be set to YES or NO. This option allows the user
|
|
to choose whether to keep a permanent log of packages that are built
|
|
with sbopkg in order to go back and review the build, and any errors,
|
|
after exiting sbopkg. If set to YES, this permanent log is saved at
|
|
$LOGDIR/sbopkg-build-log.
|
|
<P>
|
|
The default value of KEEPLOG is: YES.
|
|
<P>
|
|
<DT><B>LOGDIR</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option sets the location for the sbopkg permanent log if KEEPLOG
|
|
is set to YES (see previous paragraph).
|
|
<P>
|
|
The default value of LOGDIR is:
|
|
<BR>
|
|
|
|
LOGDIR=${LOGDIR:-/var/log/sbopkg}.
|
|
<P>
|
|
<DT><B>CLEANUP</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option should be set to YES or NO. When set to YES, the source
|
|
files and the various residuals from the process of building a package
|
|
are deleted right after the build.
|
|
A side effect of setting CLEANUP to YES is that the TMP setting got
|
|
from the environment or from the configuration files is ignored.
|
|
<P>
|
|
The default value of CLEANUP is: NO.
|
|
<P>
|
|
<DT><B>ALLOW_MULTI</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
When set to YES, this option allows the user to run multiple instances
|
|
of sbopkg.
|
|
<P>
|
|
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 working with ALLOW_MULTI=YES as an EXPERIMENTAL
|
|
UNSUPPORTED feature. If you encounter problems, please try to make sure
|
|
these aren't caused by yourself doing improper things.
|
|
<P>
|
|
For reference, these are some of the things you shouldn't do with this
|
|
option enabled:
|
|
<DL COMPACT><DT><DD>
|
|
<DL COMPACT>
|
|
<DT>[bu]<DD>
|
|
run an ALLOW_MULTI=NO instance together with one or more having
|
|
ALLOW_MULTI=YES
|
|
<DT>[bu]<DD>
|
|
sync a repository when another instance is using it
|
|
<DT>[bu]<DD>
|
|
change the branch of a git repository when another instance is using it
|
|
(you can do this with rsync -- i.e. SlackBuild.org -- repos)
|
|
<DT>[bu]<DD>
|
|
simultaneously build or install the same package from different instances
|
|
<DT>[bu]<DD>
|
|
save a queue file while using it from another instance
|
|
</DL>
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT><DD>
|
|
There can be more unsafe situations we haven't thought about. Take care.
|
|
</DL>
|
|
|
|
<P>
|
|
<DT><B>DEBUG</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option should be set to 0, 1, or 2. DEBUG sets the default
|
|
debugging level for the update list feature of sbopkg. When DEBUG is
|
|
set to 0, then only potential updated (or downgraded) packages are listed.
|
|
When DEBUG is set to 1, then potential updates plus packages not in the
|
|
repo and packages that are newer than the repo are listed. When DEBUG is
|
|
set to 2, all non-updated packages are also listed. Changing DEBUG to 1 or
|
|
2 may be helpful if it appears the updatelist might be missing an update.
|
|
<P>
|
|
The default value of DEBUG is: 0.
|
|
<P>
|
|
<DT><B>RSYNCFLAGS</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
Rsync is used by sbopkg to mirror the SlackBuilds.org repository.
|
|
This option allows the user to manually tweak the rsync flags
|
|
(options) that are used by sbopkg. Users are cautioned against making
|
|
any changes to the default values since new flags may or may not work.
|
|
Note: the rsync command in sbopkg already uses the --archive,
|
|
--delete, --no-owner, and --exclude flags, so there is no need to add
|
|
them to the RSYNCFLAGS option. Changing these default options is not
|
|
recommended.
|
|
<P>
|
|
The default value of RSYNCFLAGS is: "--timeout=10 --verbose".
|
|
<P>
|
|
<DT><B>WGETFLAGS</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
Wget is used by sbopkg to download the source files for package
|
|
building. This option allows the user to manually tweak the wget
|
|
flags (options) that are used by sbopkg. Users are cautioned against
|
|
making any changes to the default values since new flags may or may
|
|
not work. Note: the wget command in sbopkg already uses the -O flag,
|
|
so there is no need to add that to the WGETFLAGS option. Changing
|
|
these default options is not recommended.
|
|
<P>
|
|
The default value of WGETFLAGS is:
|
|
<BR>
|
|
|
|
"--continue --progress-bar --timeout=15 --tries=5".
|
|
<P>
|
|
<DT><B>DIFF</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option allows the user to set which diff program to use when
|
|
sbopkg displays differences between edited files.
|
|
<P>
|
|
The default value of DIFF is:
|
|
<BR>
|
|
|
|
DIFF=${DIFF:-diff}.
|
|
<P>
|
|
<DT><B>DIFFOPTS</B>
|
|
|
|
<DD>
|
|
<BR>
|
|
|
|
This option allows the user to set which options are used by the $DIFF
|
|
program when sbopkg displays differences between edited files.
|
|
<P>
|
|
The default value of DIFFOPTS is:
|
|
<P>
|
|
DIFFOPTS=${DIFFOPTS:--u}
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>OVERRIDING ENVIRONMENTAL VARIABLES</H2>
|
|
|
|
It is possible to set or override environmental variables and pass
|
|
them to the SlackBuild scripts when they are built from within sbopkg.
|
|
This is already demonstrated in the following line in the sbopkg.conf
|
|
file:
|
|
<P>
|
|
export TMP=${TMP:-/tmp/SBo}
|
|
<P>
|
|
This sets $TMP to /tmp/SBo for building SBo packages within sbopkg (which is
|
|
currently the default for SBo SlackBuilds already). Since this variable is
|
|
exported, it could be changed for both sbopkg and for building SBo
|
|
packages within sbopkg. For example, changing this line so it reads:
|
|
<P>
|
|
export TMP=${TMP:-/home/sbo/tmp}
|
|
<P>
|
|
would then set $TMP to /home/sbo/tmp for building SBo
|
|
packages. OUTPUT can also be changed to save compiled packages in a
|
|
location other than the default of /tmp.
|
|
<P>
|
|
Please note that if the CLEANUP variable is set to YES, the TMP setting
|
|
is ignored.
|
|
<P>
|
|
You can also export variables in sbopkg.conf that are not used by
|
|
sbopkg at all.
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>ABOUT $ARCH</H2>
|
|
|
|
You may be wondering why $ARCH is not a configuration setting in the
|
|
sbopkg.conf file. The reason is that it does not have to be. First, sbopkg
|
|
does some checking (using 'uname -m') to determine what the system's
|
|
architecture is. If the architecture is x86_64, then sbopkg automatically
|
|
sets ARCH=x86_64. If the architecture is not x86_64, then sbopkg will inherit
|
|
any $ARCH settings in the environment. This means, the user can add, for
|
|
example, 'export ARCH=i686' in their .bashrc or similar file, or the user can
|
|
also execute something in the root terminal like 'export ARCH=i686 && sbopkg'.
|
|
The user can also manually add it to their sbopkg.conf file if they wish.
|
|
Finally, if $ARCH is not set by the user and sbopkg does not detect an x86_64
|
|
system, then $ARCH will default to whatever $ARCH is set to in the SlackBuild
|
|
scripts.
|
|
<P>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<B>/etc/sbopkg/sbopkg.conf</B>
|
|
|
|
- File to specify configuration options.
|
|
<P>
|
|
<B>/etc/sbopkg/renames.d/50-default</B>
|
|
|
|
- Default file that lists software in SBo repository that has been renamed.
|
|
See the README-renames.d document in the sbopkg doc/ directory for more
|
|
information.
|
|
<P>
|
|
<B>/etc/sbopkg/repos.d/{40-sbo.repo,50-sb64.repo,60-local.repo}</B>
|
|
|
|
- Three default files for various types of sbopkg repositories. See the
|
|
README-repos.d document in the sbopkg doc/ directory for more information.
|
|
<P>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="http://localhost/cgi-bin/man/man2html?8+sbopkg">sbopkg</A></B>(8)
|
|
|
|
<B>doc/README</B>
|
|
|
|
<B>doc/README-queuefiles</B>
|
|
|
|
<B>doc/README-renames.d</B>
|
|
|
|
<B>doc/README-repos.d</B>
|
|
|
|
<B>doc/queuefiles/*</B>
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT><A HREF="#lbAB">NAME</A><DD>
|
|
<DT><A HREF="#lbAC">DESCRIPTION</A><DD>
|
|
<DT><A HREF="#lbAD">OVERRIDING ENVIRONMENTAL VARIABLES</A><DD>
|
|
<DT><A HREF="#lbAE">ABOUT $ARCH</A><DD>
|
|
<DT><A HREF="#lbAF">FILES</A><DD>
|
|
<DT><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 03:24:28 GMT, February 01, 2010
|
|
</BODY>
|
|
</HTML>
|