apcupsd: add cgi files
Hello,
it would be nice to add also the creation of the cgi files in the build
of apcupsd.
I have done some tests with the package from the main tree. It’s simply
to adapt the APKBUILD file like following:
Change depends and makedepends line to add gd, respectively gd-dev
depends="util-linux gd"
makedepends="net-snmp-dev man linux-headers gd-dev"
and app —enable-cgi in the ./configure command:
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-usb \
--enable-snmp \
--enable-cgi \
|| return 1
So 6 new files are generated in the /etc/apcupsd folder. The 4 *.cgi files can then be copied into the cgi-bin folder of a web server (mini_httpd from the Alpine Configuration Framework for example). Then the apcupsd status can be check easily remotely.
Thanks and best regards,
Frank
(from redmine: issue id 4962, created on 2015-12-16, closed on 2017-05-19)