View Single Post
Member: simplyflipflops
at: 07:59 PM 06/20/2009
Ok. I'm having problems getting the package installed into /var/usr/palm. I can get it installed via command line ipkg install but not through the email link....

Here is the setup for creating IPKs:

I am working from /media/internal/package as my package root and working directory.

I've created a folder called CONTROL
I make a file CONTROL/control.

and I've populated it with the following info:

Package: com.simplyflipflops
Version: 0.9.99
Section: misc
Priority: optional
Architecture: all
Maintainer: Simplyflipflops <palm@palm.com>
Description: Deployment IPK Package Test
Installed-Size: 350


------------------------------------------------------
I've created a folder called: var/usr/palm/applications/com.simplyflipflops/
(no slash as it is in /media/internal/package)


I put my WebOS Hello world code in here and modify the appinfo.json to match the version and id name in my control file listed above....

Here's my ipk "make" script called buildipkg.sh that sits in the package root (/media/internal/package) I run, courtesy of another dev:

#!/bin/sh
#buildipkg.sh
#ipk building script by Steve Redler IV, steve at sr-tech.com 5-21-2001
#Thanks for the head start Steve!

# get the package info out of the CONTROL/control file
name=`cat CONTROL/control | grep "Package:" | cut -d" " -f2`
arch=`cat CONTROL/control | grep "Architecture:" | cut -d" " -f2`
vers=`cat CONTROL/control | grep "Version:" | cut -d" " -f2`


#make the application package that gets installed to /var/usr/palm/applications
#note the . before the /var to ensure we are working from /media/internal/package/
tar -zcf data.tar.gz ./var/

#make the control package
cd CONTROL ; tar -zcf ../control.tar.gz .

# I dont know if the debian-binary is really needed but I left it in.
cd ../ ; echo "2.0" > debian-binary

#bundle the entire IPK up
tar -zcf package.tar.gz ./control.tar.gz ./data.tar.gz ./debian-binary
mv package.tar.gz $name\_$vers\_$arch.ipk

#cleanup
rm *.gz ; rm debian-binary



-------------------------------------------------------
An viola! You have a working IPK file that is named from your control file variables. If you run from the command line "ipkg install com.simplyflipflops*ipk" it will install the app. but LunaSysMgr will need to be burped and rebooted.

NOTE: I am having problems deploying it via email like the previous example. I get the feeling that palm wants to see the signature before uploading anything into the /var/usr/palm/application area. I've been experimenting with using /usr/palm/applications as the directory structure instead of /var/usr/palm/applications and the app gets installed via the command line but so far I have had no luck getting it installed via a link in an email. I'm definitely thinking it needs to be signed. I've tried copying over the signature files from other applications and it looks like those signature files actually point the files to the /var/usr folder.

Funny thing is that if you install the ipk from the command line, the pre needs to be rebooted.

Almost there.... Someone want to help with the signature portion? Or if someone wants to check running a non signed IPK on the original webOS before the updates that would also be great.
Reply