QUOTE(apink @ Apr 3 2006, 02:54 AM)
Is it too complicated to briefly explain how to construct that ipk? I know this is opening me up to the standard rtfm response, but I would guess that there is more than one newbie who would benefit from a quick ipk lesson ala tweaked .conf files.
Make an arbitary directory somewhere, say
/mnt/cf/my-config-ipkg. Now within this directory populate with the files that you wish to "backup", remember to keep the original directory structure, eg:
CODE
/mnt/cf/my-config-ipkg/etc/passwd
/mnt/cf/my-config-ipkg/etc/groups
/mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc.kde
/mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc.matchbox
/mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc
/mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc.openbox
/mnt/cf/my-config-ipkg/home/root/.mc
/mnt/cf/my-config-ipkg/home/root/.mc/ini
/mnt/cf/my-config-ipkg/home/root/.mc/Tree
/mnt/cf/my-config-ipkg/home/root/.mc/cedit
/mnt/cf/my-config-ipkg/home/root/.mc/cedit/cooledit.macros
/mnt/cf/my-config-ipkg/home/root/.mc/filepos
/mnt/cf/my-config-ipkg/home/root/.mc/hotlist.bak
/mnt/cf/my-config-ipkg/home/root/.mc/history
/mnt/cf/my-config-ipkg/home/root/.mc/hotlist
Then create a file
/mnt/cf/my-config-ipkg/CONTROL/control containing something along the lines of:
CODE
Package: my-config-backup
Maintainer: mickey-mouse @ disney.com
Architecture: armv5tel
Version: 2006-04-01
License: any
Description: a backup of my config files
Source: my zaurus
Then run:
mkipg /mnt/cf/my-config-ipkg/
But before you do all this you really ought to read
this for the full details.
However IMO it is better to use a standard tarball to keep your config files. The cool thing is that mc knows about tar files (tar.gz at least, not .bz2 though) and you easily pick which files to you want "restored". This is better than the all-or-nothing approach that an ipk offers. See screenshot.
Click to view attachment-- cheers