maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   how to make an opt folder? (https://talk.maemo.org/showthread.php?t=55425)

FunFair 2010-06-07 09:31

how to make an opt folder?
 
did anyone knw that how to package ur .deb file and make it install most of its file into opt folder? or is there any tutorial about it? u wont pass ovi if ur app din have a opt folder, i dun even knw what is that, i have totally no idea how does it work!!! -__-"

danielwilms 2010-06-07 09:40

Re: how to make an opt folder?
 
Hi,

you can find a lot of information in the wiki, some good pages you'll find here and here.

Daniel

jamie721 2010-06-07 09:43

Re: how to make an opt folder?
 
Quote:

Originally Posted by FunFair (Post 703198)
did anyone knw that how to package ur .deb file and make it install most of its file into opt folder? or is there any tutorial about it? u wont pass ovi if ur app din have a opt folder, i dun even knw what is that, i have totally no idea how does it work!!! -__-"


I am at the same point as you. Im wanting to package my app an start optifyng it.

firstly i would go to the wiki area and read the two packaging tutorials one is just packaging and one is for packaging for qt applications.

if you dont know how to find wikis on this site go to comunity at the top and then to use wiki, then use the search box top right. when i get home i will start trying to package mine and will share my experiance with you.

edit: danelw u beat me :D

FunFair 2010-06-08 08:25

Re: how to make an opt folder?
 
that's y i post and ask here... i really gt confuse by wiki's explain... i cant really understand it at all... -.-

Rob1n 2010-06-08 09:11

Re: how to make an opt folder?
 
Quote:

Originally Posted by FunFair (Post 704971)
that's y i post and ask here... i really gt confuse by wiki's explain... i cant really understand it at all... -.-

The ideal solution is to use the application's configure/make/install scripts to install under /opt by default. The other option is to use maemo-optify (see http://maemo.gitorious.org/maemo-af/.../master/README) in your debian/rules file, or maemo-optify-deb on a completed .deb file.

FunFair 2010-06-08 09:48

Re: how to make an opt folder?
 
Quote:

Originally Posted by Rob1n (Post 705032)
The ideal solution is to use the application's configure/make/install scripts to install under /opt by default. The other option is to use maemo-optify (see http://maemo.gitorious.org/maemo-af/.../master/README) in your debian/rules file, or maemo-optify-deb on a completed .deb file.

ya... i keep trying about it for a day...i have download the maemo-optify.deb file... and the guide say we can call it right b4 "dh_builddep"...
can you tell me that what's the command to call it?

Do i have to put the maemo-optify.deb file in the debian folder?

do i have to rename it since when we download the filename was "maemo-optify_0.2.1_all.deb"

big thanks for help~

Rob1n 2010-06-08 09:53

Re: how to make an opt folder?
 
Quote:

Originally Posted by FunFair (Post 705091)
ya... i keep trying about it for a day...i have download the maemo-optify.deb file... and the guide say we can call it right b4 "dh_builddep"...
can you tell me that what's the command to call it?

According to the README file I linked you to:
Quote:

You can put a call to "maemo-optify" into debian/rules, immediately after dh_gencontrol or equivalent, like this:

maemo-optify PACKAGE DIR

where PACKAGE is the name of the binary package that you want to optify, and DIR is the directory with the files of the package. If you omit DIR, it defaults to "debian/PACKAGE". (The name of the package is needed for the heuristics that maemo-optify performs.)
Quote:

Originally Posted by FunFair (Post 705091)
Do i have to put the maemo-optify.deb file in the debian folder?

No, maemo-optify is run by the build process, so the .deb file will need to be installed in the scratchbox (if it's not already installed by default).

Quote:

Originally Posted by FunFair (Post 705091)
do i have to rename it since when we download the filename was "maemo-optify_0.2.1_all.deb"

No, the name of the .deb file is irrelevant.

FunFair 2010-06-08 10:06

Re: how to make an opt folder?
 
i dono did i gt what u mean... is that mean after i "qmake" and "make"... i have to manual run the "maemo-optify.deb"... after that just "dpkg-buildpackage"... ? if so... i dun really need to setting in the "rules" file... ?

i'm using MADDE to compile...

Rob1n 2010-06-08 14:08

Re: how to make an opt folder?
 
Quote:

Originally Posted by FunFair (Post 705113)
i dono did i gt what u mean... is that mean after i "qmake" and "make"... i have to manual run the "maemo-optify.deb"... after that just "dpkg-buildpackage"... ? if so... i dun really need to setting in the "rules" file... ?

i'm using MADDE to compile...

I doubt maemo-optify will work at all with MADDE. You're better modifying your .pro file to install under /opt instead of under /usr. For example, looking at http://wiki.maemo.org/MADDE/Packaging, in step 6 change the Exec to point to /opt/<projectname>/<projectname> and in Step 7 change the target.path to /opt/<projectname>. Obviously, for more complex programs there'll be other parts that need changing (install locations for data files, etc).

jamie721 2010-06-08 16:30

Re: how to make an opt folder?
 
ok thank you rob1n the link you have linked me to is enough for me to package my idea i think.

im using scratchbox tho but i think most of the qmake stuff in the .pro file should still be the same. for example the INSTALLS section.


All times are GMT. The time now is 14:16.

vBulletin® Version 3.8.8