| @@ -1,29 +1,32 @@ | | | @@ -1,29 +1,32 @@ |
1 | # $NetBSD: Makefile,v 1.6 2011/04/22 13:44:25 obache Exp $ | | 1 | # $NetBSD: Makefile,v 1.7 2011/06/07 11:47:04 taca Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | PKGNAME= nagios-plugin-radius-${PLUGINSVERSION} | | 4 | PKGNAME= nagios-plugin-radius-${PLUGINSVERSION} |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 2 |
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 | PKG_DESTDIR_SUPPORT= user-destdir | | 12 | PKG_DESTDIR_SUPPORT= user-destdir |
13 | | | 13 | |
14 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins | | 14 | DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins |
15 | DEPENDS+= p5-Net-SNMP-[0-9]*:../../net/p5-Net-SNMP | | 15 | DEPENDS+= p5-Net-SNMP-[0-9]*:../../net/p5-Net-SNMP |
16 | | | 16 | |
| | | 17 | # linked with libradiusclient-ng.so. |
| | | 18 | BUILDLINK_DEPMETHOD.radiusclient-ng= full |
| | | 19 | |
17 | BUILD_DEFS+= PKG_SYSCONFBASE | | 20 | BUILD_DEFS+= PKG_SYSCONFBASE |
18 | | | 21 | |
19 | .include "../../net/nagios-plugins/Makefile.common" | | 22 | .include "../../net/nagios-plugins/Makefile.common" |
20 | | | 23 | |
21 | BINARY_TARGET= check_radius | | 24 | BINARY_TARGET= check_radius |
22 | | | 25 | |
23 | SUBST_CLASSES+= config | | 26 | SUBST_CLASSES+= config |
24 | SUBST_STAGE.config= post-patch | | 27 | SUBST_STAGE.config= post-patch |
25 | SUBST_FILES.config= plugins/check_radius.c | | 28 | SUBST_FILES.config= plugins/check_radius.c |
26 | SUBST_SED.config= -e "s|@SYSCONFDIR@|${PKG_SYSCONFBASE}|g" | | 29 | SUBST_SED.config= -e "s|@SYSCONFDIR@|${PKG_SYSCONFBASE}|g" |
27 | SUBST_MESSAGE.config= Fixing configuration file path. | | 30 | SUBST_MESSAGE.config= Fixing configuration file path. |
28 | | | 31 | |
29 | .include "../../net/nagios-plugins/Makefile.plugin" | | 32 | .include "../../net/nagios-plugins/Makefile.plugin" |