Tue Jan 8 19:18:55 2019 UTC ()
Fix building on macOS 10.14


(adam)
diff -r1.124 -r1.125 pkgsrc/net/net-snmp/Makefile

cvs diff -r1.124 -r1.125 pkgsrc/net/net-snmp/Makefile (expand / switch to unified diff)

--- pkgsrc/net/net-snmp/Makefile 2018/08/22 09:45:55 1.124
+++ pkgsrc/net/net-snmp/Makefile 2019/01/08 19:18:55 1.125
@@ -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"
4CATEGORIES= net 4CATEGORIES= net
5PKGREVISION= 11 5PKGREVISION= 11
6 6
7MAINTAINER= adam@NetBSD.org 7MAINTAINER= adam@NetBSD.org
8COMMENT= Extensible SNMP implementation 8COMMENT= Extensible SNMP implementation
9 9
10CONFLICTS= ucd-snmp-[0-9]* 10CONFLICTS= ucd-snmp-[0-9]*
11CONFLICTS+= nocol-[0-9]* # bin/snmpget bin/snmpwalk 11CONFLICTS+= nocol-[0-9]* # bin/snmpget bin/snmpwalk
12 12
13USE_LIBTOOL= yes 13USE_LIBTOOL= yes
14GNU_CONFIGURE= yes 14GNU_CONFIGURE= yes
@@ -112,26 +112,27 @@ REPLACE.bash.new= ${SH} @@ -112,26 +112,27 @@ REPLACE.bash.new= ${SH}
112REPLACE_FILES.bash= local/mib2c-update 112REPLACE_FILES.bash= local/mib2c-update
113 113
114INSTALLATION_DIRS+= share/examples/net-snmp 114INSTALLATION_DIRS+= share/examples/net-snmp
115 115
116post-extract: 116post-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
127post-wrapper: 128post-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
133post-install: 134post-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/