Attempting apcupsd build

  • I am attempting to compile the apcupsd package for 8.2.4 using the cross compiler / build instructions on the wiki.

    My initial attempt to just pull the binary from raspbian did not work because it was linked with various libraries not present in LibreELEC. I don't need those libraries/features so I can --disable those features.

    I made some progress, but am stuck at:

    Code
    build@srv241:~/LibreELEC.tv$ PROJECT=RPi2 ARCH=arm scripts/build apcupsd
    BUILD    apcupsd (target)
    Executing (target): /home/build/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.4/apcupsd-3.14.14/configure --host=armv7ve-libreelec-linux-gnueabi --build=x86_64-linux-gnu --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --disable-static --enable-shared --disable-snmp --disable-test --disable-modbus-usb --disable-modbus --disable-gapcmon --disable-apcagent
    configure: WARNING: unrecognized options: --disable-static, --enable-shared
    configure: error: cannot find install-sh or install.sh in /home/build/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.4/apcupsd-3.14.14/.armv7ve-libreelec-linux-gnueabi/autoconf "/home/build/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.4/apcupsd-3.14.14"//home/build/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.4/apcupsd-3.14.14/.armv7ve-libreelec-linux-gnueabi/autoconf

    Not really sure how to proceed at this point. The only file present in the above autoconf directory is config.log.

    Here is the apcupsd/package.mk I created:

    Any suggestions would be appreciated, thanks.