Fri Apr 24 13:27:49 2020 UTC ()
net-snmp: fix for Darwin 19


(adam)
diff -r1.127 -r1.128 pkgsrc/net/net-snmp/Makefile

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

--- pkgsrc/net/net-snmp/Makefile 2020/01/18 21:48:20 1.127
+++ pkgsrc/net/net-snmp/Makefile 2020/04/24 13:27:48 1.128
@@ -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"
4CATEGORIES= net 4CATEGORIES= net
5PKGREVISION= 13 5PKGREVISION= 13
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
@@ -108,31 +108,32 @@ SMF_NAME= snmp @@ -108,31 +108,32 @@ SMF_NAME= snmp
108USE_TOOLS+= sh:run 108USE_TOOLS+= sh:run
109REPLACE_INTERPRETER+= bash 109REPLACE_INTERPRETER+= bash
110REPLACE.bash.old= /bin/bash 110REPLACE.bash.old= /bin/bash
111REPLACE.bash.new= ${SH} 111REPLACE.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 ${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
128post-wrapper: 129post-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
134post-install: 135post-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/