Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
michael@428 | 1 | .\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.22) |
michael@13 | 2 | .\" |
michael@13 | 3 | .\" Standard preamble: |
michael@13 | 4 | .\" ======================================================================== |
michael@13 | 5 | .de Sp \" Vertical space (when we can't use .PP) |
michael@13 | 6 | .if t .sp .5v |
michael@13 | 7 | .if n .sp |
michael@13 | 8 | .. |
michael@13 | 9 | .de Vb \" Begin verbatim text |
michael@13 | 10 | .ft CW |
michael@13 | 11 | .nf |
michael@13 | 12 | .ne \\$1 |
michael@13 | 13 | .. |
michael@13 | 14 | .de Ve \" End verbatim text |
michael@13 | 15 | .ft R |
michael@13 | 16 | .fi |
michael@13 | 17 | .. |
michael@13 | 18 | .\" Set up some character translations and predefined strings. \*(-- will |
michael@13 | 19 | .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left |
michael@428 | 20 | .\" double quote, and \*(R" will give a right double quote. \*(C+ will |
michael@428 | 21 | .\" give a nicer C++. Capital omega is used to do unbreakable dashes and |
michael@428 | 22 | .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, |
michael@428 | 23 | .\" nothing in troff, for use with C<>. |
michael@428 | 24 | .tr \(*W- |
michael@13 | 25 | .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' |
michael@13 | 26 | .ie n \{\ |
michael@13 | 27 | . ds -- \(*W- |
michael@13 | 28 | . ds PI pi |
michael@13 | 29 | . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch |
michael@13 | 30 | . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch |
michael@13 | 31 | . ds L" "" |
michael@13 | 32 | . ds R" "" |
michael@13 | 33 | . ds C` |
michael@13 | 34 | . ds C' |
michael@13 | 35 | 'br\} |
michael@13 | 36 | .el\{\ |
michael@13 | 37 | . ds -- \|\(em\| |
michael@13 | 38 | . ds PI \(*p |
michael@13 | 39 | . ds L" `` |
michael@13 | 40 | . ds R" '' |
michael@13 | 41 | 'br\} |
michael@13 | 42 | .\" |
michael@428 | 43 | .\" Escape single quotes in literal strings from groff's Unicode transform. |
michael@428 | 44 | .ie \n(.g .ds Aq \(aq |
michael@428 | 45 | .el .ds Aq ' |
michael@428 | 46 | .\" |
michael@13 | 47 | .\" If the F register is turned on, we'll generate index entries on stderr for |
michael@428 | 48 | .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index |
michael@13 | 49 | .\" entries marked with X<> in POD. Of course, you'll have to process the |
michael@13 | 50 | .\" output yourself in some meaningful fashion. |
michael@428 | 51 | .ie \nF \{\ |
michael@13 | 52 | . de IX |
michael@13 | 53 | . tm Index:\\$1\t\\n%\t"\\$2" |
michael@13 | 54 | .. |
michael@13 | 55 | . nr % 0 |
michael@13 | 56 | . rr F |
michael@13 | 57 | .\} |
michael@428 | 58 | .el \{\ |
michael@428 | 59 | . de IX |
michael@428 | 60 | .. |
michael@428 | 61 | .\} |
michael@13 | 62 | .\" |
michael@13 | 63 | .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). |
michael@13 | 64 | .\" Fear. Run. Save yourself. No user-serviceable parts. |
michael@13 | 65 | . \" fudge factors for nroff and troff |
michael@13 | 66 | .if n \{\ |
michael@13 | 67 | . ds #H 0 |
michael@13 | 68 | . ds #V .8m |
michael@13 | 69 | . ds #F .3m |
michael@13 | 70 | . ds #[ \f1 |
michael@13 | 71 | . ds #] \fP |
michael@13 | 72 | .\} |
michael@13 | 73 | .if t \{\ |
michael@13 | 74 | . ds #H ((1u-(\\\\n(.fu%2u))*.13m) |
michael@13 | 75 | . ds #V .6m |
michael@13 | 76 | . ds #F 0 |
michael@13 | 77 | . ds #[ \& |
michael@13 | 78 | . ds #] \& |
michael@13 | 79 | .\} |
michael@13 | 80 | . \" simple accents for nroff and troff |
michael@13 | 81 | .if n \{\ |
michael@13 | 82 | . ds ' \& |
michael@13 | 83 | . ds ` \& |
michael@13 | 84 | . ds ^ \& |
michael@13 | 85 | . ds , \& |
michael@13 | 86 | . ds ~ ~ |
michael@13 | 87 | . ds / |
michael@13 | 88 | .\} |
michael@13 | 89 | .if t \{\ |
michael@13 | 90 | . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" |
michael@13 | 91 | . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' |
michael@13 | 92 | . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' |
michael@13 | 93 | . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' |
michael@13 | 94 | . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' |
michael@13 | 95 | . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' |
michael@13 | 96 | .\} |
michael@13 | 97 | . \" troff and (daisy-wheel) nroff accents |
michael@13 | 98 | .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' |
michael@13 | 99 | .ds 8 \h'\*(#H'\(*b\h'-\*(#H' |
michael@13 | 100 | .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] |
michael@13 | 101 | .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' |
michael@13 | 102 | .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' |
michael@13 | 103 | .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] |
michael@13 | 104 | .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] |
michael@13 | 105 | .ds ae a\h'-(\w'a'u*4/10)'e |
michael@13 | 106 | .ds Ae A\h'-(\w'A'u*4/10)'E |
michael@13 | 107 | . \" corrections for vroff |
michael@13 | 108 | .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' |
michael@13 | 109 | .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' |
michael@13 | 110 | . \" for low resolution devices (crt and lpr) |
michael@13 | 111 | .if \n(.H>23 .if \n(.V>19 \ |
michael@13 | 112 | \{\ |
michael@13 | 113 | . ds : e |
michael@13 | 114 | . ds 8 ss |
michael@13 | 115 | . ds o a |
michael@13 | 116 | . ds d- d\h'-1'\(ga |
michael@13 | 117 | . ds D- D\h'-1'\(hy |
michael@13 | 118 | . ds th \o'bp' |
michael@13 | 119 | . ds Th \o'LP' |
michael@13 | 120 | . ds ae ae |
michael@13 | 121 | . ds Ae AE |
michael@13 | 122 | .\} |
michael@13 | 123 | .rm #[ #] #H #V #F C |
michael@13 | 124 | .\" ======================================================================== |
michael@13 | 125 | .\" |
michael@13 | 126 | .IX Title "RPMTOOL 8" |
michael@13 | 127 | .TH RPMTOOL 8 "OpenPKG" "RPMTOOL(8)" "OpenPKG" |
michael@428 | 128 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes |
michael@428 | 129 | .\" way too many mistakes in technical documents. |
michael@428 | 130 | .if n .ad l |
michael@428 | 131 | .nh |
michael@13 | 132 | .SH "NAME" |
michael@428 | 133 | rpmtool \- RPM Auxiliary Tool |
michael@13 | 134 | .SH "SYNOPSIS" |
michael@13 | 135 | .IX Header "SYNOPSIS" |
michael@13 | 136 | \&\fBrpmtool\fR |
michael@13 | 137 | \&\fIcommand\fR |
michael@13 | 138 | [\fIcommand-options\fR] |
michael@13 | 139 | .SH "DESCRIPTION" |
michael@13 | 140 | .IX Header "DESCRIPTION" |
michael@13 | 141 | This is an auxiliary tool to the RedHat Package Manager (\s-1RPM\s0). It |
michael@13 | 142 | provides additional functionality for use in \s-1RPM\s0 \fIspec\fR files while |
michael@13 | 143 | building packages. The following \fIcommand\fRs are available: |
michael@13 | 144 | .IP "\fBplatform\fR" 4 |
michael@13 | 145 | .IX Item "platform" |
michael@13 | 146 | This command outputs a unique platform id in the format |
michael@13 | 147 | \&\*(L"<architecture>\-<system><release>\*(R". For instance, the output on a |
michael@13 | 148 | FreeBSD platform can be \*(L"i386\-freebsd4.2\*(R", the output on a Linux |
michael@13 | 149 | platform can be \*(L"i686\-linux2.2.16\*(R", the output on a Solaris platform can |
michael@13 | 150 | be \*(L"sun4u\-sunos5.8\*(R", etc. |
michael@13 | 151 | .Sp |
michael@13 | 152 | Example: |
michael@13 | 153 | .Sp |
michael@13 | 154 | .Vb 5 |
michael@428 | 155 | \& case \`rpmtool platform\`; in |
michael@428 | 156 | \& *\-freebsd[34].* ) ... ;; |
michael@428 | 157 | \& *\-sunos5.[678] ) ... ;; |
michael@428 | 158 | \& *\-linux2.[24].* ) ... ;; |
michael@13 | 159 | \& esac |
michael@13 | 160 | .Ve |
michael@13 | 161 | .IP "\fBmflags\fR [\fB\-O\fR] \fItool\fR" 4 |
michael@13 | 162 | .IX Item "mflags [-O] tool" |
michael@13 | 163 | This command outputs additional flags for \fImake\fR\|(1) for |
michael@13 | 164 | use with the program \fItool\fR. It provides only standard flags which |
michael@13 | 165 | always can be used. In conjunction with \fB\-O\fR (optimization), it also provides |
michael@13 | 166 | reasonable job control for use on multi-processor platforms (for instance it |
michael@13 | 167 | outputs \*(L"\-j4\*(R" on an \s-1SMP\s0 system with 2 CPUs if \s-1GNU\s0 make or \s-1BSD\s0 pmake is used). |
michael@13 | 168 | .Sp |
michael@13 | 169 | Example: |
michael@13 | 170 | .Sp |
michael@13 | 171 | .Vb 1 |
michael@428 | 172 | \& make \`rpmtool mflags \-O make\` |
michael@13 | 173 | .Ve |
michael@13 | 174 | .IP "\fBcflags\fR [\fB\-O\fR] \fItool\fR" 4 |
michael@13 | 175 | .IX Item "cflags [-O] tool" |
michael@13 | 176 | This command outputs additional flags for \fIcc\fR\|(1) for use with the program |
michael@13 | 177 | \&\fItool\fR. It provides only standard flags which always can be used. |
michael@13 | 178 | conjunction with \fB\-O\fR it provides also optimization flags (for instance |
michael@13 | 179 | it outputs \*(L"\-O2 \-pipe\*(R" for \s-1GNU\s0 C/\*(C+ compiler). |
michael@13 | 180 | .Sp |
michael@13 | 181 | Example: |
michael@13 | 182 | .Sp |
michael@13 | 183 | .Vb 1 |
michael@428 | 184 | \& CC="$CC" CFLAGS=\`rpmtool cflags \-O $CC\` ./configure ... |
michael@13 | 185 | .Ve |
michael@428 | 186 | .ie n .IP "\fBcppflags\fR [\fB\-p\fR \fIprefix\fR] [[\*(C`+|\-\*(C'\fIsubdir\fR ...]" 4 |
michael@13 | 187 | .el .IP "\fBcppflags\fR [\fB\-p\fR \fIprefix\fR] [[\f(CW\*(C`+|\-\*(C'\fR\fIsubdir\fR ...]" 4 |
michael@13 | 188 | .IX Item "cppflags [-p prefix] [[+|-subdir ...]" |
michael@13 | 189 | This command output \fIcpp\fR\|(1) \f(CW\*(C`\-I\*(C'\fR options for the OpenPKG instance |
michael@13 | 190 | \&\fIprefix\fR. It optionally can prefix or suffix with one or more \fIsubdir\fR |
michael@13 | 191 | related options, too. If \fIsubdir\fR is prefixed with \f(CW\*(C`+\*(C'\fR (or not |
michael@13 | 192 | prefixed at all), the generated option is appended. If \fIsubdir\fR is |
michael@13 | 193 | prefixed with \f(CW\*(C`\-\*(C'\fR the generated option is prepended. |
michael@13 | 194 | .Sp |
michael@13 | 195 | Example: |
michael@13 | 196 | .Sp |
michael@13 | 197 | .Vb 1 |
michael@428 | 198 | \& rpmtool cppflags \-p /foo bar \-baz +quux |
michael@13 | 199 | .Ve |
michael@428 | 200 | .ie n .IP "\fBldflags\fR [\fB\-p\fR \fIprefix\fR] [[\*(C`+|\-\*(C'\fIsubdir\fR ...]" 4 |
michael@13 | 201 | .el .IP "\fBldflags\fR [\fB\-p\fR \fIprefix\fR] [[\f(CW\*(C`+|\-\*(C'\fR\fIsubdir\fR ...]" 4 |
michael@13 | 202 | .IX Item "ldflags [-p prefix] [[+|-subdir ...]" |
michael@13 | 203 | This command output \fIld\fR\|(1) \f(CW\*(C`\-L\*(C'\fR options for the OpenPKG instance |
michael@13 | 204 | \&\fIprefix\fR. It optionally can prefix or suffix with one or more \fIsubdir\fR |
michael@13 | 205 | related options, too. If \fIsubdir\fR is prefixed with \f(CW\*(C`+\*(C'\fR (or not |
michael@13 | 206 | prefixed at all), the generated option is appended. If \fIsubdir\fR is |
michael@13 | 207 | prefixed with \f(CW\*(C`\-\*(C'\fR the generated option is prepended. |
michael@13 | 208 | .Sp |
michael@13 | 209 | Example: |
michael@13 | 210 | .Sp |
michael@13 | 211 | .Vb 1 |
michael@428 | 212 | \& rpmtool ldflags \-p /foo bar \-baz +quux |
michael@13 | 213 | .Ve |
michael@13 | 214 | .IP "\fBfiles\fR [\fB\-v\fR] [\fB\-o\fR \fIoutfile\fR] [\fB\-r\fR \fIbuild-root\fR] [\fIentry\fR ...]" 4 |
michael@13 | 215 | .IX Item "files [-v] [-o outfile] [-r build-root] [entry ...]" |
michael@13 | 216 | This is a dynamic variant of the \s-1RPM\s0 \f(CW%files\fR section, i.e., it |
michael@13 | 217 | dynamically creates the contents of the \f(CW%files\fR section for use with |
michael@13 | 218 | the \f(CW\*(C`%files \-f\*(C'\fR command. For this the file list entries are read from |
michael@13 | 219 | the command line (or from stdin if no arguments are given or a single |
michael@13 | 220 | argument \f(CW\*(C`\-\*(C'\fR is given) and written to stdout (if no \fB\-o\fR option is |
michael@13 | 221 | given or its \fIoutfile\fR argument is \f(CW\*(C`\-\*(C'\fR) or to \fIoutfile\fR. |
michael@13 | 222 | .Sp |
michael@13 | 223 | The trick of this approach is to be able to use additional features in |
michael@13 | 224 | the file list which \s-1RPM\s0 does not provide. The following features are |
michael@13 | 225 | provided: |
michael@13 | 226 | .RS 4 |
michael@13 | 227 | .IP "\fBTrailing Tags\fR" 4 |
michael@13 | 228 | .IX Item "Trailing Tags" |
michael@13 | 229 | \&\s-1RPM\s0 requires that all tags (like \f(CW\*(C`%attr(...)\*(C'\fR or \f(CW%dir\fR) preceed the |
michael@13 | 230 | path in a file list entry. This sometimes leads to ugly and unreadable |
michael@428 | 231 | file lists, because all paths cannot be left-aligned. With \fIrpmtool\fR\|(8) |
michael@13 | 232 | tags in the input file list can be at leading and trailing positions. |
michael@13 | 233 | The output file list will nevertheless have all tags in leading |
michael@13 | 234 | positions for \s-1RPM\s0. |
michael@13 | 235 | .IP "\fBSyntactical Set Pattern\fR" 4 |
michael@13 | 236 | .IX Item "Syntactical Set Pattern" |
michael@13 | 237 | \&\s-1RPM\s0 supports simple wildcard patterns like \f(CW\*(C`/path/*\*(C'\fR or \f(CW\*(C`/path/[a\-z]\*(C'\fR, |
michael@13 | 238 | etc. Sometimes it is convenient, to also have (in addition to character |
michael@13 | 239 | sets) string sets like \f(CW\*(C`/path/{foo,bar,quux}\*(C'\fR. \fIrpmtool\fR\|(8) provides this |
michael@13 | 240 | by syntactically (without checking the filesystem) expanding those |
michael@13 | 241 | string sets. |
michael@13 | 242 | .IP "\fBOverriding Entries\fR" 4 |
michael@13 | 243 | .IX Item "Overriding Entries" |
michael@13 | 244 | This is the most important feature and the reason why \fIshtool\fR\|(1)'s |
michael@13 | 245 | \&\fBfiles\fR command was implemented. Although \s-1RPM\s0 allows one to specify a |
michael@13 | 246 | directory in a file list and then implicitly expands this recursively |
michael@13 | 247 | into its contents, it unfortunately does not allow one to later |
michael@13 | 248 | explcitly override particular entries (usually if an individual |
michael@13 | 249 | \&\f(CW\*(C`%attr(...)\*(C'\fR tag is required). \fIrpmtool\fR\|(8) now supports overriding |
michael@13 | 250 | entries, i.e., if a path occurs multiple times, only the last occurance |
michael@13 | 251 | is kept. |
michael@13 | 252 | .IP "\fBNegation Tag\fR" 4 |
michael@13 | 253 | .IX Item "Negation Tag" |
michael@13 | 254 | This provides an additional tag \f(CW%not\fR which can be used to explicitly |
michael@13 | 255 | exclude a previously implicitly added entry. |
michael@13 | 256 | .RE |
michael@13 | 257 | .RS 4 |
michael@13 | 258 | .Sp |
michael@13 | 259 | Example: |
michael@13 | 260 | .Sp |
michael@13 | 261 | .Vb 8 |
michael@13 | 262 | \& %install |
michael@13 | 263 | \& : |
michael@428 | 264 | \& rpmtool files \-o files \-r$RPM_BUILD_ROOT \e |
michael@428 | 265 | \& \*(Aq%defattr(\-,foo,foo)\*(Aq \e |
michael@428 | 266 | \& \*(Aq%{prefix}\*(Aq \e |
michael@428 | 267 | \& \*(Aq%attr(1755,root,foo) %{prefix}/bin/bar\*(Aq \e |
michael@428 | 268 | \& \*(Aq%not %dir {%{prefix},%{prefix}/*,%{prefix}/man/*}\*(Aq \e |
michael@428 | 269 | \& \*(Aq%not %{prefix}/info/dir\*(Aq |
michael@428 | 270 | \& |
michael@428 | 271 | \& %files \-f files |
michael@13 | 272 | .Ve |
michael@13 | 273 | .RE |
michael@13 | 274 | .IP "\fBmsg\fR [\fB\-b\fR]" 4 |
michael@13 | 275 | .IX Item "msg [-b]" |
michael@13 | 276 | This displays the contents of \fIstdin\fR as a boxed message. If option |
michael@13 | 277 | \&\fB\-b\fR is given it additionally beeps once before displaying the box. |
michael@13 | 278 | .SH "HISTORY" |
michael@13 | 279 | .IX Header "HISTORY" |
michael@13 | 280 | This tool was created in November 2000 for use in OpenPKG, the |
michael@13 | 281 | cross-platform RPM-based Unix software packaging facility. |
michael@13 | 282 | .SH "AUTHOR" |
michael@13 | 283 | .IX Header "AUTHOR" |
michael@13 | 284 | .Vb 3 |
michael@13 | 285 | \& Ralf S. Engelschall |
michael@13 | 286 | \& rse@engelschall.com |
michael@13 | 287 | \& www.engelschall.com |
michael@13 | 288 | .Ve |