mirror of
https://github.com/sbopkg/sbopkg
synced 2024-12-27 09:58:28 +01:00
minor tweak to -h output; revise sbopkg.conf.5 man page to require OUTPUT as a defined configuration variable; revise sbopkg.8 man page to explain new -i switch.
This commit is contained in:
parent
b1052bb553
commit
566f522ce3
4 changed files with 37 additions and 20 deletions
|
@ -12,6 +12,7 @@ SLACKVER=12.2
|
|||
LOCALREPO=${LOCALREPO:-/home/sbo}
|
||||
SRCDIR=${SRCDIR:-/var/cache/sbopkg}
|
||||
export TMP=${TMP:-/tmp/SBo}
|
||||
export OUTPUT=${OUTPUT:-/tmp}
|
||||
KEEPLOG=YES
|
||||
TERMBUILD=NO
|
||||
|
||||
|
@ -24,7 +25,3 @@ TERMBUILD=NO
|
|||
# change these default values.
|
||||
RSYNCFLAGS="--verbose --timeout=10"
|
||||
WGETFLAGS="--continue --progress=bar --timeout=10 --tries=5"
|
||||
|
||||
# Optional - the $OUTPUT variable is used by SlackBuild scripts only
|
||||
# and can be used to change the output location of compiled packages.
|
||||
#export OUTPUT=${OUTPUT:-/tmp}
|
||||
|
|
|
@ -1471,7 +1471,7 @@ if found,"
|
|||
echo " mirror (current choices are 11.0, 12.0, \
|
||||
12.1, and 12.2)"
|
||||
echo
|
||||
echo "Note: multiple arguments to -b, -q, and -s must be \
|
||||
echo "Note: multiple arguments to -b, -i, -q, and -s must be \
|
||||
quoted (\"pkg1 pkg2\")"
|
||||
exit
|
||||
;;
|
||||
|
|
|
@ -53,12 +53,23 @@ export SRCDIR=${SRCDIR:-/var/cache/sbopkg}.
|
|||
.TP 5
|
||||
.B TMP
|
||||
.br
|
||||
This options sets the default directory where certain working
|
||||
This option sets the default directory where certain working
|
||||
files are saved on a temporary basis. TMP must be exported as it is
|
||||
also used by the SBo SlackBuilds.
|
||||
also used by the SBo SlackBuilds. Also note that the default value of
|
||||
TMP is therefore the same as in the SBo SlackBuild scripts.
|
||||
|
||||
The default value of TMP is: export TMP=${TMP:-/tmp/SBo}.
|
||||
|
||||
.TP 5
|
||||
.B OUTPUT
|
||||
.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.
|
||||
|
||||
The default value of OUTPUT is: export OUTPUT=${OUTPUT:-/tmp}.
|
||||
|
||||
.TP 5
|
||||
.B KEEPLOG
|
||||
.br
|
||||
|
@ -131,19 +142,11 @@ packages within sbopkg. For example, changing this line so it reads:
|
|||
export TMP=${TMP:-/home/sbo/tmp}
|
||||
|
||||
would then set $TMP to /home/sbo/tmp for sbopkg and for building SBo
|
||||
packages.
|
||||
packages. OUTPUT can also be changed to save compiled packages in a
|
||||
location other than the default of /tmp.
|
||||
|
||||
You can also export variables in sbopkg.conf that are not used by
|
||||
sbopkg at all, as demonstrated by the commented out line towards the
|
||||
bottom of sbopkg.conf:
|
||||
|
||||
export OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
$OUTPUT is only used in the SBo SlackBuild scripts. The default
|
||||
setting of /tmp is the same that is currently used in the SBo
|
||||
SlackBuild scripts. By uncommenting the $OUTPUT line in sbopkg.conf,
|
||||
you can export $OUTPUT for all SlackBuild packages built from within
|
||||
sbopkg. For example, you could change this to /home/sbo/packages.
|
||||
sbopkg at all.
|
||||
|
||||
As you can probably see, by making a few changes to these variables,
|
||||
you could have a completely separated sandbox for SBo purposes -- the
|
||||
|
|
|
@ -40,8 +40,10 @@ or the locally-edited one, if present. If using the dialog interface,
|
|||
and if sbopkg finds a built package for a particular piece of software
|
||||
in the OUTPUT directory, then sbopkg will automatically add a new menu
|
||||
entry allowing the user to install the package if he so choosed.
|
||||
Finally, if KEEPLOG is set to YES in the sbopkg.conf file then a
|
||||
permanent log of the build process is saved in /tmp/sbopkg-build-log.
|
||||
Alternatively, if sbopkg is run from the command line, the user can
|
||||
choose to build or build and install packages automatically. Finally,
|
||||
if KEEPLOG is set to YES in the sbopkg.conf file then a permanent log
|
||||
of the build process is saved in /tmp/sbopkg-build-log.
|
||||
|
||||
Alternatively, sbopkg can be run from the command line without using
|
||||
the dialog interface. Executing "sbopkg -h" will display a list of
|
||||
|
@ -89,6 +91,21 @@ file.
|
|||
.B -h
|
||||
Display the help.
|
||||
|
||||
.TP 5
|
||||
.B -i PACKAGE(s)
|
||||
Search for and build and then install PACKAGE(s) from the local SBo
|
||||
repository. If more than one package is specified, they must be in
|
||||
quotes, and the packages will be built and then installed in the
|
||||
listed order. For example:
|
||||
|
||||
#sbopkg -b "foo bar"
|
||||
|
||||
will build and install foo and then build and install bar. By
|
||||
carefully considering the order of the packages listed, the user may
|
||||
be able to build and install dependencies in the right order before
|
||||
the final application is built and installed. Of course, given the
|
||||
nature of dependencies, this may not always be possible.
|
||||
|
||||
.TP 5
|
||||
.B -l
|
||||
Display the SBo ChangeLog.txt and quit.
|
||||
|
|
Loading…
Reference in a new issue