Sun Jul 23 17:43:33 2017 UTC ()
Fix for macOS High Sierra


(adam)
diff -r1.119 -r1.120 pkgsrc/net/net-snmp/Makefile

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

--- pkgsrc/net/net-snmp/Makefile 2017/06/05 14:24:16 1.119
+++ pkgsrc/net/net-snmp/Makefile 2017/07/23 17:43:33 1.120
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.119 2017/06/05 14:24:16 ryoon Exp $ 1# $NetBSD: Makefile,v 1.120 2017/07/23 17:43:33 adam Exp $
2 2
3.include "Makefile.common" 3.include "Makefile.common"
4CATEGORIES= net 4CATEGORIES= net
5PKGREVISION= 7 5PKGREVISION= 7
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
@@ -110,26 +110,27 @@ REPLACE.bash.old= /bin/bash @@ -110,26 +110,27 @@ REPLACE.bash.old= /bin/bash
110REPLACE.bash.new= ${SH} 110REPLACE.bash.new= ${SH}
111REPLACE_FILES.bash= local/mib2c-update 111REPLACE_FILES.bash= local/mib2c-update
112 112
113INSTALLATION_DIRS+= share/examples/net-snmp 113INSTALLATION_DIRS+= share/examples/net-snmp
114 114
115post-extract: 115post-extract:
116.if ${OPSYS} == "DragonFly" 116.if ${OPSYS} == "DragonFly"
117 cp ${FILESDIR}/cpu_dragonfly.c ${WRKSRC}/agent/mibgroup/hardware/cpu/cpu_nlist.c 117 cp ${FILESDIR}/cpu_dragonfly.c ${WRKSRC}/agent/mibgroup/hardware/cpu/cpu_nlist.c
118# XXX make it build on OS X 10.10; remove on the next update 118# XXX make it build on OS X 10.10; remove on the next update
119.elif ${OPSYS} == "Darwin" 119.elif ${OPSYS} == "Darwin"
120 ln -s ${WRKSRC}/include/net-snmp/system/darwin13.h ${WRKSRC}/include/net-snmp/system/darwin14.h 120 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/darwin15.h 121 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/darwin16.h 122 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/darwin17.h
123.endif 124.endif
124 125
125post-wrapper: 126post-wrapper:
126.if !empty(MACHINE_PLATFORM:MNetBSD-1.5.[123]*-i386) 127.if !empty(MACHINE_PLATFORM:MNetBSD-1.5.[123]*-i386)
127 mkdir ${BUILDLINK_DIR}/include/sys 128 mkdir ${BUILDLINK_DIR}/include/sys
128 cp ${FILESDIR}/disklabel.h ${BUILDLINK_DIR}/include/sys 129 cp ${FILESDIR}/disklabel.h ${BUILDLINK_DIR}/include/sys
129.endif 130.endif
130 131
131post-install: 132post-install:
132 ${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf \ 133 ${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf \
133 ${DESTDIR}${PREFIX}/share/examples/net-snmp/EXAMPLE.conf 134 ${DESTDIR}${PREFIX}/share/examples/net-snmp/EXAMPLE.conf
134 ${INSTALL_DATA} ${WRKSRC}/agent/snmp_perl.pl \ 135 ${INSTALL_DATA} ${WRKSRC}/agent/snmp_perl.pl \
135 ${DESTDIR}${PREFIX}/share/snmp/ 136 ${DESTDIR}${PREFIX}/share/snmp/