2007-07-06 16:54:18 -04:00
|
|
|
/////
|
|
|
|
vim:set ts=4 sw=4 syntax=asciidoc noet:
|
|
|
|
/////
|
2007-07-02 19:22:01 -04:00
|
|
|
makepkg.conf(5)
|
|
|
|
===============
|
|
|
|
|
|
|
|
Name
|
|
|
|
----
|
|
|
|
makepkg.conf - makepkg configuration file
|
|
|
|
|
|
|
|
|
2007-07-06 11:07:53 -04:00
|
|
|
Synopsis
|
|
|
|
--------
|
|
|
|
{sysconfdir}/makepkg.conf, ~/.makepkg.conf
|
|
|
|
|
|
|
|
|
2007-07-02 19:22:01 -04:00
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
Configuration options for makekpg are stored in makepkg.conf. This file is
|
|
|
|
sourced, so you can include any special compiler flags you wish to use. This is
|
|
|
|
helpful for building for different architectures, or with different
|
2007-07-16 12:57:02 -04:00
|
|
|
optimizations. However, only the variables described below are exported to the
|
|
|
|
build environment.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
NOTE: This does not guarantee that all package Makefiles will use your exported
|
|
|
|
variables. Some of them are non-standard.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
The default file is fairly well commented, so it may be easiest to simply
|
|
|
|
follow directions given there for customization.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
Options
|
|
|
|
-------
|
2007-07-16 12:57:02 -04:00
|
|
|
**DLAGENTS=(**\'protocol::/path/to/command [options]' ...**)**::
|
|
|
|
Sets the download agents used to fetch source files specified with a URL in
|
2007-12-29 01:24:15 -05:00
|
|
|
the linkman:PKGBUILD[5] file. Options can be specified for each command as
|
2007-07-16 12:57:02 -04:00
|
|
|
well; the download URL is placed on the end of the command. This is more
|
|
|
|
flexible than the former `FTPAGENT` variable, as any protocol can have a
|
|
|
|
download agent. Several examples are provided in the default makepkg.conf.
|
2008-02-10 11:56:47 -05:00
|
|
|
All instances of `%u` will be replaced with the download URL. If present,
|
|
|
|
instances of `%o` will be replaced with the local filename, plus a ``.part''
|
|
|
|
extension, which allows to do file resumes properly.
|
2007-07-16 12:57:02 -04:00
|
|
|
|
|
|
|
**CARCH=**"carch"::
|
|
|
|
Specifies your computer architecture; possible values include such things
|
|
|
|
as ``i686'', ``x86_64'', ``ppc'', etc. This should be automatically set on
|
|
|
|
installation.
|
|
|
|
|
|
|
|
**CHOST=**"chost"::
|
|
|
|
A string such as ``i686-pc-linux-gnu'', do not touch unless you know what
|
|
|
|
you are doing. This can be commented out by most users if desired.
|
|
|
|
|
|
|
|
**CFLAGS=**"cflags"::
|
2007-07-02 19:22:01 -04:00
|
|
|
Flags used for the C compiler. This is a key part to the use of makepkg.
|
2007-07-16 12:57:02 -04:00
|
|
|
Usually several options are specified, and the most common string resembles
|
|
|
|
something like this: ``-march=i686 -O2 -pipe''. Another useful option may
|
|
|
|
be `-mcpu` in place of `-march`. Read gcc(1) for more details on the wide
|
|
|
|
variety of compiler flags available.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**CXXFLAGS=**"cxxflags"::
|
2007-07-02 19:22:01 -04:00
|
|
|
Flags used for the C++ compiler; see CFLAGS for more info.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**MAKEFLAGS=**"makeflags"::
|
|
|
|
This is often used to set the number of jobs used, for example, `-j2`.
|
2007-07-02 19:22:01 -04:00
|
|
|
Other flags that make accepts can also be passed.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**BUILDENV=(**fakeroot !distcc color !ccache !xdelta**)**::
|
|
|
|
This array contains options that affect the build environment, the defaults
|
|
|
|
are shown here. All options should always be left in the array; to enable
|
|
|
|
or disable an option simply remove or place an ``!'' at the front of the
|
|
|
|
option. Each works as follows:
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*fakeroot*;;
|
|
|
|
Allow building packages as a non-root user. This is highly recommended.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*distcc*;;
|
|
|
|
Use the distributed C/C++/ObjC compiler to spread compilation among
|
|
|
|
multiple machines. If this is enabled, `DISTCC_HOSTS` must be specified
|
|
|
|
as well.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*color*;;
|
2007-07-02 19:22:01 -04:00
|
|
|
Colorize output messages, making output easier to read.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*ccache*;;
|
|
|
|
Use ccache to cache compilation by default. This allows for faster
|
|
|
|
compiles if you are continuously recompiling the same packages. It can
|
|
|
|
be disabled for individual packages by placing `!ccache` in the
|
|
|
|
PKGBUILD options array.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*xdelta*;;
|
|
|
|
Generate an xdelta binary patch from previous to current package. The
|
|
|
|
previous package must be available in the makepkg cache directory for
|
|
|
|
this to occur.
|
|
|
|
|
|
|
|
**DISTCC_HOSTS=**"host1 ..."::
|
2007-07-02 19:22:01 -04:00
|
|
|
If using DistCC, this is used to specify a space-delimited list of hosts
|
|
|
|
running in the DistCC cluster. In addition, you will want to modify your
|
2007-07-16 12:57:02 -04:00
|
|
|
`MAKEFLAGS`.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2008-06-16 00:10:04 -04:00
|
|
|
**OPTIONS=(**strip docs libtool emptydirs zipman**)**::
|
2008-03-12 19:25:38 -04:00
|
|
|
This array contains options that affect the default packaging. They are
|
2007-07-16 12:57:02 -04:00
|
|
|
equivalent to options that can be placed in the PKGBUILD; the defaults are
|
|
|
|
shown here. All options should always be left in the array; to enable or
|
|
|
|
disable an option simply remove or place an ``!'' at the front of the
|
|
|
|
option. Each works as follows:
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*strip*;;
|
|
|
|
Strip symbols from binaries and libraries. If you frequently use a
|
|
|
|
debugger on programs or libraries, it may be helpful to disable this
|
|
|
|
option.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*docs*;;
|
2007-07-02 19:22:01 -04:00
|
|
|
Save doc and info directories. If you wish to delete doc and info
|
2007-07-16 12:57:02 -04:00
|
|
|
directories, specify `!docs' in the array.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*libtool*;;
|
|
|
|
Leave libtool (.la) files in packages. Specify `!libtool' to remove
|
|
|
|
them.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*emptydirs*;;
|
2007-07-02 19:22:01 -04:00
|
|
|
Leave empty directories in packages.
|
|
|
|
|
2008-03-12 19:25:38 -04:00
|
|
|
*zipman*;;
|
|
|
|
Compress man pages with gzip.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**INTEGRITY_CHECK=(**check1 ...**)**::
|
2007-07-02 19:22:01 -04:00
|
|
|
File integrity checks to use. Multiple checks may be specified; this
|
|
|
|
affects both generation and checking. The current valid options are:
|
2007-07-16 12:57:02 -04:00
|
|
|
`md5`, `sha1`, `sha256`, `sha384`, and `sha512`.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**DOC_DIRS=(**usr/{,share/}{info,doc} ...**)**::
|
2007-07-02 19:22:01 -04:00
|
|
|
If "!docs" is specified in the OPTIONS array, this variable will
|
|
|
|
instruct makepkg where to look to remove docs. If you build packages
|
|
|
|
that are located in opt/, you may need to add the directory to this
|
2007-07-16 12:57:02 -04:00
|
|
|
array. *NOTE:* Do not add the leading slash to the directory name.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2008-07-20 01:57:03 -04:00
|
|
|
**STRIP_DIRS=(**bin lib sbin usr/{bin,lib} ...**)**::
|
|
|
|
If "strip" is specified in the OPTIONS array, this variable will
|
|
|
|
instruct makepkg where to look to for files to strip. If you build
|
|
|
|
packages that are located in opt/, you may need to add the directory
|
|
|
|
to this array. *NOTE:* Do not add the leading slash to the directory
|
|
|
|
name.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**PKGDEST=**"/path/to/folder"::
|
2007-07-02 19:22:01 -04:00
|
|
|
If this value is not set, packages will by default be placed in the
|
2007-12-29 01:24:15 -05:00
|
|
|
current directory (location of the linkman:PKGBUILD[5]). Many people
|
2007-07-02 19:22:01 -04:00
|
|
|
like to keep all their packages in one place so this option allows
|
2007-07-16 12:57:02 -04:00
|
|
|
this behavior. A common location is ``/home/packages''.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**SRCDEST=**"/path/to/folder"::
|
2007-07-02 19:22:01 -04:00
|
|
|
If this value is not set, downloaded source files will only be stored
|
|
|
|
in the current directory. Many people like to keep all source files in
|
|
|
|
a central location for easy cleanup, so this path can be set here.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**PACKAGER=**"John Doe <john@doe.com>"::
|
2007-07-02 19:22:01 -04:00
|
|
|
This value is used when querying a package to see who was the builder.
|
|
|
|
It is recommended you change this to your name and email address.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*BUILDSCRIPT*, *PKGEXT*, *SRCEXT*, *DB_COMPRESSION*, *DB_CHECKSUMS*::
|
|
|
|
Do not touch these unless you know what you are doing.
|
|
|
|
|
2007-07-02 19:22:01 -04:00
|
|
|
|
|
|
|
See Also
|
|
|
|
--------
|
2007-12-29 01:24:15 -05:00
|
|
|
linkman:makepkg[8], linkman:pacman[8], linkman:PKGBUILD[5]
|
2007-07-02 19:22:01 -04:00
|
|
|
|
|
|
|
include::footer.txt[]
|