diff --git a/net-mgmt/check_mysql_health/Makefile b/net-mgmt/check_mysql_health/Makefile index 6cbb22ccdcb3..3d7e25248969 100644 --- a/net-mgmt/check_mysql_health/Makefile +++ b/net-mgmt/check_mysql_health/Makefile @@ -1,35 +1,42 @@ PORTNAME= check_mysql_health DISTVERSION= 3.0.0.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net-mgmt MASTER_SITES= https://labs.consol.de/assets/downloads/nagios/ MAINTAINER= kirill@varnakov.com COMMENT= Nagios plugin to check various parameters of a MySQL database WWW= https://labs.consol.de/de/nagios/check_mysql_health/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= ${DBD_MYSQL} USES= autoreconf mysql perl5 gmake GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-statefiles-dir=${NAGIOSDIR} \ --with-nagios-user=${NAGIOSUSER} \ --with-nagios-group=${NAGIOSGROUP} \ --with-mymodules-dir=${PREFIX}/libexec/nagios \ --with-mymodules-dyn-dir=${PREFIX}/libexec/nagios \ --libexecdir=${PREFIX}/libexec/nagios \ --with-perl=${PERL} NO_ARCH= yes NAGIOSUSER?= nagios NAGIOSGROUP?= nagios NAGIOSDIR?= /var/spool/nagios PLIST_FILES= libexec/nagios/check_mysql_health +.include + +# Change regexp for older awk +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400000 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-plugins-scripts_subst.in +.endif + .include diff --git a/net-mgmt/check_mysql_health/files/extra-patch-plugins-scripts_subst.in b/net-mgmt/check_mysql_health/files/extra-patch-plugins-scripts_subst.in new file mode 100644 index 000000000000..22497c07c761 --- /dev/null +++ b/net-mgmt/check_mysql_health/files/extra-patch-plugins-scripts_subst.in @@ -0,0 +1,11 @@ +--- plugins-scripts/subst.in.orig 2016-08-01 16:28:29.583644100 +0000 ++++ plugins-scripts/subst.in 2025-05-12 18:58:53.592280000 +0000 +@@ -41,7 +41,7 @@ + + /^#! ?\/.*\/python/ {sub(/^#! ?\/.*\/python/,"#! @PYTHON@");} + /^#! ?\/.*\/perl/ {sub(/^#! ?\/.*\/perl/,"#! @PERL@");} +-/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! @AWK@");} ++/^#! ?\/.*\/[a-z]?[a-z]?awk/ {sub(/^#! ?\/.*\/[a-z]?[a-z]?awk/,"#! @AWK@");} + /^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");} + + # add to libexecdir to INC for perl utils.pm