Building Ipkgs - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

iPKG has an executable module called ipkg located on the terminal in /bin and a
Linux (or Cygwin) shell script called ipkg-build that is in the M
terminal resident ipkg module is used to install and remove packages. All user
packages are installed with the user home directory (/home/usr1) as the root.
The module ipkg has numerous options, but the three that are applicable to the
terminal are:
install <file.ipk>
remove <pkg>
list_installed

Building ipkgs

Here is a guide to building packages for the ipkg package management system:
1
Create the directory structure and files as you want them to appear on the
installed system.
2
Create a directory named \control at the top-level of this directory structure.
3
Inside \control create a file named "control" with lines of the form "Field:
value". Required fields are Package, Version, Architecture, Maintainer,
Section, Priority and Description. Optional fields include Depends. The
meaning of each of the fields will be given later in this document.
There are also a few optional script files. These are the pre and post
installation scripts, and pre and post uninstallation scripts. There is also one
other file called conffiles that can contain a list of configuration files used
by your program that should not be overwritten when your package is
upgraded.
Install package <file.ipk>
Remove package <pkg>
List all and only the installed packages and
description
opreinst - Pre-installation (before the actual program files are
extracted).
opostinst - Post-installation (after the program files have been
extracted).
oprerm - Pre-uninstallation (before your files are removed).
opostrm - Post-uninstallation (after files have been removed).
oconffiles - List of configuration files not to be overwritten during an
upgrade.
Package Management
x
870 SDK. The
X
M
800 S
P
ERIES
ROGRAMMERS
F
S
ILE
YSTEMS
29
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents