Author Topic: Many Sources, Whish is the BEST.  (Read 3924 times)

Omicron

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://
Many Sources, Whish is the BEST.
« on: August 04, 2004, 04:38:26 am »
I want the easitest and best step by step instruction on creation BOTH C++ IPKS and JAVA based IPKS.

I have found many, and most don't even tell you were to find the ipkg-build.sh script, which is a major PITA since it is BURIED in the middle of all the a"Familiar" crap.

So anyway, has anyone simplified this task down to a science,  I tried to make the dir structrte (on win) and move to Z for compelteion only to end up with endless CHOWN requirements and even then a totally unusable ipks.

It is no wonder that so must useful Zaurus stuff remains in TARs and other more archaics setups when building an ipK still (we ARE talking 5 ++ years here, folks) desparately needs a friendly and easy to use frontend and clear and consice instructions that are FOOL PROOF.

Any war stories and and enightenments are most welome.  I don't mind the command line, provided it is clear and conice and as fool proof as possible.

Thanks.

O
"You Shall Not Pass"    
....Gandalf, Lord Of The Rings
--------------------------------------------------------------
C-860 (Cacko), 3x4gb MD  
DLINK 660W, 1GB SD,  
Upgraded Archos AV320 w/80GB HDD
Pocketop and Targus IR keyboards
Favorite Deal Site: SaveCity.net (pretty cool, good deals daily on one page)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Many Sources, Whish is the BEST.
« Reply #1 on: August 04, 2004, 06:16:38 am »
True it should be easier to find, like in the howto I suppose (if someone wants to format all of this and put it in there).

Directory structure and control file layout: http://handhelds.org/moin/moin.cgi/BuildingIpkgs

Here's the script from here: http://handhelds.org:8080/wiki/BuildIpkg

Script: BuildIPKG.sh
======================================================
Code: [Select]
#!/bin/sh
#ipk building script by Steve Redler IV, steve@sr-tech.com 5-21-2001
if [ ! "$1" = "" ]; then cd $1; else echo " missing dir on command line"; exit 1; fi
name=`cat  DEBIAN/control | grep "Package:" | cut -d" " -f2`
arch=`cat  DEBIAN/control | grep "Architecture:" | cut -d" " -f2`
vers=`cat DEBIAN/control | grep "Version:" | cut -d" " -f2`
if [ "$name" = "" ]; then echo "Package name in DEBIAN/control not found"; exit 1; fi

