This documentation is based on wiki/BuildingIpkgs. So if you want to have the actual information, check that page.
This chapter describes the basics and includes an example, which
is used to prepare your first usefull ipkg including
the network setup for your ipaq based on the familiar task-bootstrap.
This includes the integration of a xircom2ps kernel module, which is
necessary to get my network up.
Grab ipkg-tools.tgz from
ftp://lorien.handhelds.org/pub/linux/feeds/demo/.
see also Download.
Unpack it using tar xvfz ipkg-tools.tgz. The tarball contains
the programs "ipkg", "ipkg-build", "ipkg-make-index" and "ipkg-make-kernel_packages".
What we need first is only "ipkg-build". As this program (as well as ipkg itself") is a
shell-script, it should run on all platforms supporting /bin/sh.
Copy the "ipkg-build" into e.g /usr/local/sbin and make sure your PATH points to that dir.
Thats all installation for the moment.
This section describes howto build a package in theory. The next section will
present a very helpfull example package. Everything described below may be
happen below a directory called my-first-example.
Follow the steps described below.
Enter the topdir of your "my-first-example"-dir and 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 ipkg build process from source (using ./configure, make, ...) is described on wiki/BuildingIpkgs.
This allows you to install source tarballs directly to the ipaq. As this is unusual at the moment, check the above mentioned page.
As I install the ipaq frequently including the bootloader and the task-bootstrap, I run also frequently into the same problems getting the network up. To make this easier, I decided to use my own "netup" ipkg to install the required stuff.
This section describes how to do this. You can get my netup and use it as a template.
check Download.
The following listing shows all files included.
netup
netup/etc
netup/etc/hosts
netup/etc/hosts.equiv
netup/etc/pcmcia
netup/etc/pcmcia/network.opts
netup/etc/ipkg.conf
netup/etc/resolv.conf
netup/root
netup/root/xirc2ps-modules-2.4.7-rmk3-np1-devfs_hh12_arm.ipk
netup/CONTROL
netup/CONTROL/control
netup/CONTROL/postinst
As you see, there are some user specific files under /etc as well as in
/root the required module xirc2ps-modules..., which will
be installed using the postinst shell script. The module is necessary to get the
network up, as I have a xircom pcmcia network adapter.
The next paragraph shows the control file.
Package: netup
Version: 1.1
Priority: important
Architecture: arm
Maintainer: Werner Schulte - werner@schulte-ac.de
Description: ipaq postinstallation for werner after
task-bootstrap load (new installation)
You can download netup.tar.gz from this page as an example. Just fill in the required info and use for your network setup.