pkgmk.conf
—
configuration file for pkgmk
This manual page describes the format of the
pkgmk.conf file. This file is a simple shell file
that configures pkgmk(8). The file
consists of a number of variable assignments of the form
“option=value”. Comments can be specified by putting a hash
(‘#
’) symbol as the first character on
the line.
If some option is not used (commented out or not included in the
configuration file at all) pkgmk(8)
will take a default action.
The configuration options are as follows:
- export
CFLAGS=⟨STRING⟩
- Set C compiler options. Unset by default.
- export
CXXFLAGS=⟨STRING⟩
- Set C++ compiler options. Unset by default.
- export
JOBS=⟨NUMBER⟩
- Set the number of commands to run simultaneously when building a package.
Unset by default.
- export
MAKEFLAGS=⟨STRING⟩
- Set make(1) options. Unset by
default.
- PKGMK_SOURCE_MIRRORS=⟨URI
...⟩
- Set mirrors to check and download source archives from. If the URI
contains space symbol, replace it by
‘
%20
’. Unset by default.
- PKGMK_SOURCE_DIR=⟨DIR⟩
- Set directory for downloaded source archives. By default, the current
directory where Pkgfile is located.
- PKGMK_PACKAGE_DIR=⟨DIR⟩
- Set directory for built packages. By default, the current directory where
Pkgfile is located.
- PKGMK_WORK_DIR=⟨DIR⟩
- Set directory for building packages. By default
“foo/work”, where foo is
the current directory where Pkgfile is
located.
- PKGMK_DOWNLOAD=⟨yes
| no⟩
- Download the source archives if necessary. By default is set to
“no”.
- PKGMK_DOWNLOAD_PROG=⟨aria2c
| curl | wget⟩
- Use specified program to download source archives. By default is set to
“curl”.
- PKGMK_ARIA2C_OPTS=⟨STRING⟩
- Additional options for aria2c(1),
which is used by pkgmk(8) to
download all files. Unset by default.
- PKGMK_CURL_OPTS=⟨STRING⟩
- Additional options for curl(1), which
is used by pkgmk(8) to download all
files. Unset by default.
- PKGMK_WGET_OPTS=⟨STRING⟩
- Additional options for wget(1), which
is used by pkgmk(8) to download all
files. Unset by default.
- Perform a footprint check of the built package. By default is set to
“no”.
- PKGMK_IGNORE_MD5SUM=⟨yes
| no⟩
- Perform a md5sum check of the source archives. By default is set to
“no”.
- PKGMK_IGNORE_NEW=⟨yes
| no⟩
- Ignore new files in a footprint mismatch. By default is set to
“no”.
- PKGMK_NO_STRIP=⟨yes
| no⟩
- If set to “no”,
pkgmk(8) will strip built binaries.
By default is set to “no”.
- PKGMK_COMPRESSION_MODE=⟨gz
| bz2 | xz | lz⟩
- Option to select the mode used to compress the packages. By default is set
to “gz”.
- PKGMK_ARCHIVE_FORMAT=⟨gnutar
| pax | ustar | v7⟩
- Option to select the specified format for the created archive of package.
By default is set to “gnutar”.
See
libarchive-formats(5)
for more information about currently-supported formats.
- /etc/pkgmk.conf
- Default location for the file described in this manual page.
#
# /etc/pkgmk.conf: pkgmk(8) configuration
#
# See pkgmk.conf(5) for more information.
#
export CFLAGS="-O2 -march=x86-64 -pipe -fdiagnostics-color=always"
export CXXFLAGS="$CFLAGS"
export JOBS=$(getconf _NPROCESSORS_ONLN)
export MAKEFLAGS="-j $JOBS"
case $PKGMK_ARCH in
"64"|"")
;;
"32")
export CFLAGS="$CFLAGS -m32"
export CXXFLAGS="$CXXFLAGS -m32"
export LDFLAGS="$LDFLAGS -m32"
export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
;;
*)
error "Unknown architecture selected! Exiting."
exit $E_GENERAL
;;
esac
# End of file.