nagios-plugins/Makefile.plugin -> nagios-plugins/plugin.mkdiff -r1.20 -r1.21 pkgsrc/net/nagios-plugin-ldap/Makefile
(sekiya)
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | # $NetBSD: Makefile,v 1.20 2020/01/18 21:50:19 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.21 2023/01/09 00:14:06 sekiya Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | PKGNAME= nagios-plugin-ldap-${PLUGINSVERSION} | 4 | PKGNAME= nagios-plugin-ldap-${PLUGINSVERSION} | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 1 | |
6 | CATEGORIES= net sysutils databases | 6 | CATEGORIES= net sysutils databases | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | COMMENT= Nagios ldap plugin | 9 | COMMENT= Nagios ldap plugin | |
10 | LICENSE= gnu-gpl-v3 | 10 | LICENSE= gnu-gpl-v3 | |
11 | 11 | |||
12 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | 12 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | |
13 | 13 | |||
14 | .include "../../net/nagios-plugins/Makefile.common" | 14 | .include "../../net/nagios-plugins/Makefile.common" | |
15 | 15 | |||
16 | BINARY_TARGET= check_ldap | 16 | BINARY_TARGET= check_ldap | |
17 | 17 | |||
18 | CONFIGURE_ARGS+= --with-ldap=yes | 18 | CONFIGURE_ARGS+= --with-ldap=yes | |
19 | 19 | |||
20 | .include "../../net/nagios-plugins/Makefile.plugin" | 20 | .include "../../net/nagios-plugins/plugin.mk" | |
21 | .include "../../databases/openldap-client/buildlink3.mk" | 21 | .include "../../databases/openldap-client/buildlink3.mk" | |
22 | .include "../../security/openssl/buildlink3.mk" | 22 | .include "../../security/openssl/buildlink3.mk" | |
23 | .include "../../devel/gettext-lib/buildlink3.mk" | 23 | .include "../../devel/gettext-lib/buildlink3.mk" | |
24 | .include "../../mk/bsd.pkg.mk" | 24 | .include "../../mk/bsd.pkg.mk" |
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | # $NetBSD: Makefile,v 1.20 2021/06/23 20:33:15 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.21 2023/01/09 00:14:06 sekiya Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | PKGNAME= nagios-plugin-mysql-${PLUGINSVERSION} | 4 | PKGNAME= nagios-plugin-mysql-${PLUGINSVERSION} | |
5 | PKGREVISION= 2 | 5 | PKGREVISION= 2 | |
6 | CATEGORIES= net sysutils databases | 6 | CATEGORIES= net sysutils databases | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | COMMENT= Nagios mysql plugin | 9 | COMMENT= Nagios mysql plugin | |
10 | LICENSE= gnu-gpl-v3 | 10 | LICENSE= gnu-gpl-v3 | |
11 | 11 | |||
12 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | 12 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | |
13 | 13 | |||
14 | CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client} | 14 | CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client} | |
15 | 15 | |||
16 | .include "../../net/nagios-plugins/Makefile.common" | 16 | .include "../../net/nagios-plugins/Makefile.common" | |
17 | 17 | |||
18 | BINARY_TARGET= check_mysql | 18 | BINARY_TARGET= check_mysql | |
19 | 19 | |||
20 | .include "../../net/nagios-plugins/Makefile.plugin" | 20 | .include "../../net/nagios-plugins/plugin.mk" | |
21 | .include "../../mk/mysql.buildlink3.mk" | 21 | .include "../../mk/mysql.buildlink3.mk" | |
22 | .include "../../security/openssl/buildlink3.mk" | 22 | .include "../../security/openssl/buildlink3.mk" | |
23 | .include "../../devel/gettext-lib/buildlink3.mk" | 23 | .include "../../devel/gettext-lib/buildlink3.mk" | |
24 | .include "../../mk/bsd.pkg.mk" | 24 | .include "../../mk/bsd.pkg.mk" |
@@ -1,25 +1,25 @@ | @@ -1,25 +1,25 @@ | |||
1 | # $NetBSD: Makefile,v 1.22 2020/01/18 21:50:19 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.23 2023/01/09 00:14:06 sekiya Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | PKGNAME= nagios-plugin-pgsql-${PLUGINSVERSION} | 4 | PKGNAME= nagios-plugin-pgsql-${PLUGINSVERSION} | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 1 | |
6 | CATEGORIES= net sysutils databases | 6 | CATEGORIES= net sysutils databases | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | COMMENT= Nagios pgsql plugin | 9 | COMMENT= Nagios pgsql plugin | |
10 | LICENSE= gnu-gpl-v3 | 10 | LICENSE= gnu-gpl-v3 | |
11 | 11 | |||
12 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | 12 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | |
13 | 13 | |||
14 | CONFIGURE_ARGS+= --with-pgsql=${BUILDLINK_PREFIX.pgsql-lib} | 14 | CONFIGURE_ARGS+= --with-pgsql=${BUILDLINK_PREFIX.pgsql-lib} | |
15 | #CPPFLAGS+= -I${PGSQL_PREFIX}/include/pgsql | 15 | #CPPFLAGS+= -I${PGSQL_PREFIX}/include/pgsql | |
16 | 16 | |||
17 | .include "../../net/nagios-plugins/Makefile.common" | 17 | .include "../../net/nagios-plugins/Makefile.common" | |
18 | 18 | |||
19 | BINARY_TARGET= check_pgsql | 19 | BINARY_TARGET= check_pgsql | |
20 | 20 | |||
21 | .include "../../net/nagios-plugins/Makefile.plugin" | 21 | .include "../../net/nagios-plugins/plugin.mk" | |
22 | .include "../../mk/pgsql.buildlink3.mk" | 22 | .include "../../mk/pgsql.buildlink3.mk" | |
23 | .include "../../security/openssl/buildlink3.mk" | 23 | .include "../../security/openssl/buildlink3.mk" | |
24 | .include "../../devel/gettext-lib/buildlink3.mk" | 24 | .include "../../devel/gettext-lib/buildlink3.mk" | |
25 | .include "../../mk/bsd.pkg.mk" | 25 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.20 2020/01/18 21:50:20 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.21 2023/01/09 00:14:06 sekiya Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | PKGNAME= nagios-plugin-radius-${PLUGINSVERSION} | 4 | PKGNAME= nagios-plugin-radius-${PLUGINSVERSION} | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 1 | |
6 | CATEGORIES= net sysutils | 6 | CATEGORIES= net sysutils | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | COMMENT= Nagios radius plugin | 9 | COMMENT= Nagios radius plugin | |
10 | LICENSE= gnu-gpl-v3 | 10 | LICENSE= gnu-gpl-v3 | |
11 | 11 | |||
12 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | 12 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | |
13 | DEPENDS+= p5-Net-SNMP-[0-9]*:../../net/p5-Net-SNMP | 13 | DEPENDS+= p5-Net-SNMP-[0-9]*:../../net/p5-Net-SNMP | |
14 | 14 | |||
@@ -17,18 +17,18 @@ BUILDLINK_DEPMETHOD.radiusclient-ng= ful | @@ -17,18 +17,18 @@ BUILDLINK_DEPMETHOD.radiusclient-ng= ful | |||
17 | 17 | |||
18 | BUILD_DEFS+= PKG_SYSCONFBASE | 18 | BUILD_DEFS+= PKG_SYSCONFBASE | |
19 | 19 | |||
20 | .include "../../net/nagios-plugins/Makefile.common" | 20 | .include "../../net/nagios-plugins/Makefile.common" | |
21 | 21 | |||
22 | BINARY_TARGET= check_radius | 22 | BINARY_TARGET= check_radius | |
23 | 23 | |||
24 | SUBST_CLASSES+= config | 24 | SUBST_CLASSES+= config | |
25 | SUBST_STAGE.config= pre-configure | 25 | SUBST_STAGE.config= pre-configure | |
26 | SUBST_FILES.config= plugins/check_radius.c | 26 | SUBST_FILES.config= plugins/check_radius.c | |
27 | SUBST_SED.config= -e "s|@SYSCONFDIR@|${PKG_SYSCONFBASE}|g" | 27 | SUBST_SED.config= -e "s|@SYSCONFDIR@|${PKG_SYSCONFBASE}|g" | |
28 | SUBST_MESSAGE.config= Fixing configuration file path. | 28 | SUBST_MESSAGE.config= Fixing configuration file path. | |
29 | 29 | |||
30 | .include "../../net/nagios-plugins/Makefile.plugin" | 30 | .include "../../net/nagios-plugins/plugin.mk" | |
31 | .include "../../net/radiusclient-ng/buildlink3.mk" | 31 | .include "../../net/radiusclient-ng/buildlink3.mk" | |
32 | .include "../../security/openssl/buildlink3.mk" | 32 | .include "../../security/openssl/buildlink3.mk" | |
33 | .include "../../devel/gettext-lib/buildlink3.mk" | 33 | .include "../../devel/gettext-lib/buildlink3.mk" | |
34 | .include "../../mk/bsd.pkg.mk" | 34 | .include "../../mk/bsd.pkg.mk" |
@@ -1,27 +1,27 @@ | @@ -1,27 +1,27 @@ | |||
1 | # $NetBSD: Makefile,v 1.30 2022/06/28 11:35:03 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.31 2023/01/09 00:14:06 sekiya Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | PKGNAME= nagios-plugin-snmp-${PLUGINSVERSION} | 4 | PKGNAME= nagios-plugin-snmp-${PLUGINSVERSION} | |
5 | PKGREVISION= 6 | 5 | PKGREVISION= 6 | |
6 | CATEGORIES= net sysutils | 6 | CATEGORIES= net sysutils | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | COMMENT= Nagios snmp plugins | 9 | COMMENT= Nagios snmp plugins | |
10 | LICENSE= gnu-gpl-v3 | 10 | LICENSE= gnu-gpl-v3 | |
11 | 11 | |||
12 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | 12 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | |
13 | DEPENDS+= p5-Net-SNMP-[0-9]*:../../net/p5-Net-SNMP | 13 | DEPENDS+= p5-Net-SNMP-[0-9]*:../../net/p5-Net-SNMP | |
14 | 14 | |||
15 | .include "../../net/nagios-plugins/Makefile.common" | 15 | .include "../../net/nagios-plugins/Makefile.common" | |
16 | 16 | |||
17 | USE_TOOLS+= perl:run | 17 | USE_TOOLS+= perl:run | |
18 | 18 | |||
19 | BINARY_TARGET= check_snmp check_hpjd | 19 | BINARY_TARGET= check_snmp check_hpjd | |
20 | SCRIPT_TARGET= check_ifoperstatus check_ifstatus | 20 | SCRIPT_TARGET= check_ifoperstatus check_ifstatus | |
21 | SCRIPT_TARGET+= check_breeze check_wave | 21 | SCRIPT_TARGET+= check_breeze check_wave | |
22 | 22 | |||
23 | .include "../../net/nagios-plugins/Makefile.plugin" | 23 | .include "../../net/nagios-plugins/plugin.mk" | |
24 | .include "../../net/net-snmp/buildlink3.mk" | 24 | .include "../../net/net-snmp/buildlink3.mk" | |
25 | .include "../../security/openssl/buildlink3.mk" | 25 | .include "../../security/openssl/buildlink3.mk" | |
26 | .include "../../devel/gettext-lib/buildlink3.mk" | 26 | .include "../../devel/gettext-lib/buildlink3.mk" | |
27 | .include "../../mk/bsd.pkg.mk" | 27 | .include "../../mk/bsd.pkg.mk" |
# $NetBSD: plugin.mk,v 1.1 2023/01/09 00:14:06 sekiya Exp $
#
INSTALLATION_DIRS+= libexec/nagios
do-build:
cd ${WRKSRC}/lib && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE}
cd ${WRKSRC}/gl && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE}
.if ${BINARY_TARGET:D1}
cd ${WRKSRC}/plugins && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} ${BINARY_TARGET}
.endif
.if ${SCRIPT_TARGET:D1}
cd ${WRKSRC}/plugins-scripts && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} ${SCRIPT_TARGET}
.endif
do-install:
.if ${BINARY_TARGET:D1}
for PROG in ${BINARY_TARGET}; do \
${INSTALL_PROGRAM} ${WRKSRC}/plugins/$${PROG} \
${DESTDIR}${PREFIX}/libexec/nagios; \
done
.endif
.if ${SCRIPT_TARGET:D1}
for PROG in ${SCRIPT_TARGET}; do \
${INSTALL_SCRIPT} ${WRKSRC}/plugins-scripts/$${PROG} \
${DESTDIR}${PREFIX}/libexec/nagios; \
done
.endif