diff --git a/net/ucd-snmp/Makefile b/net/ucd-snmp/Makefile index 69f319ee39d..4a6e3a61a9f 100644 --- a/net/ucd-snmp/Makefile +++ b/net/ucd-snmp/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.17 2000/08/30 17:36:24 danh Exp $ +# $OpenBSD: Makefile,v 1.18 2000/09/20 00:07:27 danh Exp $ VERSION= 4.1.2 DISTNAME= ucd-snmp-${VERSION} CATEGORIES= net -NEED_VERSION= 1.319 +NEED_VERSION= 1.332 MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \ ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ @@ -26,6 +26,15 @@ BIN= encode_keychange snmpbulkget snmpbulkwalk snmpdelta \ snmpget snmpgetnext snmpnetstat snmpset snmpstatus \ snmptable snmptest snmptranslate snmptrap snmpusm snmpwalk SBIN= snmpd snmptrapd +LIBS= snmplib/libsnmp.a agent/libucdagent.a agent/libucdmibs.a + +STATIC_FLAGS= SHLIB_VERSION='' SHLIB_EXTENSION='a' \ + SHLIB_LD_CMD='ar cr' RANLIB='ranlib' + +post-build: + ( cd ${WRKSRC}/snmplib && ${MAKE} ${STATIC_FLAGS} all ) + ( cd ${WRKSRC}/agent && ${MAKE} ${STATIC_FLAGS} all ) + ( cd ${WRKSRC}/agent && ${MAKE} ${STATIC_FLAGS} all ) post-install: ( cd ${PREFIX}/bin && strip ${BIN} ) @@ -37,5 +46,6 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/README.snmpv3 ${PREFIX}/share/doc/ucd-snmp ${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/ucd-snmp ${INSTALL_DATA} ${WRKSRC}/AGENT.txt ${PREFIX}/share/doc/ucd-snmp + ( cd ${WRKSRC} && ${INSTALL_DATA} ${LIBS} ${PREFIX}/lib ) .include diff --git a/net/ucd-snmp/pkg/PFRAG.no-shared b/net/ucd-snmp/pkg/PFRAG.no-shared deleted file mode 100644 index 2eba42370cd..00000000000 --- a/net/ucd-snmp/pkg/PFRAG.no-shared +++ /dev/null @@ -1,4 +0,0 @@ -@comment $OpenBSD: PFRAG.no-shared,v 1.1 2000/08/29 17:49:10 danh Exp $ -lib/libsnmp.a -lib/libucdagent.a -lib/libucdmibs.a diff --git a/net/ucd-snmp/pkg/PLIST b/net/ucd-snmp/pkg/PLIST index 0be6bc5fd99..2460676fcec 100644 --- a/net/ucd-snmp/pkg/PLIST +++ b/net/ucd-snmp/pkg/PLIST @@ -1,5 +1,5 @@ -@comment $OpenBSD: PLIST,v 1.4 2000/08/29 17:49:11 danh Exp $ -@unexec find %D/share/snmp/mibs -name '.index' -exec rm -f {} \; +@comment $OpenBSD: PLIST,v 1.5 2000/09/20 00:07:27 danh Exp $ +@unexec rm -f %D/share/snmp/mibs/.index bin/encode_keychange bin/snmpbulkget bin/snmpbulkwalk @@ -54,6 +54,9 @@ include/ucd-snmp/ucd-snmp-includes.h include/ucd-snmp/util_funcs.h include/ucd-snmp/var_struct.h include/ucd-snmp/version.h +lib/libsnmp.a +lib/libucdagent.a +lib/libucdmibs.a man/man1/snmpbulkget.1 man/man1/snmpbulkwalk.1 man/man1/snmpcmd.1 @@ -144,7 +147,6 @@ share/snmp/mibs/UCD-DLMOD-MIB.txt share/snmp/mibs/UCD-IPFWACC-MIB.txt share/snmp/mibs/UCD-SNMP-MIB.txt share/snmp/mibs/UDP-MIB.txt -%%!SHARED%% %%SHARED%% @dirrm share/snmp/mibs @dirrm share/snmp