michael@428: .\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.22) michael@428: .\" michael@428: .\" Standard preamble: michael@428: .\" ======================================================================== michael@428: .de Sp \" Vertical space (when we can't use .PP) michael@428: .if t .sp .5v michael@428: .if n .sp michael@428: .. michael@428: .de Vb \" Begin verbatim text michael@428: .ft CW michael@428: .nf michael@428: .ne \\$1 michael@428: .. michael@428: .de Ve \" End verbatim text michael@428: .ft R michael@428: .fi michael@428: .. michael@428: .\" Set up some character translations and predefined strings. \*(-- will michael@428: .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left michael@428: .\" double quote, and \*(R" will give a right double quote. \*(C+ will michael@428: .\" give a nicer C++. Capital omega is used to do unbreakable dashes and michael@428: .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, michael@428: .\" nothing in troff, for use with C<>. michael@428: .tr \(*W- michael@428: .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' michael@428: .ie n \{\ michael@428: . ds -- \(*W- michael@428: . ds PI pi michael@428: . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch michael@428: . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch michael@428: . ds L" "" michael@428: . ds R" "" michael@428: . ds C` michael@428: . ds C' michael@428: 'br\} michael@428: .el\{\ michael@428: . ds -- \|\(em\| michael@428: . ds PI \(*p michael@428: . ds L" `` michael@428: . ds R" '' michael@428: 'br\} michael@428: .\" michael@428: .\" Escape single quotes in literal strings from groff's Unicode transform. michael@428: .ie \n(.g .ds Aq \(aq michael@428: .el .ds Aq ' michael@428: .\" michael@428: .\" If the F register is turned on, we'll generate index entries on stderr for michael@428: .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index michael@428: .\" entries marked with X<> in POD. Of course, you'll have to process the michael@428: .\" output yourself in some meaningful fashion. michael@428: .ie \nF \{\ michael@428: . de IX michael@428: . tm Index:\\$1\t\\n%\t"\\$2" michael@428: .. michael@428: . nr % 0 michael@428: . rr F michael@428: .\} michael@428: .el \{\ michael@428: . de IX michael@428: .. michael@428: .\} michael@428: .\" michael@428: .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). michael@428: .\" Fear. Run. Save yourself. No user-serviceable parts. michael@428: . \" fudge factors for nroff and troff michael@428: .if n \{\ michael@428: . ds #H 0 michael@428: . ds #V .8m michael@428: . ds #F .3m michael@428: . ds #[ \f1 michael@428: . ds #] \fP michael@428: .\} michael@428: .if t \{\ michael@428: . ds #H ((1u-(\\\\n(.fu%2u))*.13m) michael@428: . ds #V .6m michael@428: . ds #F 0 michael@428: . ds #[ \& michael@428: . ds #] \& michael@428: .\} michael@428: . \" simple accents for nroff and troff michael@428: .if n \{\ michael@428: . ds ' \& michael@428: . ds ` \& michael@428: . ds ^ \& michael@428: . ds , \& michael@428: . ds ~ ~ michael@428: . ds / michael@428: .\} michael@428: .if t \{\ michael@428: . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" michael@428: . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' michael@428: . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' michael@428: . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' michael@428: . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' michael@428: . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' michael@428: .\} michael@428: . \" troff and (daisy-wheel) nroff accents michael@428: .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' michael@428: .ds 8 \h'\*(#H'\(*b\h'-\*(#H' michael@428: .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] michael@428: .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' michael@428: .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' michael@428: .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] michael@428: .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] michael@428: .ds ae a\h'-(\w'a'u*4/10)'e michael@428: .ds Ae A\h'-(\w'A'u*4/10)'E michael@428: . \" corrections for vroff michael@428: .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' michael@428: .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' michael@428: . \" for low resolution devices (crt and lpr) michael@428: .if \n(.H>23 .if \n(.V>19 \ michael@428: \{\ michael@428: . ds : e michael@428: . ds 8 ss michael@428: . ds o a michael@428: . ds d- d\h'-1'\(ga michael@428: . ds D- D\h'-1'\(hy michael@428: . ds th \o'bp' michael@428: . ds Th \o'LP' michael@428: . ds ae ae michael@428: . ds Ae AE michael@428: .\} michael@428: .rm #[ #] #H #V #F C michael@428: .\" ======================================================================== michael@428: .\" michael@428: .IX Title "REGISTER 8" michael@428: .TH REGISTER 8 "OpenPKG" "REGISTER(8)" "OpenPKG" michael@428: .\" For nroff, turn off justification. Always turn off hyphenation; it makes michael@428: .\" way too many mistakes in technical documents. michael@428: .if n .ad l michael@428: .nh michael@428: .SH "NAME" michael@428: openpkg register \- OpenPKG Registry Command\-Line Client michael@428: .SH "SYNOPSIS" michael@428: .IX Header "SYNOPSIS" michael@428: \&\fBregister\fR [\-u|\-\-user=] [\-l|\-\-link=] [\fI\-d|\-\-desc=] michael@428: [\-m|\-\-mode=fake|post|wipe] [\fI\-a|\-\-args=] michael@428: [\fI\-\-plat=] [\fI\-\-orel=] [\fI\-\-uuid=] michael@428: [\fI\-\-conf=] [\fI\-\-prep=] [\fI\-\-tran=] michael@428: [\fI\-\-util=] [\-\-data=[,...]] michael@428: [\fI\-P|\-\-preparation\fR] [\fI\-T|\-\-transaction\fR] michael@428: [\fI\-U|\-\-utilization\fR] [\fI\-C|\-\-convenience\fR] michael@428: [\fI\-I|\-\-interaction\fR] michael@428: [\fI\-v|\-\-verbose\fR] [\fI\-h|\-\-help\fR] michael@428: .PP michael@428: \&\fBregister\fR \-S|\-\-printstatus michael@428: .PP michael@428: \&\fBregister\fR \-R|\-\-rewriteurls [\fIurl\fR ...] michael@428: .SH "DESCRIPTION" michael@428: .IX Header "DESCRIPTION" michael@428: \&\fBopenpkg register\fR is the Command-Line Client the OpenPKG Registry. It is michael@428: used by administrators to register an instance with the OpenPKG Registry for michael@428: later association. michael@428: .PP michael@428: After association, \fBopenpkg register\fR can be used for repetitive michael@428: reregistrations which update the heartbeat of the instance on the Registry michael@428: server, avoiding premature depature from the database. It is assumed that michael@428: every instance will be reregistered daily. Dormant michael@428: instances might be discarded from the Registry, revoking their access to michael@428: additional resources. michael@428: .SH "PRIMARY OPERATIONS" michael@428: .IX Header "PRIMARY OPERATIONS" michael@428: The following primary operations are available: michael@428: .IP "\fB\-h\fR, \fB\-\-help\fR" 4 michael@428: .IX Item "-h, --help" michael@428: Display brief usage message. michael@428: .IP "\fB\-v\fR, \fB\-\-verbose\fR" 4 michael@428: .IX Item "-v, --verbose" michael@428: Display progress information during data posting. michael@428: .IP "\fB\-P\fR, \fB\-\-preparation\fR" 4 michael@428: .IX Item "-P, --preparation" michael@428: Execute the primary operation \*(L"preparation\*(R". michael@428: Creates registry data for one request and dumps it stdout michael@428: in \s-1XML\s0 format. That request can be filtered and piped into michael@428: the transaction phase or it can be copied and pasted into the michael@428: XMLdump \s-1CGI\s0 facility manually. michael@428: A copy of the output of the last run is also saved to the \f(CW\*(C`${REGISTRY_PREP}\*(C'\fR file. michael@428: .IP "\fB\-T\fR, \fB\-\-transaction\fR" 4 michael@428: .IX Item "-T, --transaction" michael@428: Execute the primary operation \*(L"transaction\*(R". michael@428: Reads registry data with one request from stdin, executes michael@428: the transaction and writes registry data with one or more michael@428: responses to stdout in \s-1XML\s0 format. michael@428: Depending on the mode of operation, the transaction might be an actual michael@428: transport to the XMLdump \s-1CGI\s0 facility or a fake activity which complements the michael@428: manual preparation. michael@428: A copy of the output of the last run is also saved to the \f(CW\*(C`${REGISTRY_TRAN}\*(C'\fR file. michael@428: .IP "\fB\-U\fR, \fB\-\-utilization\fR" 4 michael@428: .IX Item "-U, --utilization" michael@428: Execute the primary operation \*(L"utilization\*(R". michael@428: Reads registry data with one response from stdin and updates the local michael@428: registry information. michael@428: Depending on the mode of operation, the utilization might be an actual michael@428: processing of a transaction response or a fake activity which complements the michael@428: manual transaction. michael@428: Anyway, this step finalizes the registration process and makes the instance michael@428: assume it has been properly registered. This status can be printed. \s-1URL\s0 michael@428: rewriting is activated. michael@428: A copy of the output of the last run is also saved to the \f(CW\*(C`${REGISTRY_UTIL}\*(C'\fR file. michael@428: .IP "\fB\-C\fR, \fB\-\-convenience\fR" 4 michael@428: .IX Item "-C, --convenience" michael@428: Execute the primary operation \*(L"convenience\*(R". michael@428: This executes the three primary operations \*(L"preparation\*(R", \*(L"transaction\*(R" and michael@428: \&\*(L"utilization\*(R" in that order and pipes data through this chain. michael@428: .IP "\fB\-I\fR, \fB\-\-interaction\fR" 4 michael@428: .IX Item "-I, --interaction" michael@428: Execute the primary operation \*(L"interaction\*(R". michael@428: Like \*(L"convenience\*(R" but user is interactively asked for information. This is michael@428: the easiest way to do registration but it is not meat to be automated. michael@428: .IP "\fB\-S\fR, \fB\-\-printstatus\fR" 4 michael@428: .IX Item "-S, --printstatus" michael@428: If the instance has been registered, information about the registration is printed in a michael@428: format suitable for shell evaluation and return code is true. michael@428: Otherwise nothing is printed and return code is false. michael@428: .IP "\fB\-R\fR, \fB\-\-rewriteurls\fR [\fIurl\fR ...]" 4 michael@428: .IX Item "-R, --rewriteurls [url ...]" michael@428: If the instance has been registered, the given URLs are rewritten to prepend michael@428: user:pass information before hostnames below the openpkg.(org|net|com) michael@428: domains. Note the username is is \s-1UUID_REGISTRY\s0 and the password is the michael@428: concatenation of \s-1UUID_INSTANCE\s0 and \s-1UUID_PLATFORM\s0 from the michael@428: PREFIX/etc/openpkg/uuid file. Both informations are not meant to be used for michael@428: traditional authentication, they are merly statistical information. michael@428: Otherwise the URLs are returned verbatim. michael@428: .SH "STANDARD OPTIONS" michael@428: .IX Header "STANDARD OPTIONS" michael@428: Standard options are typically used to automate registration (not michael@428: association). michael@428: .IP "\fB\-m\fR, \fB\-\-mode\fR fake|post|wipe" 4 michael@428: .IX Item "-m, --mode fake|post|wipe" michael@428: Overrides \f(CW\*(C`${REGISTRY_MODE}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: Has no default and is a manadatory setting. michael@428: .Sp michael@428: In \fBpost\fR mode, transactions are carried out using real network connectivity. michael@428: The \*(L"preparation\*(R" step creates a XMLdump and writes it into the michael@428: \&\f(CW\*(C`${REGISTRY_PREP}\*(C'\fR file. The \*(L"transaction\*(R" step posts it to the DropXML form michael@428: using a \s-1HTTP\s0 request. The response coming back from Registration server is michael@428: also in \s-1XML\s0 format and is saved to \f(CW\*(C`${REGISTRY_TRAN}\*(C'\fR file. The michael@428: \&\*(L"utilization\*(R" step processes this response and writes the final results to the michael@428: \&\f(CW\*(C`${REGISTRY_UTIL}\*(C'\fR file. michael@428: .Sp michael@428: In \fBfake\fR mode, no network connectivity takes place. michael@428: The \*(L"prepararation\*(R" step creates a XMLdump and writes it into the michael@428: \&\f(CW\*(C`${REGISTRY_PREP}\*(C'\fR file. The \*(L"transaction\*(R" step is a fake only. It assumes a michael@428: successful response from the Registration server and saves it to michael@428: \&\f(CW\*(C`${REGISTRY_TRAN}\*(C'\fR file. The \*(L"utilization\*(R" step processes this response and michael@428: writes the final results to the \f(CW\*(C`${REGISTRY_UTIL}\*(C'\fR file. michael@428: \&\fINote\fR: fake mode is meant as a way to register instances which cannot or must michael@428: not post data directly to the Registration server. michael@428: .Sp michael@428: In \fBwipe\fR mode, the registration is wiped out locally. The status is reset michael@428: and \s-1URL\s0 rewriting is disabled. michael@428: \&\fINote\fR: the registration server is not contacted, the instace must be removed michael@428: manually using the web interface. michael@428: \&\fINote\fR: wiping registration is highly recommended as a precursor action of michael@428: cloning activities. michael@428: .ie n .IP "\fB\-a\fR, \fB\-\-args\fR ""arg [arg ...]""" 4 michael@428: .el .IP "\fB\-a\fR, \fB\-\-args\fR ``arg [arg ...]''" 4 michael@428: .IX Item "-a, --args arg [arg ...]" michael@428: Overrides \f(CW\*(C`${REGISTRY_ARGS}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: Complements the mode and is specific to it. michael@428: Defaults to \*(L"http://registry.openpkg.org/register\*(R" which is the official registry of the OpenPKG Project. michael@428: This default is useful for \*(L"post\*(R" mode. michael@428: .IP "\fB\-u\fR, \fB\-\-user\fR \fIuser|token\fR" 4 michael@428: .IX Item "-u, --user user|token" michael@428: Overrides \f(CW\*(C`${REGISTRY_USER}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: Indicates the registry user which will find this registration in his arrival queue. michael@428: The user can also specified as a token which is enabled for use as \*(L"user\*(R". michael@428: If the token is also enabled for \*(L"assoc\*(R" the registered instance is immediately associated michael@428: to the user with no need for the user to visit the web interface. michael@428: This information in submitted via the \*(L"registry_user\*(R" attribute of the \s-1XML\s0 request. michael@428: Retrieves default online from http://openpkg.org/go/autoregister and is a manadatory setting. michael@428: .IP "\fB\-l\fR, \fB\-\-link\fR \fItoken\fR" 4 michael@428: .IX Item "-l, --link token" michael@428: Overrides \f(CW\*(C`${REGISTRY_LINK}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: Indicates the registry user which will find this registration linked to his token. michael@428: The link must be specified as a token which is enabled for use as \*(L"link\*(R". michael@428: If a user token is used and the link token is also enabled for \*(L"assoc\*(R" then the registered instance michael@428: is immediately associated to the user with no need for the user to visit the web interface. michael@428: This information in submitted via the \*(L"registry_link\*(R" attribute of the \s-1XML\s0 request. michael@428: Has no default and is an optional setting. michael@428: Be aware that linked users see the same information about an instance as the associated user michael@428: can find on his \*(L"association\*(R" page but they cannot alter or delete information. michael@428: .IP "\fB\-d\fR, \fB\-\-desc\fR \fIdescription\fR" 4 michael@428: .IX Item "-d, --desc description" michael@428: Overrides \f(CW\*(C`${REGISTRY_DESC}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: Indicates a human readable description of the instance. michael@428: This information in submitted via the \*(L"registry_desc\*(R" attribute of the \s-1XML\s0 request. michael@428: It appears in the \*(L"description\*(R" column on the \*(L"association\*(R" page of the web form and can be edited on the server side. michael@428: Defaults to \*(L"openpkg://${\s-1FQDN\s0}${\s-1PREFIX\s0}\*(R" michael@428: .SH "ADVANCED OPTIONS" michael@428: .IX Header "ADVANCED OPTIONS" michael@428: Advanced options can be enganged to tailor and fully automate a registration michael@428: (not association). michael@428: .IP "\fB\-\-plat\fR" 4 michael@428: .IX Item "--plat" michael@428: Overrides \f(CW\*(C`${REGISTRY_PLAT}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: Indicates the platform. Concatenated information from \s-1CPU\s0 architecture (arch) and Operating System (os). michael@428: This information in submitted via the \*(L"registry_plat\*(R" attribute of the \s-1XML\s0 request. michael@428: Defaults to \*(L"%{l_platform \-p}\*(R", e.g. \*(L"ix86\-freebsd6.1\*(R" michael@428: .IP "\fB\-\-orel\fR" 4 michael@428: .IX Item "--orel" michael@428: Overrides \f(CW\*(C`${REGISTRY_VERS}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: Indicates the OpenPKG release. michael@428: This information in submitted via the \*(L"registry_orel\*(R" attribute of the \s-1XML\s0 request. michael@428: Defaults to \*(L"%{l_openpkg_release}\*(R", e.g. \*(L"OpenPKG-CURRENT\*(R", \*(L"OpenPKG\-2\-STABLE\*(R", \*(L"OpenPKG\-2.5\*(R", michael@428: .IP "\fB\-\-uuid\fR" 4 michael@428: .IX Item "--uuid" michael@428: Overrides \f(CW\*(C`${REGISTRY_UUID}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: Indicates the \s-1UUID\s0 file of the instance. michael@428: This information in submitted via the \*(L"uuid_registry\*(R", \*(L"uuid_instance\*(R" and \*(L"uuid_platform\*(R" attributes of the \s-1XML\s0 request. michael@428: Defaults to \fI${\s-1PREFIX\s0}/etc/openpkg/uuid\fR michael@428: .IP "\fB\-\-conf\fR" 4 michael@428: .IX Item "--conf" michael@428: Overrides \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR variable from previous \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. Processing michael@428: of the current configuration file is aborted immediately with all variables michael@428: read so far kept. THe new configuration file is read in immediately and michael@428: processing continues there. This works similar to an include but is more michael@428: primitive as it does not allow nesting, only chaining. michael@428: Defaults to \fI${\s-1PREFIX\s0}/etc/openpkg/register.conf\fR michael@428: .IP "\fB\-\-prep\fR" 4 michael@428: .IX Item "--prep" michael@428: Overrides \f(CW\*(C`${REGISTRY_PREP}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: File to save a copy of the output from the \*(L"preparation\*(R" step. michael@428: Defaults to \fI${\s-1PREFIX\s0}/etc/openpkg/register.prep\fR michael@428: .IP "\fB\-\-tran\fR" 4 michael@428: .IX Item "--tran" michael@428: Overrides \f(CW\*(C`${REGISTRY_TRAN}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: File to save a copy of the output from the \*(L"transaction\*(R" step. michael@428: Defaults to \fI${\s-1PREFIX\s0}/etc/openpkg/register.tran\fR michael@428: .IP "\fB\-\-util\fR" 4 michael@428: .IX Item "--util" michael@428: Overrides \f(CW\*(C`${REGISTRY_UTIL}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: File to save a copy of the output from the \*(L"utilization\*(R" step. michael@428: Defaults to \fI${\s-1PREFIX\s0}/etc/openpkg/register.util\fR michael@428: .IP "\fB\-\-data\fR" 4 michael@428: .IX Item "--data" michael@428: Overrides \f(CW\*(C`${REGISTRY_DATA}\*(C'\fR variable in \f(CW\*(C`${REGISTRY_CONF}\*(C'\fR file. michael@428: Comma separated list of tags to prepare. Available tags are \*(L"request\*(R", michael@428: \&\*(L"package\*(R" and \*(L"provides\*(R". The \*(L"request\*(R" refers to the whole thing and michael@428: is mandatory. The \*(L"package\*(R" includes name-version-release information michael@428: for all installed packages and \*(L"provides\*(R" adds more details required to michael@428: capture package options. For details see \s-1OPENPKG_PREP\s0 below. michael@428: Defaults to \*(L"request,package,provides\*(R" michael@428: .SH "FILES" michael@428: .IX Header "FILES" michael@428: The following files are used by \fBopenpkg register\fR: michael@428: .IP "OPENPKG_UUID=\fI${\s-1PREFIX\s0}/etc/openpkg/uuid\fR" 4 michael@428: .IX Item "OPENPKG_UUID=${PREFIX}/etc/openpkg/uuid" michael@428: .Vb 3 michael@428: \& UUID_REGISTRY="..." michael@428: \& UUID_INSTANCE="..." michael@428: \& UUID_PLATFORM="..." michael@428: .Ve michael@428: .IP "OPENPKG_CONF=\fI${\s-1PREFIX\s0}/etc/openpkg/register.conf\fR" 4 michael@428: .IX Item "OPENPKG_CONF=${PREFIX}/etc/openpkg/register.conf" michael@428: Format suitable for shell evaluation. Interactive mode appends remarked date michael@428: and current settings for reuse as new defaults for future runs. Can be preset michael@428: to customize or automate registration. michael@428: .IP "OPENPKG_PREP=\fI${\s-1PREFIX\s0}/etc/openpkg/register.prep\fR" 4 michael@428: .IX Item "OPENPKG_PREP=${PREFIX}/etc/openpkg/register.prep" michael@428: .Vb 10 michael@428: \& michael@428: \& michael@428: \& michael@428: \& michael@428: \& michael@428: \& michael@428: \& michael@428: \& michael@428: \& michael@428: \& michael@428: .Ve michael@428: .Sp michael@428: The \s-1XML\s0 request starts with and michael@428: headers followed by a container. The request is inside a michael@428: tag. Successful submission into the XMLdump form requires the headers and michael@428: exactly one container. It is possible to merge multiple requests into a single michael@428: container manually or otherwise and submit them all at once. michael@428: .IP "OPENPKG_TRAN=\fI${\s-1PREFIX\s0}/etc/openpkg/register.tran\fR" 4 michael@428: .IX Item "OPENPKG_TRAN=${PREFIX}/etc/openpkg/register.tran" michael@428: .Vb 7 michael@428: \& michael@428: \& michael@428: \& michael@428: \& openpkg://rm0.openpkg.net/openpkg\-dev michael@428: \& michael@428: .Ve michael@428: .Sp michael@428: The \s-1XML\s0 response starts with and michael@428: headers followed by a container. The response is inside a michael@428: tag. The data carried in the tag comes from the \*(L"description\*(R" column on the michael@428: \&\*(L"association\*(R" page of the web form and can be edited on the server side. michael@428: .IP "OPENPKG_UTIL=\fI${\s-1PREFIX\s0}/etc/openpkg/register.util\fR" 4 michael@428: .IX Item "OPENPKG_UTIL=${PREFIX}/etc/openpkg/register.util" michael@428: .Vb 3 michael@428: \& REGISTRY_DBID="..." michael@428: \& REGISTRY_DONE="yes" michael@428: \& REGISTRY_RESP="openpkg://foo.example.com/my/openpkg/prefix" michael@428: .Ve michael@428: .SH "EXAMPLES" michael@428: .IX Header "EXAMPLES" michael@428: .Vb 10 michael@428: \& # su \- openpkg\-mop michael@428: \& $ openpkg register \-\-printstatus michael@428: \& REGISTRY_DBID="..." michael@428: \& REGISTRY_DONE="yes" michael@428: \& REGISTRY_RESP="openpkg://foo.example.com/my/openpkg/prefix" michael@428: \& $ openpkg register \-\-printstatus >/dev/null && echo "Yup" michael@428: \& Yup michael@428: \& $ eval \`openpkg register \-\-printstatus\`; echo DONE=$REGISTRY_DONE michael@428: \& DONE=yes michael@428: \& $ openpkg register \-\-mode=wipe michael@428: \& $ openpkg register \-\-printstatus || echo "Nope" michael@428: \& Nope michael@428: \& $ openpkg register \-\-user=thl@openpkg.net \-\-mode=post michael@428: \& REGISTRY_DBID="...." michael@428: \& REGISTRY_DONE="yes" michael@428: \& REGISTRY_RESP="openpkg://foo.example.com/my/openpkg/prefix" michael@428: \& $ openpkg register \-\-printstatus >/dev/null && echo "Yup" michael@428: \& Yup michael@428: \& $ openpkg register \-\-rewriteurls http://download.openpkg.org/foo/bar michael@428: \& ftp://...:...@download.openpkg.org/foo/bar michael@428: .Ve michael@428: .SH "SEE ALSO" michael@428: .IX Header "SEE ALSO" michael@428: \&\fIbash\fR\|(1), \f(CW\*(C`openpkg man uuid\*(C'\fR, \f(CW\*(C`http://registry.openpkg.org/\*(C'\fR michael@428: .SH "AUTHOR" michael@428: .IX Header "AUTHOR" michael@428: Thomas Lotterer