These configuration options are set in slackrepo_SBo.conf
or ~/.slackreporc
.
For full details, see the manpage slackrepo.conf(5)
Default repo ID and configuration directory
REPO="SBo"
— the default repo ID. This determines the configuration fileslackrepo_ID.conf
from which other configuration variables will be read. This can be set only in~/.slackreporc
, but can be overridden by theREPO
environment variable or by the command line option--repo=ID
.CONFIGDIR="/etc/slackrepo"
— the configuration directory. This specifies an alternative directory to be used instead of/etc/slackrepo
to find the configuration files. This can be set only in~/.slackreporc
, but can be overridden by theCONFIGDIR
environment variable.
Repository filestore locations
The strings %REPO%
, %SLACKVER%
and %ARCH%
are replaced by the repository ID (e.g. SBo), the Slackware version (e.g. 14.1),
and the Slackware ARCH (e.g. i486).
SBREPO="/var/lib/slackrepo/%REPO%/slackbuilds"
— location of SlackBuilds repositorySRCREPO="/var/lib/slackrepo/%REPO%/source"
— location of downloaded source repositoryPKGREPO="/var/lib/slackrepo/%REPO%/packages/%SLACKVER%/%ARCH%"
— location of package repositoryPKGBACKUP="/var/lib/slackrepo/%REPO%/backups/%SLACKVER%/%ARCH%"
— location of backupsHINTDIR="/etc/slackrepo/%REPO%/hintfiles"
— location of HintfilesDEFAULT_HINTDIR="/etc/slackrepo/%REPO%/default_hintfiles/%SLACKVER%"
— location of default hintfilesLOGDIR="/var/log/slackrepo/%REPO%"
— location of log filesDATABASE="/var/lib/slackrepo/%REPO%/database_%REPO%.sqlite3"
— location of the databaseTMP="/tmp/%REPO%"
— directory for temporary files
If you want to run slackrepo as an ordinary user, you can use something like this instead, and save it to .slackreporc in your ordinary user's home directory:
SBREPO=~/slackrepo/%REPO%/slackbuilds SRCREPO=~/slackrepo/%REPO%/source PKGREPO=~/slackrepo/%REPO%/packages/%SLACKVER%/%ARCH% PKGBACKUP=~/slackrepo/%REPO%/backups/%SLACKVER%/%ARCH% HINTDIR=~/slackrepo/%REPO%/hintfiles DEFAULT_HINTDIR="/etc/slackrepo/%REPO%/default_hintfiles/%SLACKVER%" LOGDIR=~/slackrepo/%REPO%/logs DATABASE=~/slackrepo/%REPO%/database_%REPO%.sqlite3
If you use ~ you should NOT use quotes "...". You also need to create the file
/etc/sudoers.d/slackrepo
, replacing username
with your
username:
User_Alias SLACKREPOERS = username Defaults:SLACKREPOERS !env_reset,!env_delete SLACKREPOERS ALL=(ALL) NOPASSWD: /usr/libexec/slackrepo/*
Building packages
NUMJOBS=''
— number of make jobs to set in MAKEFLAGS (e.g.,NUMJOBS='-j2'
). Leave blank to have this automatically determined as one more than the number of processors on the build host.ARCH=''
— arch for built packages (normally determined from the build host)TAG='_SBo'
— tag for built packages (please change this if your packages will be publicly available, see SlackBuilds.org FAQ 20)PKGTYPE='tgz'
— package compression type. Valid values are: tgz, txz, tbz, tlz
Calling gen_repos_files.sh
USE_GENREPOS='0'
— whether to use gen_repos_files.sh (to enable it, change 0 to 1)
If you enable gen_repos_files.sh, you must set correct values for its
configuration options in /etc/slackrepo/slackrepo_SBo.conf
. However, if
you already use gen_repos_files.sh, it will still read your existing
~/.genreprc
file. For details, see the man page slackrepo.conf(5).