1# 2# Author: Harti Brandt <harti@freebsd.org> 3 4.include <src.opts.mk> 5 6CONTRIB= ${SRCTOP}/contrib/bsnmp/lib 7.PATH: ${CONTRIB} 8 9LIB= bsnmp 10SHLIB_MAJOR= 6 11LD_FATAL_WARNINGS= no 12 13CFLAGS+= -I${CONTRIB} -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY 14CFLAGS+= -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DQUADFMT='"llu"' -DQUADXFMT='"llx"' 15 16CFLAGS+= -DBOGUS_CVE_2019_5610_FIX 17 18.if ${MK_OPENSSL} != "no" 19CFLAGS+= -DHAVE_LIBCRYPTO 20LIBADD= crypto 21.endif 22 23SRCS= asn1.c snmp.c snmpagent.c snmpclient.c snmpcrypto.c support.c 24SRCS+= snmptc.h 25INCS= asn1.h snmp.h snmpagent.h snmpclient.h 26MAN= asn1.3 bsnmpagent.3 bsnmpclient.3 bsnmplib.3 27 28.if ${MK_DIRDEPS_BUILD} == "yes" 29GENSNMPTREE?= ${HOST_OBJTOP}/usr.sbin/bsnmpd/gensnmptree/gensnmptree 30.endif 31GENSNMPTREE?= gensnmptree 32 33snmptc.h : tc.def 34 (\ 35 echo "/* autogenerated from tc.def */";\ 36 echo "#ifndef snmptc_h_1529923773";\ 37 echo "#define snmptc_h_1529923773";\ 38 ${GENSNMPTREE} -E -f <${.ALLSRC};\ 39 echo "#endif" ; \ 40 ) >${.TARGET} 41 42CLEANFILES+= snmptc.h 43 44MLINKS+= asn1.3 asn_append_oid.3 45MLINKS+= asn1.3 asn_commit_header.3 46MLINKS+= asn1.3 asn_compare_oid.3 47MLINKS+= asn1.3 asn_get_counter64_raw.3 48MLINKS+= asn1.3 asn_get_header.3 49MLINKS+= asn1.3 asn_get_integer.3 50MLINKS+= asn1.3 asn_get_integer_raw.3 51MLINKS+= asn1.3 asn_get_ipaddress.3 52MLINKS+= asn1.3 asn_get_ipaddress_raw.3 53MLINKS+= asn1.3 asn_get_null.3 54MLINKS+= asn1.3 asn_get_null_raw.3 55MLINKS+= asn1.3 asn_get_objid.3 56MLINKS+= asn1.3 asn_get_objid_raw.3 57MLINKS+= asn1.3 asn_get_octetstring.3 58MLINKS+= asn1.3 asn_get_octetstring_raw.3 59MLINKS+= asn1.3 asn_get_sequence.3 60MLINKS+= asn1.3 asn_get_timeticks.3 61MLINKS+= asn1.3 asn_get_uint32_raw.3 62MLINKS+= asn1.3 asn_is_suboid.3 63MLINKS+= asn1.3 asn_oid2str.3 64MLINKS+= asn1.3 asn_oid2str_r.3 65MLINKS+= asn1.3 asn_put_counter64.3 66MLINKS+= asn1.3 asn_put_exception.3 67MLINKS+= asn1.3 asn_put_header.3 68MLINKS+= asn1.3 asn_put_integer.3 69MLINKS+= asn1.3 asn_put_ipaddress.3 70MLINKS+= asn1.3 asn_put_null.3 71MLINKS+= asn1.3 asn_put_objid.3 72MLINKS+= asn1.3 asn_put_octetstring.3 73MLINKS+= asn1.3 asn_put_temp_header.3 74MLINKS+= asn1.3 asn_put_timeticks.3 75MLINKS+= asn1.3 asn_put_uint32.3 76MLINKS+= asn1.3 asn_skip.3 77MLINKS+= asn1.3 asn_slice_oid.3 78 79MLINKS+= bsnmpagent.3 snmp_debug.3 80MLINKS+= bsnmpagent.3 snmp_dep_commit.3 81MLINKS+= bsnmpagent.3 snmp_dep_finish.3 82MLINKS+= bsnmpagent.3 snmp_dep_lookup.3 83MLINKS+= bsnmpagent.3 snmp_dep_rollback.3 84MLINKS+= bsnmpagent.3 snmp_depop_t.3 85MLINKS+= bsnmpagent.3 snmp_get.3 86MLINKS+= bsnmpagent.3 snmp_getbulk.3 87MLINKS+= bsnmpagent.3 snmp_getnext.3 88MLINKS+= bsnmpagent.3 snmp_init_context.3 89MLINKS+= bsnmpagent.3 snmp_make_errresp.3 90MLINKS+= bsnmpagent.3 snmp_op_t.3 91MLINKS+= bsnmpagent.3 snmp_set.3 92MLINKS+= bsnmpagent.3 snmp_trace.3 93MLINKS+= bsnmpagent.3 tree_size.3 94 95MLINKS+= bsnmpclient.3 snmp_add_binding.3 96MLINKS+= bsnmpclient.3 snmp_client.3 97MLINKS+= bsnmpclient.3 snmp_client_init.3 98MLINKS+= bsnmpclient.3 snmp_client_set_host.3 99MLINKS+= bsnmpclient.3 snmp_client_set_port.3 100MLINKS+= bsnmpclient.3 snmp_close.3 101MLINKS+= bsnmpclient.3 snmp_dialog.3 102MLINKS+= bsnmpclient.3 snmp_discover_engine.3 103MLINKS+= bsnmpclient.3 snmp_oid_append.3 104MLINKS+= bsnmpclient.3 snmp_open.3 105MLINKS+= bsnmpclient.3 snmp_parse_server.3 106MLINKS+= bsnmpclient.3 snmp_pdu_check.3 107MLINKS+= bsnmpclient.3 snmp_pdu_create.3 108MLINKS+= bsnmpclient.3 snmp_pdu_send.3 109MLINKS+= bsnmpclient.3 snmp_receive.3 110MLINKS+= bsnmpclient.3 snmp_send_cb_f.3 111MLINKS+= bsnmpclient.3 snmp_table_cb_f.3 112MLINKS+= bsnmpclient.3 snmp_table_fetch.3 113MLINKS+= bsnmpclient.3 snmp_table_fetch_async.3 114MLINKS+= bsnmpclient.3 snmp_timeout_cb_f.3 115MLINKS+= bsnmpclient.3 snmp_timeout_start_f.3 116MLINKS+= bsnmpclient.3 snmp_timeout_stop_f.3 117 118MLINKS+= bsnmplib.3 TRUTH_GET.3 119MLINKS+= bsnmplib.3 TRUTH_MK.3 120MLINKS+= bsnmplib.3 TRUTH_OK.3 121MLINKS+= bsnmplib.3 snmp_calc_keychange.3 122MLINKS+= bsnmplib.3 snmp_get_local_keys.3 123MLINKS+= bsnmplib.3 snmp_passwd_to_keys.3 124MLINKS+= bsnmplib.3 snmp_pdu_decode.3 125MLINKS+= bsnmplib.3 snmp_pdu_decode_header.3 126MLINKS+= bsnmplib.3 snmp_pdu_decode_scoped.3 127MLINKS+= bsnmplib.3 snmp_pdu_decode_secmode.3 128MLINKS+= bsnmplib.3 snmp_pdu_dump.3 129MLINKS+= bsnmplib.3 snmp_pdu_encode.3 130MLINKS+= bsnmplib.3 snmp_pdu_free.3 131MLINKS+= bsnmplib.3 snmp_pdu_init_secparams.3 132MLINKS+= bsnmplib.3 snmp_value_copy.3 133MLINKS+= bsnmplib.3 snmp_value_free.3 134MLINKS+= bsnmplib.3 snmp_value_parse.3 135 136FILESGROUPS+= DEFS 137DEFS= tc.def 138DEFSDIR?= ${SHAREDIR}/snmp/defs 139DEFSPACKAGE= bsnmp 140 141.include <bsd.lib.mk> 142