Skip to content
This repository was archived by the owner on Jan 31, 2018. It is now read-only.

HOWTO IPKG

jlduran edited this page Aug 14, 2012 · 1 revision

To build the ipkg:

[BAPS2]$ make -f hello.mk hello
[BAPS2]$ make -f hello.mk hello-package
[BAPS2]$ ls ipkg

To create an index file:

[BAPS2]$ cd ipkg
[BAPS2]$ ../scripts/ipkg-make-index.sh . > Packages
[BAPS2]$ scp Packages /your/web/server

Then change the first line in /etc/ipkg.conf on your IP04:

src snapshots http://you.web.server

And try:

root:~> ipkg update
root:~> ipkg list

Notes

  1. If you change the post or pre inst scripts, it is a good idea to rm the existing $(TARGET_DIR) (see Makefile for your package), as the package make scripts don't seem to recognise when post/pre scripts have been changed.

  2. To debug post/pre inst scripts #!/bin/sh -x is your friend!

  3. To test ipkgs you can rcp down to the target:

     [host]$ rcp ipkg/asterisk_1.4.4-1_bfin.ipk root@ip04:/root
     [ip04]$ ipkg install asterisk_1.4.4-1_bfin.ipk
    

If you get complaints about MD5 mismatch, then:

    [ip04]$ rm /usr/lib/ipkg/lists/snapshots
Clone this wiki locally