Tinky package creation

From NAS-2000.org

Jump to: navigation, search

[edit] 1.) I want to create my own ipkg files, what to do?

First of all I think it is a good idea to place every pkg in its own dir (execept libs) under /system/overlay/apps/<pkg-name>. Then work with start script to create symlinks and start the stuff. All the libs should go to /system/overlay/lib/ They will be linked to /lib/ on every boot.

[edit] 2.) But HOW to create the pkg?

Do the following on your Linux-Box. First you'll need to install the ipkg-utils on gentoo guess what ?!?! run 'emerge -av ipkg-utils' :-)

Now do the following:
# mkdir my_ipkgs
# cd my_ipkgs
# mkdir -p rsync-2.6.9/CONTROL
# mkdir -p rsync-2.6.9/system/overlay/bin/
# cp /tmp/rsync rsync-2.6.9/system7overlay/bin/

# vi rsync-2.6.9/CONTROL/control
Package: rsync
Version: 2.6.9
Priority: optional
Section: net
Maintainer: flipstar_at_nas-2000_dot_org
Architecture: armv4tl
Source: rsync-2.6.9.tar.gz
Depends: libpopt
License: GPL
Description: tool to sync files over the net

Optional you can create preinst, postinst, prerm and postrm scripts in the CONTROL directory. For a lib you have to create a symlink for the first time do this in a postinst script.

Now run:
# ipkg-build rsync-2.6.9
and

# ipkg-make-index ./ > Packages

Package: rsync
Version: 2.6.9
Depends: libpopt
Section: net
Architecture: armv4tl
Maintainer: flipstar_at_nas-2000_dot_org
MD5Sum: 928269b6d8af0a1562680a6882a332b1
Size: 134194
Filename: rsync_2.6.9_armv4tl.ipk
Source: rsync-2.6.9.tar.gz
Description: tool to sync files over the net

Copy the archive and the output of ipkg-make-index to your webserver. For further studies see the links section.


If you want your software to be accessible in the WebGUI you have to provide some files in /usr/webroot/ and make /usr/webroot/nav/tinky_service.xml your parent. See the tinky_save files for example or read the sausalitos handbook

Personal tools