monit: fix autoreconf

autoreconf needs to be told where to find macros as the Makefile.am does
not do this.

Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Ross Burton 2025-02-26 14:36:28 +00:00
parent b3cb662fe3
commit 3083eb9f27

View File

@ -20,6 +20,9 @@ SRC_URI[sha256sum] = "ef607cfaabfd3767d40b9b9e32032f748beebc4d686831f6111e0e68fb
DEPENDS = "zlib bison-native libnsl2 flex-native openssl virtual/crypt"
inherit autotools-brokensep systemd update-rc.d
# brokensep because | ../../monit-5.34.4/libmonit/src/util/Str.c:26:10: fatal error: Config.h: No such file or directory
EXTRA_AUTORECONF += "-I config"
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam"
@ -38,10 +41,6 @@ INITSCRIPT_PACKAGES = "${PN}"
INITSCRIPT_NAME:${PN} = "monit"
INITSCRIPT_PARAMS:${PN} = "defaults 89"
do_configure:prepend() {
rm -rf ${S}/m4/*
}
do_install:append() {
# Configuration file