Re: Open IPKG packages from command line

2009-03-09 Thread buergi
> Is it possible to extract a IPK-package (some_package.ipk)? I do not 
> want to install anything - just inspect the package on my Ubuntu-machine.

i changed my ~/.mc/bindings file to browser packages with midnight
commander.
just replace 'regex/\.s?a' ny 'regex/\.(s?a|ipk|opk)'


OT: the same way you can also browser e's cfg files. just add the three
lines from here[1] to the bindings file. you'll need eet for it to work,
which should be available from your distros repo. i also build eet for
the openmoko some time ago[2][3], might be outdated. no warranty here.

[1] http://pbuergi.pb.funpic.de/openmoko/howtos/howto_handy_mc_tricks.txt
[2]
http://pbuergi.pb.funpic.de/openmoko/pkgs/eet_1.1.0+svnr38321-r1_armv4t.opk
[3]
http://pbuergi.pb.funpic.de/openmoko/pkgs/libeet1_1.1.0+svnr38321-r1_armv4t.opk


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Open IPKG packages from command line

2009-03-09 Thread Stefan Monnier
> AFAIK file should return you a 'debian binary' file format for ipk
> packages now.

Duh, it does now indeed.  I can see why it can be useful, but for it
would also sometimes be useful to know that it's a "subtype" of `ar'.


Stefan


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Open IPKG packages from command line

2009-03-09 Thread Risto H. Kurppa
On Mon, Mar 9, 2009 at 3:12 AM, Stefan Monnier  wrote:
>> I have been able to extract some packages by using "tar -zxvf" after
>> renaming the extension to tar.gz - though I cant with all packages (and
>> I dont know why).
>
> Try it with `file': it will usually tell you what kind of file you're
> looking at.  `ipkg' packages have used various formats over time, the
> ones I remember are .tar.gz and ar.  In bith cases, the content is a few
> meta files plus a .tar.gz (so you stupidly get double compression if the
> outer wrapper is .tar.gz).

AFAIK file should return you a 'debian binary' file format for ipk packages now.

r


-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Open IPKG packages from command line

2009-03-08 Thread Stefan Monnier
> I have been able to extract some packages by using "tar -zxvf" after 
> renaming the extension to tar.gz - though I cant with all packages (and 
> I dont know why).

Try it with `file': it will usually tell you what kind of file you're
looking at.  `ipkg' packages have used various formats over time, the
ones I remember are .tar.gz and ar.  In bith cases, the content is a few
meta files plus a .tar.gz (so you stupidly get double compression if the
outer wrapper is .tar.gz).


Stefan



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Open IPKG packages from command line

2009-03-08 Thread Risto H. Kurppa
On Sun, Mar 8, 2009 at 9:55 PM, Rask Ingemann Lambertsen
 wrote:
> On Tue, Feb 17, 2009 at 10:10:14AM +0100, Kasper Johansen wrote:
>> Hi list.
>>
>> Is it possible to extract a IPK-package (some_package.ipk)? I do not
>> want to install anything - just inspect the package on my Ubuntu-machine.
>
>   man dpkg-deb

try
ar x file.ipk

r



-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Open IPKG packages from command line

2009-03-08 Thread Rask Ingemann Lambertsen
On Tue, Feb 17, 2009 at 10:10:14AM +0100, Kasper Johansen wrote:
> Hi list.
> 
> Is it possible to extract a IPK-package (some_package.ipk)? I do not 
> want to install anything - just inspect the package on my Ubuntu-machine.

   man dpkg-deb

> I have been able to extract some packages by using "tar -zxvf" after 
> renaming the extension to tar.gz - though I cant with all packages (and 
> I dont know why).

   Because they are not supposed to be gzipped tar archives. The ones you
can extract with "tar -zxvf" are broken.

-- 
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Open IPKG packages from command line

2009-02-17 Thread Kasper Johansen
Risto H. Kurppa wrote:
> On Tue, Feb 17, 2009 at 11:47 AM, Kasper Johansen  wrote:
>   
>> For future reference: "ar -x some_package.ipk" did the trick.
>>
>> Gunnar Aastrand Grimnes wrote:
>> 
>>> .ipk are like debian (or indeed ubuntu) packages, i.e. they are
>>> initially packaged with ar, not tar. Unpacking will give you a meta-data
>>> file plus control.tar.gz. and data.tar.gz, which you can untar as usual.
>>> data.tar.gz is meants to be untarred in /, i.e. it contains all folders
>>> up from usr, var, etc.
>>>   
>
> Indeed, thank you both for asking & answering - I've been planning to
> learn to create .deb packages for a long time. Now that I'm able to
> open .deb and .ipk packages (didn't know earlier how to do it) the
> whole thing makes a lot more sense :) Now I still need to find out
> when the included scripts (preinst prerm postrm) are run and where are
> $D and $OPT defined
Hi Risto.

