Active Topics

 


Reply
Thread Tools
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#21
I stand corrected - it can't be started from the current dir. Should be started like this:

Code:
/var/lib/dpkg/info/[package-name].gxmessage
Package name should be the "Package:" from the control file.
 
Posts: 225 | Thanked: 59 times | Joined on Jul 2007
#22
Just a heads up.
I just downloaded gxmessage (just the executable, actually I grabbed it from the widelands deb) and tried to run it on my 770, OS2006, and got an error about libpangocairo-1.0.so.0.

So, it looks nice, but it's for newer OSes. As long as the app is destined for newer OSes, that shouldn't be a problem. :-)

So, for my package, I'll stick with the maemo-confirm-text so it'll work will all versions of the OS. (hopefully) :-)

desiv
 
Posts: 225 | Thanked: 59 times | Joined on Jul 2007
#23
Just an update. I finally got my package built.
I use ukki's script, but in preinstall.
I create the symlink.
I tried doing just that, but apparently, as it copies the data to the MMC, it tried to change the rights (or group???). That wasn't working.
So I tar'd the data and extracted it in the postinstall to the mmc.
That seems to have worked fine. I probably had my group wrong, but I was doing this on the tablet, and I didn't have enough free space to copy it to the root filesystem to fix. (My mmc is standard FAT32)

Anyway, it worked.
Thanx to arnims, ukki, pypackager, and this website.

Of course, at this point, it's only worked for me, but one user with a 770 w/ OS2006 is a great test bed. :-)

desiv
 
Posts: 225 | Thanked: 59 times | Joined on Jul 2007
#24
OK, I tweaked ukki's script so that it creates a symbolic link first.
However, I had some ownership issues, so I still untar the data in the postinst, but I also added file sizing.

So, it tells you how much free space you have on each MMC.
If you have only one MMC, it'll show you the free space of the / partition, which is where it will all go anyway. If you have 2 MMC cards, it'll show you free space on both.

Here's my preinst script.
-----------------------------------------------------------------------------
#!/bin/sh
mmc1=`df -h | grep mmc1 | awk '{print $4}'`
mmc2=`df -h | grep mmc2 | awk '{print $4}'`
root=`df -h | grep /$ | awk '{print $4}'`
if [ -z $mmc1 ]
then
mmc1=$root;
fi
if [ -z $mmc2 ]
then
mmc2=$root;
fi
echo "Please select the memory card you want to place the data files on:" > /tmp/card.txt
echo "" >> /tmp/card.txt
echo "(OK) = mmc1 -" $mmc1 "free" >> /tmp/card.txt
echo "(Cancel) = mmc2 -" $mmc2 "free" >> /tmp/card.txt
CARD=1
`/usr/bin/maemo-confirm-text "Please select the memory card" /tmp/card.txt`
if test "$?" = "1"
then
CARD=2
fi
/bin/mkdir -p /media/mmc$CARD/share/formido/data
/bin/mkdir -p /usr/share/games/formido
/bin/ln -s /media/mmc$CARD/share
-------------------------------
desiv
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:56.