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:
Code
PKG_NAME="apcupsd"
PKG_VERSION="3.14.14"
#PKG_ARCH="any"
PKG_LICENSE="GPLv3"
PKG_SITE="http://www.apcupsd.org/"
PKG_URL="http://archive.raspbian.org/raspbian/pool/main/a/apcupsd/apcupsd_$PKG_VERSION.orig.tar.gz"
PKG_DEPENDS_TARGET="toolchain libusb"
PKG_SHORTDESC="apcupsd - for controlling APC UPS"
PKG_IS_ADDON="no"
#PKG_AUTORECONF="no"
PKG_CONFIGURE_OPTS_TARGET="--disable-snmp --disable-test --disable-modbus-usb --disable-modbus --disable-gapcmon --disable-apcagent"
Display More
Any suggestions would be appreciated, thanks.