| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.124 2018/08/22 09:45:55 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.125 2019/01/08 19:18:55 adam Exp $ |
2 | | | 2 | |
3 | .include "Makefile.common" | | 3 | .include "Makefile.common" |
4 | CATEGORIES= net | | 4 | CATEGORIES= net |
5 | PKGREVISION= 11 | | 5 | PKGREVISION= 11 |
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 |
| @@ -112,26 +112,27 @@ REPLACE.bash.new= ${SH} | | | @@ -112,26 +112,27 @@ 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 | .endif | | 126 | .endif |
126 | | | 127 | |
127 | post-wrapper: | | 128 | post-wrapper: |
128 | .if !empty(MACHINE_PLATFORM:MNetBSD-1.5.[123]*-i386) | | 129 | .if !empty(MACHINE_PLATFORM:MNetBSD-1.5.[123]*-i386) |
129 | mkdir ${BUILDLINK_DIR}/include/sys | | 130 | mkdir ${BUILDLINK_DIR}/include/sys |
130 | cp ${FILESDIR}/disklabel.h ${BUILDLINK_DIR}/include/sys | | 131 | cp ${FILESDIR}/disklabel.h ${BUILDLINK_DIR}/include/sys |
131 | .endif | | 132 | .endif |
132 | | | 133 | |
133 | post-install: | | 134 | post-install: |
134 | ${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf \ | | 135 | ${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf \ |
135 | ${DESTDIR}${PREFIX}/share/examples/net-snmp/EXAMPLE.conf | | 136 | ${DESTDIR}${PREFIX}/share/examples/net-snmp/EXAMPLE.conf |
136 | ${INSTALL_DATA} ${WRKSRC}/agent/snmp_perl.pl \ | | 137 | ${INSTALL_DATA} ${WRKSRC}/agent/snmp_perl.pl \ |
137 | ${DESTDIR}${PREFIX}/share/snmp/ | | 138 | ${DESTDIR}${PREFIX}/share/snmp/ |