VeriFone MX800 series Programmer's Manual page 30

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

F
S
ILE
YSTEMS
Package Management
30
M
X
800 S
P
ERIES
ROGRAMMERS
Below is an example of a control file:
Package: openssl
Source: ./openssl_0.9.8a_mx870.tar.gz
Version: 0.9.8a-mx870
Priority: optional
Section: libs
Maintainer: John Doe
<John_d1@verifone.com>
Architecture: arm
Description: SSL library
The library used for Secure Socket
Layer communication.
4
If your package has any configuration files, then create a file
\control\conffiles which lists the absolute path of each configuration
file. This will prevent the package management system from automatically
overwriting configuration changes when the user upgrades the package.
5
If needed, your package may include script files that are called by the package
maintenance system. There are four possible times a script file will be run: just
before your package is installed, just after your package is installed, just
before the package is removed, and just after the package is removed. These
script files are named preinst, postinst, prerm, and postrm and should be
located in the \control directory. The scripts should return 0 on success, (a
non-zero return value from preinst will prevent your package from being
installed -- this can be useful in some situations). The scripts can assume a tty
is available so they may prompt the user. Note that the variable PKG_ROOT is
set to the root of the package installation and can be used to refer to the
packages contents in their installed locations.
6
Now simply run:
ipkg-build directory [destination_directory]
where directory is the directory you have created. The
destination_directory is optional and defaults to the current directory.
The ipkg-build script peforms several sanity checks on the package directory
and should guide you through any problems.
The meaning of the various fields in CONTROL/control are as follow:
Package
is the name of the package and should match the regular expression [a-
z0-9.+-]\+
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents