Wed, 21 Sep 2011 13:51:49 +0200
Update version and integrate setuid logic from upstream package vendor.
1 ##
2 ## release -- OpenPKG Release Utility
3 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
5 ##
6 ## Permission to use, copy, modify, and distribute this software for
7 ## any purpose with or without fee is hereby granted, provided that
8 ## the above copyright notice and this permission notice appear in all
9 ## copies.
10 ##
11 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
12 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
13 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
14 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
15 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
16 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
17 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
18 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
19 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
20 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
21 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22 ## SUCH DAMAGE.
23 ##
25 =pod
27 =head1 NAME
29 B<openpkg release> - OpenPKG Release Utility
31 =head1 SYNOPSIS
33 B<openpkg release> [B<-F>|B<--fmt> I<format>]
35 =head1 DESCRIPTION
37 The B<openpkg release> command displays the OpenPKG release tag and
38 distribution URL. The release tag uniquely identifies an OpenPKG
39 distribution and the distribution URL is the location where the
40 distribution packages and indices are stored.
42 =head1 OPTIONS
44 =over 4
46 =item B<-F>, B<--fmt> I<format>
48 The output format specification. The argument I<format> is an arbitrary
49 string which can contain the special expansion constructs "C<%t>" for
50 expanding the release tag, "C<%u>" for expanding the distribution URL
51 and "C<\n>" for expanding an embedded newline character.
52 The instance UUID information is also availble by expanding
53 C<%r> to UUID_REGISTRY, C<%i> to UUID_INSTANCE, C<%p> to UUID_PLATFORM.
54 The default I<format> is "C<OpenPKG-%t %u>".
56 =item B<-r>, B<--release> I<release>
58 The package "C<Release>" header value to use for deriving the release
59 tag. The values in the F<@l_prefix@/etc/openpkg/release> file and the
60 "C<Release>" header of the bootstrap package B<openpkg> are ignored if
61 this option is used.
63 =back
65 =head1 FILES
67 =over 4
69 =item F<@l_prefix@/etc/openpkg/release>
71 This optional configuration file can be used to explicitly set values
72 for the OpenPKG release tag and distribution URLs. It consists of lines
73 with variable name/value pairs. The following configuration variables
74 are recognized:
76 =over 4
78 =item B<TAG=>I<tag>
80 The default I<tag> is automatically derived from the "C<Version>" header
81 of the OpenPKG bootstrap package B<openpkg>. One usually only sets this
82 explicitly to a value if a bootstrap package is used from a foreign
83 distribution version.
85 =item B<URL=>I<url>
87 The fully-qualified distribution URL based on either the "C<ftp>",
88 "C<http>" or "C<file>" URL schemes. If I<url> contains a trailing
89 "C</*>", this is expanded according to the I<tag> value of the B<TAG>
90 variable and the corresponding filesystem layout on C<ftp.openpkg.org>.
91 The default I<url> is "C<ftp://ftp.openpkg.org/*>".
93 =over
95 =back
97 =head1 EXAMPLE
99 $ openpkg release
100 OpenPKG-CURRENT ftp://ftp.openpkg.org/current/SRC/
102 $ openpkg release --fmt=%t
103 CURRENT
105 $ openpkg release --fmt=%u
106 ftp://ftp.openpkg.org/current/SRC/
108 $ openpkg release --fmt="OpenPKG %t is located at:\\n%u"
109 OpenPKG CURRENT is located at:
110 ftp://ftp.openpkg.org/current/SRC/
112 $ openpkg release --release=2.5.4 --fmt=%t
113 2.5-RELEASE
115 $ cat /openpkg/etc/openpkg/release
116 TAG=2-STABLE-20060622
117 URL=ftp://ftp.example.com/mirror/openpkg.org/*
119 =head1 SEE ALSO
121 uuid(8)
123 =head1 HISTORY
125 The B<openpkg release> command first appeared in B<OpenPKG 2-STABLE-20060622>.
127 =cut