|
2009-12-23
, 17:17
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#22
|
at least in my specific case I am going to do the original suggestion javis and I think might work.
The Following User Says Thank You to javispedro For This Useful Post: | ||
|
2009-12-23
, 17:35
|
|
Posts: 1,635 |
Thanked: 1,816 times |
Joined on Apr 2008
@ Manchester, England
|
#23
|
|
2009-12-23
, 18:09
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#24
|
#!/bin/sh set -e case "$1" in configure) ... blablabla ... esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. exit 0 --stuff added by maemo-optify starts now-- # Added by maemo-optify, with apologies. optify () { ... }
|
2009-12-23
, 21:50
|
|
Posts: 2,535 |
Thanked: 6,681 times |
Joined on Mar 2008
@ UK
|
#25
|
|
2009-12-23
, 21:59
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#26
|
The Following User Says Thank You to mikkov For This Useful Post: | ||
|
2009-12-23
, 22:12
|
|
Posts: 819 |
Thanked: 806 times |
Joined on Jun 2009
@ Oxnard, Ca.
|
#27
|
i created a new liq* app and enabled maemo-optify in the entire thing.
the following is the bare essentials that I am trying to optify.
bigfile.fakepicture.jpg is exactly what it says, 50mb of media which *SHOULD* be optified.
/usr/share/liqbase/maeoptifytest/
/usr/share/liqbase/maeoptifytest/maeoptifytest
/usr/share/liqbase/maeoptifytest/maeoptifytest.so
/usr/share/liqbase/maeoptifytest/media
/usr/share/liqbase/maeoptifytest/media/bigfile.fakepicture.jpg
/usr/share/liqbase/maeoptifytest/media/readme
maemo-optify in the package runs over hte contents and finds this one large file to optify, saving 50mb
what happens next is where things get interesting.
the bigfile in this instance is 50mb of required media and I want to install it on a machine with 45mb remaining.
maemo-optify works in the following manner:
for each file it finds needing optification, it calls a custom function which is inserted into the POSTINST file, like this:
the fact this is in the postinst is important, it has to use the whole 50mb immediately to first contain the file, then after everything is done it will move the file to /opt
extra points if you can spot any other potential issues.
i'm gonna do some more investigation and see if theres a way round this
(at least in my specific case I am going to do the original suggestion javis and I think might work), I just dont want this breaking for everyone.
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk