To generate Packages and Pacakges.filelist, I used ipk-mkPackages.sh and ipk-listfiles.sh from http://netztorte.de/zaurus/tools/ipk/ . The scripts had CR-LF line endings, and I needed to run dos2unix on them. They take a list of ipk files as command line arguments.