apcupsd - suggestions from author

The following is an email from the apcupsd author (posted here with his permission) which suggests a course of action:

----------

In reply to "Dan Langille" who wrote:

>On 22 Nov 2003 at 1:25, Lars Köller wrote:

>Yes, I noticed that last night.  Do you want help getting the drivers 
>going? I know at least one other person wanting USB.  Can you point 
>us in the right direction?  What files are causing problems?

Yes, shure. My time is very limited, and I didn't have an APC with USB 
interface.

The first problem is the configure file:

# Check whether --enable-usb or --disable-usb was given.
if test "${enable_usb+set}" = set; then
  enableval="$enable_usb"
   if test "$enableval" = "yes" ; then
        if test "$host_os" = "linux-gnu"
        then
                cat >>confdefs.h <<\_ACEOF
#define HAVE_USB_DRIVER 1
_ACEOF

                USB_DRIVER="usb"

        else
                echo "Can't build USB driver on this OS, disabled."
        fi
        fi
fi;


this is easy to fix. The compile than breaks on the special driver file:

..../apcupsd-3.10.6/src/drivers/usb/linux-usb.c

The device needed is the uhid. However the first question is what lib 
to start with:

  /usr/lib/libusb.so
  /usr/lib/libusbhid.so

or /usr/ports/devel/libusb? If we want an unified driver for more than 
one OS, I think we should try the ports version.

But it seems to be hard work .....

Regards

Lars