Re: Need help making simple .bb for Wifi-radar

Michael 'Mickey' Lauer <[email protected]>
Newsgroups gmane.comp.handhelds.openzaurus.devel
Organization Institute of Computer Science, University of Frankfurt
Message-ID <[email protected]>
Am Sonntag, den 14.05.2006, 15:38 +0200 schrieb Nicolas FR:
> WiFi Radar is a Python/PyGTK2  utility for managing WiFi profiles. It
> runs just fine on Openzaurus with manual install. I am trying to make
> a proper .bb recipe for it, but I am stuck.

Python applications should be using distutils... 

> There's a Makefile in the archive with a simple rule for install. All
> the destinations dirs are defined as:
> sbindir         = /usr/sbin
> initdir         = /etc/init.d
> sysconfdir      = /etc/wifi-radar
> mandir          = /usr/share/man
> pixmapsdir      = /usr/share/pixmaps
> appsdir         = /usr/share/applications
> 
> What should I do? Patch the Makefile? Or is there some variable that I
> can define in the .bb so that when the install rule is proceded, the
> files get installed in the proper bitbake directory and not in my
> system dirs?

You have to override all variables, i.e.

oe_runmake sbindir=${D}${sbindir} initdir=${sysconfdir}/init.d ...
install

Have a look at do_install in autotools.bbclass
-- 
Regards,

Mickey.
------------------------------------------------------------------
Dipl.-Inf. Michael 'Mickey' Lauer <[email protected]>
------------------------------------------------------------------




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.