If you want to create .ipk-packages, you should take a look at the 
"ipkg-build.sh"-script. You basically just do this:

ipkg-build.sh folder_with_files/


In the "folder_with_files"-folder you then put stuff like:
usr/share/applications/shortcut.desktop
opt/my_application/app.rb
CONTROL/control



It is very easy to use. You can read about the script here:
http://www.oesf.org/index.php?title=IPKG_Howto


You can download the script here:
http://www.oesf.org/howto/downloads/ipkg-build.sh


Further more, I have created a script, which reads all ".ipk"-packages 
in its own folder and creates a "Packages.gz"-file from that, so you can 
easily set up your own repository. If you (or anyone else) is 
interested, I would gladly share the source-code for this script with 
you all.

I will even set up a SVN for the script, if anyone wants to help develop it.

-- 
Med venlig hilsen
Kasper Johansen
Mail : kaspe...@gmail.com
Telefon  : +45 26173812


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Open IPKG packages from command line

2009-02-17 Thread Risto H. Kurppa
On Tue, Feb 17, 2009 at 11:47 AM, Kasper Johansen  wrote:
> For future reference: "ar -x some_package.ipk" did the trick.
>
> Thank you Gunnar!
>
>
> Gunnar Aastrand Grimnes wrote:
>> .ipk are like debian (or indeed ubuntu) packages, i.e. they are
>> initially packaged with ar, not tar. Unpacking will give you a meta-data
>> file plus control.tar.gz. and data.tar.gz, which you can untar as usual.
>> data.tar.gz is meants to be untarred in /, i.e. it contains all folders
>> up from usr, var, etc.
>>
>> - Gunnar

Indeed, thank you both for asking & answering - I've been planning to
learn to create .deb packages for a long time. Now that I'm able to
open .deb and .ipk packages (didn't know earlier how to do it) the
whole thing makes a lot more sense :) Now I still need to find out
when the included scripts (preinst prerm postrm) are run and where are
$D and $OPT defined.

Thanks again :)

r

-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Open IPKG packages from command line

2009-02-17 Thread Kasper Johansen
For future reference: "ar -x some_package.ipk" did the trick.

Thank you Gunnar!


Gunnar Aastrand Grimnes wrote:
> .ipk are like debian (or indeed ubuntu) packages, i.e. they are
> initially packaged with ar, not tar. Unpacking will give you a meta-data
> file plus control.tar.gz. and data.tar.gz, which you can untar as usual.
> data.tar.gz is meants to be untarred in /, i.e. it contains all folders
> up from usr, var, etc.
>
> - Gunnar
>
> Kasper Johansen wrote:
>   
>> Hi list.
>>
>> Is it possible to extract a IPK-package (some_package.ipk)? I do not 
>> want to install anything - just inspect the package on my Ubuntu-machine.
>>
>> I have been able to extract some packages by using "tar -zxvf" after 
>> renaming the extension to tar.gz - though I cant with all packages (and 
>> I dont know why).
>>
>> Can anyone point in the direction on how to do so?
>> 


-- 
Med venlig hilsen
Kasper Johansen
Udviklingskonsulent og software engineer
KNJ IT-solutions - Engvej 3 - DK-4970 Rødby
Mail : kaspe...@gmail.com
Telefon  : +45 31593812
Telefon  : +45 26173812


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Open IPKG packages from command line

2009-02-17 Thread Gunnar Aastrand Grimnes
.ipk are like debian (or indeed ubuntu) packages, i.e. they are
initially packaged with ar, not tar. Unpacking will give you a meta-data
file plus control.tar.gz. and data.tar.gz, which you can untar as usual.
data.tar.gz is meants to be untarred in /, i.e. it contains all folders
up from usr, var, etc.

- Gunnar

Kasper Johansen wrote:
> Hi list.
> 
> Is it possible to extract a IPK-package (some_package.ipk)? I do not 
> want to install anything - just inspect the package on my Ubuntu-machine.
> 
> I have been able to extract some packages by using "tar -zxvf" after 
> renaming the extension to tar.gz - though I cant with all packages (and 
> I dont know why).
> 
> Can anyone point in the direction on how to do so?
> 


-- 
Gunnar Aastrand Grimnes
gunnar.grimnes [AT] dfki.de

DFKI GmbH
Knowledge Management
Trippstadter Strasse 122
D-67663 Kaiserslautern
Germany

Office: +49 631 205 75-117
Mobile: +49 177 277 4397



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community