tar -zcf data.tar.gz ./* --exclude=DEBIAN --exclude=buildipkg.sh --exclude=*~ --exclude=*.ipk

cd DEBIAN; tar -zcf ../control.tar.gz . cd ../; echo "2.0" > debian-binary tar -zcf package.tar.gz ./control.tar.gz ./data.tar.gz ./debian-binary mv package.tar.gz $name\_$vers\_$arch.ipk rm *.gz; rm debian-binary
======================================================


Looks like this produces the inefficient ;-) tar.gz style ipkgs, but as least they are universally compatible until cacko, pdaXrom and Sharp decide to use a less prehistoric version of ipkg which supports the superior ar format (and is more robust, allows anything to be installed to storage card, is more flexible in terms of the order of input commands,..... etc. ;-)) - like the one we use in OZ for example :-).

Someone also told me that the Sharp ROM requires a slightly different directory structure for the control file, I've no idea whether this is true, but if someone wants to try it out that would obviously be useful.


Si
« Last Edit: August 04, 2004, 06:20:24 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Many Sources, Whish is the BEST.
« Reply #2 on: August 04, 2004, 06:19:05 am »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Many Sources, Whish is the BEST.
« Reply #3 on: August 04, 2004, 07:40:16 am »
With cygwin, this howto should work fine on Windows for normal applications:

http://docs.zaurus.com/index.php?id=ipkg_howto

For Java ipks, see here:

http://www.zaurususergroup.com/modules.php...ng&parent_id=23
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

Omicron

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://
Many Sources, Whish is the BEST.
« Reply #4 on: August 04, 2004, 09:23:35 am »
Okay, now on my FIFTH try to create an IPK.

Every script I have found is useless, giving me error that make no sense (like CONTROL/control file missing, when it is right there....same thing it data directories).

A little (LOT) more helpful messages would be extremely useful.

I mean all this is is a directory structure, tarred and gzipped (somewhat recursively) and then renamed to .IPK

Yet, for all it's simplicity, I cannot get it to work for the life of me, and judgung by the posts I have seen and the sheer number of sites dedicated to the subject, some obvious pitfalls exists.

So perhaps I should go at this from a different direction...WHAT ARE THE MOST COMMON MISTAKES in creating JAVA IPKS...(Lets' just start with Java as that is what I am trying to do (java APPLICATION).

Thanks.
"You Shall Not Pass"    
....Gandalf, Lord Of The Rings
--------------------------------------------------------------
C-860 (Cacko), 3x4gb MD  
DLINK 660W, 1GB SD,  
Upgraded Archos AV320 w/80GB HDD
Pocketop and Targus IR keyboards
Favorite Deal Site: SaveCity.net (pretty cool, good deals daily on one page)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Many Sources, Whish is the BEST.
« Reply #5 on: August 04, 2004, 09:33:42 am »
You're using Windows?

You'll have troubles with case sensitivity - this is probably what's causing the not finding control file error.

You'll also have troubles with ownership and permissions on the files, so you may have to do some postinst script magic to correct them.

I'd be tempted to try doing this on your Z - it should all work there.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Omicron

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://
Many Sources, Whish is the BEST.
« Reply #6 on: August 04, 2004, 10:04:21 am »
Quote
You're using Windows?

You'll have troubles with case sensitivity - this is probably what's causing the not finding control file error.

You'll also have troubles with ownership and permissions on the files, so you may have to do some postinst script magic to correct them.

I'd be tempted to try doing this on your Z - it should all work there.


Si


I have been doing all this on my Z, I gave up on the Windows after 1st try.

CONTROL is in correct case for dir and lowercase for tar.gz.

This is really buggy me, man does this thing need a point and click interface...

And I would write one if I could just getint working once !!

ARGH !
"You Shall Not Pass"    
....Gandalf, Lord Of The Rings
--------------------------------------------------------------
C-860 (Cacko), 3x4gb MD  
DLINK 660W, 1GB SD,  
Upgraded Archos AV320 w/80GB HDD
Pocketop and Targus IR keyboards
Favorite Deal Site: SaveCity.net (pretty cool, good deals daily on one page)

Omicron

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://
Many Sources, Whish is the BEST.
« Reply #7 on: August 04, 2004, 03:57:17 pm »
More IPKG-BUILD issues.

I have tried every combination I can think of and ipkg-build ALWAYYS faisl with "Cannot find control.tar in <SOME_NUMBER>_IPG" (temp directory).

Just for fun I put it locally as a file as a file in CONTROL dir and as a FILE in control dir and as a tar in all three places(after all else failed) and it still can't find it.

I ahve also tossed ipkg-build altogether and tarred, gzipped and renamed all my directories but they never appear in the install list. I KNOW it's something minor, but what a PITA this is.....I mean if it is so simple as all the wbe pages say why are thier COUNTLESS web pages on it and no has ever wrote a simple fill-in-the-blanks fornt-end.  I think I found out why there are not so many programs in IPKS format.

IPKG-BUILD finds and tar data.tar with no problem, but control.tar  is a mess and it is SOOOO simple....it is just one file !

Anyone ever seen this behaiour before?


UPDATE: After all this ipkg-build stuff, I finally got it working with a Windows Batch file I found.  Go figure.
« Last Edit: August 04, 2004, 08:51:47 pm by Omicron »
"You Shall Not Pass"    
....Gandalf, Lord Of The Rings
--------------------------------------------------------------
C-860 (Cacko), 3x4gb MD  
DLINK 660W, 1GB SD,  
Upgraded Archos AV320 w/80GB HDD
Pocketop and Targus IR keyboards
Favorite Deal Site: SaveCity.net (pretty cool, good deals daily on one page)

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Many Sources, Whish is the BEST.
« Reply #8 on: August 04, 2004, 05:53:54 pm »
Take a rest, it will not work for you today - not your day probably    Tomorrow maybe.

I can post a script I've been using for months to build ipkgs. But I've always done that on linux... Are you sure you still want to use Windows for that?

yzord

  • Full Member
  • ***
  • Posts: 162
    • View Profile
    • http://
Many Sources, Whish is the BEST.
« Reply #9 on: August 05, 2004, 11:16:24 am »
To Omicron and Maslovsky,
Could you please post (or indicate where to get) both the windows batch file you used (omicron), and the linux script you use (Maslovsky) to create the ipk files?

Thanks,
Yz

Omicron

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://
Many Sources, Whish is the BEST.
« Reply #10 on: August 05, 2004, 11:34:18 am »
Quote
To Omicron and Maslovsky,
Could you please post (or indicate where to get) both the windows batch file you used (omicron), and the linux script you use (Maslovsky) to create the ipk files?

Thanks,
Yz


DOS/WINDOWS VERSION:

http://tada.zaurii.net/java/ipk/
"You Shall Not Pass"    
....Gandalf, Lord Of The Rings
--------------------------------------------------------------
C-860 (Cacko), 3x4gb MD  
DLINK 660W, 1GB SD,  
Upgraded Archos AV320 w/80GB HDD
Pocketop and Targus IR keyboards
Favorite Deal Site: SaveCity.net (pretty cool, good deals daily on one page)

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Many Sources, Whish is the BEST.
« Reply #11 on: August 06, 2004, 05:09:02 am »
This is the one I use to build ipks on linux

Omicron

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://
Many Sources, Whish is the BEST.
« Reply #12 on: September 09, 2004, 11:16:39 pm »
Another cool one (HAVEN'T TRIED IT YET)

but be very cool if it works as it is a plugin for Eclipse (it adds a new option in EXPORT to export to an IPK file).

Eclipse IPK generator from EXport plugin.
"You Shall Not Pass"    
....Gandalf, Lord Of The Rings
--------------------------------------------------------------
C-860 (Cacko), 3x4gb MD  
DLINK 660W, 1GB SD,  
Upgraded Archos AV320 w/80GB HDD
Pocketop and Targus IR keyboards
Favorite Deal Site: SaveCity.net (pretty cool, good deals daily on one page)