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.
1 ##
2 ## release -- OpenPKG Release Utility
3 ## Copyright (c) 2000-2012 OpenPKG GmbH <http://openpkg.com/>
4 ##
5 ## This software is property of the OpenPKG GmbH, DE MUC HRB 160208.
6 ## All rights reserved. Licenses which grant limited permission to use,
7 ## copy, modify and distribute this software are available from the
8 ## OpenPKG GmbH.
9 ##
10 ## THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
24 =pod
26 =head1 NAME
28 B<openpkg release> - OpenPKG Release Utility
30 =head1 SYNOPSIS
32 B<openpkg release> [B<-F>|B<--fmt> I<format>]
34 =head1 DESCRIPTION
36 The B<openpkg release> command displays the OpenPKG release tag and
37 distribution URL. The release tag uniquely identifies an OpenPKG
38 distribution and the distribution URL is the location where the
39 distribution packages and indices are stored.
41 =head1 OPTIONS
43 =over 4
45 =item B<-F>, B<--fmt> I<format>
47 The output format specification. The argument I<format> is an arbitrary
48 string which can contain the special expansion constructs "C<%t>" for
49 expanding the release tag, "C<%u>" for expanding the distribution URL
50 and "C<\n>" for expanding an embedded newline character.
51 The instance UUID information is also availble by expanding
52 C<%r> to UUID_REGISTRY, C<%i> to UUID_INSTANCE, C<%p> to UUID_PLATFORM.
53 The default I<format> is "C<OpenPKG-%t %u>".
55 =item B<-r>, B<--release> I<release>
57 The package "C<Release>" header value to use for deriving the release
58 tag. The values in the F<@l_prefix@/etc/openpkg/release> file and the
59 "C<Release>" header of the bootstrap package B<openpkg> are ignored if
60 this option is used.
62 =back
64 =head1 FILES
66 =over 4
68 =item F<@l_prefix@/etc/openpkg/release>
70 This optional configuration file can be used to explicitly set values
71 for the OpenPKG release tag and distribution URLs. It consists of lines
72 with variable name/value pairs. The following configuration variables
73 are recognized:
75 =over 4
77 =item B<TAG=>I<tag>
79 The default I<tag> is automatically derived from the "C<Version>" header
80 of the OpenPKG bootstrap package B<openpkg>. One usually only sets this
81 explicitly to a value if a bootstrap package is used from a foreign
82 distribution version.
84 =item B<URL=>I<url>
86 The fully-qualified distribution URL based on either the "C<ftp>",
87 "C<http>" or "C<file>" URL schemes. If I<url> contains a trailing
88 "C</*>", this is expanded according to the I<tag> value of the B<TAG>
89 variable and the corresponding filesystem layout on C<download.openpkg.org>.
90 The default I<url> is "C<http://download.openpkg.org/stacks/*>".
92 =back
94 =back
96 =head1 EXAMPLE
98 $ openpkg release
99 OpenPKG-CURRENT http://download.openpkg.org/stacks/current/
101 $ openpkg release --fmt=%t
102 CURRENT
104 $ openpkg release --fmt=%u
105 http://download.openpkg.org/stacks/current/
107 $ openpkg release --fmt="OpenPKG %t is located at:\\n%u"
108 OpenPKG CURRENT is located at:
109 http://download.openpkg.org/stacks/current/
111 $ openpkg release --release=2.5.4 --fmt=%t
112 2.5-RELEASE
114 $ cat /openpkg/etc/openpkg/release
115 TAG=CURRENT
116 URL=http://download.example.com/stack/current/
118 =head1 SEE ALSO
120 uuid(8)
122 =head1 HISTORY
124 The B<openpkg release> command first appeared in B<OpenPKG 2-STABLE-20060622>.
126 =cut