| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.127 2020/01/18 21:48:20 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.128 2020/04/24 13:27:48 adam Exp $ |
2 | | | 2 | |
3 | .include "Makefile.common" | | 3 | .include "Makefile.common" |
4 | CATEGORIES= net | | 4 | CATEGORIES= net |
5 | PKGREVISION= 13 | | 5 | PKGREVISION= 13 |
6 | | | 6 | |
7 | MAINTAINER= adam@NetBSD.org | | 7 | MAINTAINER= adam@NetBSD.org |
8 | COMMENT= Extensible SNMP implementation | | 8 | COMMENT= Extensible SNMP implementation |
9 | | | 9 | |
10 | CONFLICTS= ucd-snmp-[0-9]* | | 10 | CONFLICTS= ucd-snmp-[0-9]* |
11 | CONFLICTS+= nocol-[0-9]* # bin/snmpget bin/snmpwalk | | 11 | CONFLICTS+= nocol-[0-9]* # bin/snmpget bin/snmpwalk |
12 | | | 12 | |
13 | USE_LIBTOOL= yes | | 13 | USE_LIBTOOL= yes |
14 | GNU_CONFIGURE= yes | | 14 | GNU_CONFIGURE= yes |
| @@ -108,31 +108,32 @@ SMF_NAME= snmp | | | @@ -108,31 +108,32 @@ SMF_NAME= snmp |
108 | USE_TOOLS+= sh:run | | 108 | USE_TOOLS+= sh:run |
109 | REPLACE_INTERPRETER+= bash | | 109 | REPLACE_INTERPRETER+= bash |
110 | REPLACE.bash.old= /bin/bash | | 110 | REPLACE.bash.old= /bin/bash |
111 | REPLACE.bash.new= ${SH} | | 111 | REPLACE.bash.new= ${SH} |
112 | REPLACE_FILES.bash= local/mib2c-update | | 112 | REPLACE_FILES.bash= local/mib2c-update |
113 | | | 113 | |
114 | INSTALLATION_DIRS+= share/examples/net-snmp | | 114 | INSTALLATION_DIRS+= share/examples/net-snmp |
115 | | | 115 | |
116 | post-extract: | | 116 | post-extract: |
117 | .if ${OPSYS} == "DragonFly" | | 117 | .if ${OPSYS} == "DragonFly" |
118 | cp ${FILESDIR}/cpu_dragonfly.c ${WRKSRC}/agent/mibgroup/hardware/cpu/cpu_nlist.c | | 118 | cp ${FILESDIR}/cpu_dragonfly.c ${WRKSRC}/agent/mibgroup/hardware/cpu/cpu_nlist.c |
119 | # XXX make it build on OS X 10.10; remove on the next update | | 119 | # XXX make it build on OS X 10.10; remove on the next update |
120 | .elif ${OPSYS} == "Darwin" | | 120 | .elif ${OPSYS} == "Darwin" |
121 | ln -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin14.h | | 121 | ${LN} -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin14.h |
122 | ln -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin15.h | | 122 | ${LN} -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin15.h |
123 | ln -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin16.h | | 123 | ${LN} -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin16.h |
124 | ln -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin17.h | | 124 | ${LN} -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin17.h |
125 | ln -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin18.h | | 125 | ${LN} -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin18.h |
| | | 126 | ${LN} -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin19.h |
126 | .endif | | 127 | .endif |
127 | | | 128 | |
128 | post-wrapper: | | 129 | post-wrapper: |
129 | .if !empty(MACHINE_PLATFORM:MNetBSD-1.5.[123]*-i386) | | 130 | .if !empty(MACHINE_PLATFORM:MNetBSD-1.5.[123]*-i386) |
130 | mkdir ${BUILDLINK_DIR}/include/sys | | 131 | mkdir ${BUILDLINK_DIR}/include/sys |
131 | cp ${FILESDIR}/disklabel.h ${BUILDLINK_DIR}/include/sys | | 132 | cp ${FILESDIR}/disklabel.h ${BUILDLINK_DIR}/include/sys |
132 | .endif | | 133 | .endif |
133 | | | 134 | |
134 | post-install: | | 135 | post-install: |
135 | ${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf \ | | 136 | ${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf \ |
136 | ${DESTDIR}${PREFIX}/share/examples/net-snmp/EXAMPLE.conf | | 137 | ${DESTDIR}${PREFIX}/share/examples/net-snmp/EXAMPLE.conf |
137 | ${INSTALL_DATA} ${WRKSRC}/agent/snmp_perl.pl \ | | 138 | ${INSTALL_DATA} ${WRKSRC}/agent/snmp_perl.pl \ |
138 | ${DESTDIR}${PREFIX}/share/snmp/ | | 139 | ${DESTDIR}${PREFIX}/share/snmp/ |