- always build static libraries even when shared libraries are supported.

- fix pkg/PLIST to reflect changes.
This commit is contained in:
danh 2000-09-20 00:07:27 +00:00
parent d5dac9c26a
commit c68478b76b
3 changed files with 17 additions and 9 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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

View File

@ -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