-
Notifications
You must be signed in to change notification settings - Fork 0
/
pkgmk.conf.5
168 lines (165 loc) · 4.24 KB
/
pkgmk.conf.5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
.\" pkgmk.conf(5) manual page
.\" See COPYING and COPYRIGHT files for corresponding information.
.Dd September 6, 2023
.Dt PKGMK.CONF 5
.Os
.\" ==================================================================
.Sh NAME
.Nm pkgmk.conf
.Nd configuration file for pkgmk
.\" ==================================================================
.Sh SYNOPSIS
.Nm /etc/pkgmk.conf
.\" ==================================================================
.Sh DESCRIPTION
This manual page describes the format of the
.Pa pkgmk.conf
file.
This file is a simple shell file that configures
.Xr pkgmk 8 .
The file consists of a number of variable assignments of the form
.Dq option=value .
Comments can be specified by putting a hash
.Pq Ql #
symbol as the first character on the line.
.Pp
If some option is not used (commented out or not included in the
configuration file at all)
.Xr pkgmk 8
will take a default action.
.Pp
The configuration options are as follows:
.Bl -tag -width Ds
.It Sy export CFLAGS Ns = Ns Aq STRING
Set C compiler options.
Unset by default.
.It Sy export CXXFLAGS Ns = Ns Aq STRING
Set C++ compiler options.
Unset by default.
.It Sy export JOBS Ns = Ns Aq NUMBER
Set the number of commands to run simultaneously when building a
package.
Unset by default.
.It Sy export MAKEFLAGS Ns = Ns Aq STRING
Set
.Xr make 1
options.
Unset by default.
.It Sy PKGMK_SOURCE_MIRRORS Ns = Ns Aq URI ...
Set mirrors to check and download source archives from.
If the URI contains space symbol, replace it by
.Ql %20 .
Unset by default.
.It Sy PKGMK_SOURCE_DIR Ns = Ns Aq DIR
Set directory for downloaded source archives.
By default, the current directory where
.Pa Pkgfile
is located.
.It Sy PKGMK_PACKAGE_DIR Ns = Ns Aq DIR
Set directory for built packages.
By default, the current directory where
.Pa Pkgfile
is located.
.It Sy PKGMK_WORK_DIR Ns = Ns Aq DIR
Set directory for building packages.
By default
.Dq Sy foo Ns /work ,
where
.Sy foo
is the current directory where
.Pa Pkgfile
is located.
.It Sy PKGMK_DOWNLOAD Ns = Ns Aq yes | no
Download the source archives if necessary.
By default is set to
.Dq no .
.It Sy PKGMK_DOWNLOAD_PROG Ns = Ns Aq aria2c | curl | wget
Use specified program to download source archives.
By default is set to
.Dq curl .
.It Sy PKGMK_ARIA2C_OPTS Ns = Ns Aq STRING
Additional options for
.Xr aria2c 1 ,
which is used by
.Xr pkgmk 8
to download all files.
Unset by default.
.It Sy PKGMK_CURL_OPTS Ns = Ns Aq STRING
Additional options for
.Xr curl 1 ,
which is used by
.Xr pkgmk 8
to download all files.
Unset by default.
.It Sy PKGMK_WGET_OPTS Ns = Ns Aq STRING
Additional options for
.Xr wget 1 ,
which is used by
.Xr pkgmk 8
to download all files.
Unset by default.
.It Sy PKGMK_IGNORE_FOOTPRINT Ns = Ns Aq yes | no
Perform a footprint check of the built package.
By default is set to
.Dq no .
.It Sy PKGMK_IGNORE_MD5SUM Ns = Ns Aq yes | no
Perform a md5sum check of the source archives.
By default is set to
.Dq no .
.It Sy PKGMK_IGNORE_NEW Ns = Ns Aq yes | no
Ignore new files in a footprint mismatch.
By default is set to
.Dq no .
.It Sy PKGMK_NO_STRIP Ns = Ns Aq yes | no
If set to
.Dq no ,
.Xr pkgmk 8
will strip built binaries.
By default is set to
.Dq no .
.It Sy PKGMK_COMPRESSION_MODE Ns = Ns Aq gz | bz2 | xz | lz
Option to select the mode used to compress the packages.
By default is set to
.Dq gz .
.El
.\" ==================================================================
.Sh FILES
.Bl -tag -width Ds
.It Pa /etc/pkgmk.conf
Configuration file for
.Xr pkgmk 8 .
.El
.\" ==================================================================
.Sh EXAMPLES
.Bd -literal
#
# /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"
;;
*)
echo "Unknown architecture selected! Exiting."
exit 1
;;
esac
# End of file.
.Ed
.\" ==================================================================
.Sh SEE ALSO
.Xr Pkgfile 5 ,
.Xr pkgmk 8
.\" vim: cc=72 tw=70
.\" End of file.