User Manual

Table Of Contents
Chapter 3. Using the System
3.5.5.3. Management Packet Information File Format
The management packet information file (wpkg.pif) consists of tags and their data, described
here:
%wpkg-version: 2
Contains information for version checking. 2 is currently the only supported version. It is also
the default value.
%wpkg-prepare: [command line[s]]
One or more commands (all commands are lines until the next tag is interpreted as a command
line) to execute. Commands may contain parameters, redirections and job control as well.
The built-in default value for this is /usr/bin/dpkg -i *.deb || echo ERROR: Installation failed..
This enables the special case of creating .wpk packets from .deb packets simply with tar czf
foo.wpk foo.deb. (wpkg.pif is not needed in this special case).
%wpkg-reply: method
This value indicates where the generated reply packet is sent. By default, it is sent to where it
came from. Possible values are:
default
file:///path/filename
scp://remote:file
objp://bdaddr/
none
%wpkg-format: type
This value indicates what kind of a reply packet will be generated. Possible values are:
ascii (this is the default value, everything echoed by the prepare-section will be sent).
tgz (all files in the current directory will be sent).
vcf (same as ascii, but assume it is a vCard).
vmg (same as ascii, but assume it is a vMessage).
vnt (same as ascii, but assume it is a vNote).
vcs (same as ascii, but assume it is a vCalendar).
html (same as ascii, but assume it is HTML).
%wpkg-auth: auth
Optional authentication string required by wpkgd.
3.5.5.4. Management Operation Example: Hello World
See below for the simplest example of wpkg.pif:
%wpkg-version: 2
%wpkg-prepare:
29