On 07/21/2011 01:31 PM, Tilman Glotzner wrote:

That worked, and nut compiles and builds.

Awesome!

Now I need to install nut in the image to be downloaded to the embeeded board. 
How can I set installation path ? Will the --prefix option for the configure 
script do the trick ?


You might consider packaging and installing with something like opkg.

I use archlinux (which is now available on certain arm architectures) for this configuration (--prefix=/usr) the package list is attached below.

How much of this you install on your embedded system will depend on what functionality you expect the system to have. For instance you almost certainly don't need the man pages.

There's also a pretty good tutorial on building packages into the buildroot 
image:
http://buildroot.uclibc.org/buildroot.html#autotools-tutorial
that, or opkg or pacman, might be a better long term solution.

Good Luck!

johnea

~~~~~~~~~~~~~~~~~~~~~ package list file attached ~~~~~~~~~~~~~~~~~~~~~
[johnea@nexus pkg]$ ls -R
.:
etc/  lib/  usr/

/etc:
rc.d/  ups/

/etc/rc.d:
upsd*

/etc/ups:
hosts.conf.sample  upsd.conf.sample    upssched.conf
nut.conf.sample    upsd.users          upssched.conf.sample
ups.conf           upsd.users.sample   upsset.conf.sample
ups.conf.sample    upsmon.conf         upsstats-single.html.sample
upsd.conf          upsmon.conf.sample  upsstats.html.sample

/lib:
udev/

/lib/udev:
rules.d/

/lib/udev/rules.d:
52-nut-usbups.rules

/usr:
bin/  lib/  sbin/  share/

/usr/bin:
apcsmart*      blazer_usb*    liebert*       optiups*        tripplitesu*
bcmxcp*        clone*         liebert-esp2*  powercom*       upsc*
bcmxcp_usb*    clone-outlet*  masterguard*   powerpanel*     upscmd*
belkin*        dummy-ups*     metasys*       rhino*          upscode2*
belkinunv*     etapro*        mge-shut*      richcomm_usb*   upsdrvctl*
bestfcom*      everups*       mge-utalk*     safenet*        upslog*
bestfortress*  gamatronic*    microdowell*   skel*           upsrw*
bestuferrups*  genericups*    netxml-ups*    solis*          upssched-cmd*
bestups*       isbmex*        newmge-shut*   tripplite*      usbhid-ups*
blazer_ser*    ivtscd*        oneac*         tripplite_usb*  victronups*

/usr/lib:
libupsclient.a  libupsclient.so@  libupsclient.so.1@  libupsclient.so.1.0.0*

/usr/sbin:
upsd*  upsmon*  upssched*

/usr/share:
man/  ups/  webapps/

/usr/share/man:
man5/  man8/

/usr/share/man/man5:
hosts.conf.5  ups.conf.5   upsd.users.5   upssched.conf.5  upsstats.html.5
nut.conf.5    upsd.conf.5  upsmon.conf.5  upsset.conf.5

/usr/share/man/man8:
apcsmart.8      dummy-ups.8     mge-shut.8      safenet.8        upslog.8
bcmxcp.8        etapro.8        mge-utalk.8     solis.8          upsmon.8
bcmxcp_usb.8    everups.8       microdowell.8   tripplite.8      upsrw.8
belkin.8        gamatronic.8    netxml-ups.8    tripplite_usb.8  upssched.8
belkinunv.8     genericups.8    nutupsdrv.8     tripplitesu.8    upsset.cgi.8
bestfcom.8      isbmex.8        oneac.8         upsc.8           upsstats.cgi.8
bestfortress.8  ivtscd.8        optiups.8       upscmd.8         usbhid-ups.8
bestuferrups.8  liebert-esp2.8  powercom.8      upscode2.8       victronups.8
bestups.8       liebert.8       powerpanel.8    upsd.8
blazer.8        masterguard.8   rhino.8         upsdrvctl.8
clone.8         metasys.8       richcomm_usb.8  upsimage.cgi.8

/usr/share/ups:
cmdvartab  driver.list

/usr/share/webapps:
nut/

/usr/share/webapps/nut:
bottom.html  index.html      upsimage.cgi*  upsstats.cgi*
header.html  nut-banner.png  upsset.cgi*

_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to