Building apcupsd on OmniOS


  1. OmniOS Dependencies
  2. # pkg install developer/gcc10 developer/pkg-config \
    developer/parser/bison developer/build/gnu-make \
    developer/object-file system/library/math system/header \
    system/header/header-ugen system/header/header-usb
    
  3. https://github.com/oxidecomputer/libusb
  4. 
    $ ./configure --prefix=/etc/opt/apcupsd
    
  5. https://sourceforge.net/projects/libusb/files/libusb-compat-0.1/
  6. 
    $ env PKG_CONFIG_PATH=/etc/opt/apcupsd/lib/pkgconfig \
    ./configure  --prefix=/etc/opt/apcupsd
    
  7. https://sourceforge.net/projects/apcupsd/files/apcupsd - Stable/
  8. 
    $ env PKG_CONFIG_PATH=/etc/opt/apcupsd/lib/pkgconfig \
    LDFLAGS="-L/etc/opt/apcupsd/lib -R/etc/opt/apcupsd/lib" \
    CPPFLAGS=-I/etc/opt/apcupsd/include \
    ./configure --prefix=/opt/apcupsd \
    --with-lock-dir=/var/run  --with-log-dir=/var/opt/apcupsd \
    --enable-usb
    $ gmake
    
    UPSCABLE usb
    UPSTYPE usb
    #DEVICE /dev/ttya
    
    

John D. Groenveld <groenveld@acm.org>
$Id: apcupsd.html,v 1.4 2023/07/29 00:07:38 john Exp john $