BSD.SNMPMOD.MK(7)
π NAME π
okay so bestie, welcome to the bsd.snmpmod.mk(7) page β it's all about bsd.snmpmod.mk, which is literally here for building modules for bsnmpd(1). no cap, this is the makefile fairy godmother for SNMP modules. β¨
β¨ SYNOPSIS β¨
.include <bsd.snmpmod.mk>
π DESCRIPTION π
The file <bsd.snmpmod.mk> simplifies the building of modules for the Begemot SNMP daemon, bsnmpd(1). It provides some common functions for building a module and relies on <bsd.lib.mk>, which is included by <bsd.snmpmod.mk> to actually build the shared library. π
The following make(1) variables control the special functions β these are the main characters:
MODβ The short name of the module. The name of the shared library will besnmp_${MOD}.so. There must exist a file${MOD}_tree.deffor compilation withgensnmptree(1)which contains the definition of the MIB tree implemented by the module.EXTRAMIBDEFSβ A list of extra MIB definition files forgensnmptree(1). This is optional. This file list is given to both calls togensnmptree(1)β the one that extracts the symbols inXSYMfrom the MIB definitions and the one that generates the table with OIDs served by this module.EXTRAMIBSYMSβ A list of extra MIB definition files forgensnmptree(1). This is optional. This file list is given only to the call togensnmptree(1)that extracts symbols from MIB definition files. It is useful if there are dependencies on other MIBs or for extracting global definitions for enumeration constants.XSYMβ A list of symbols to be extracted from the MIB definition files bygensnmptree(1). This is optional.DEFSβ A list of MIB definition files to be installed. This is optional.BMIBSβ A list of textual MIBs to be installed. This is optional.
Three files are automatically created from the MIB definition files and the XSYM variable β iconic behavior, honestly:
${MOD}_tree.cβ This contains a table with the tree implemented by the module. It is automatically included into theSRCSvariable.${MOD}_tree.hβ This contains preprocessor defines for all the OIDs defined by the module and can be included in the module's source code.${MOD}_oid.hβ OID preprocessor definitions for all the symbols listed inXSYMS. This is to be included into the module's source code.
π SEE ALSO π
bsnmpd(1), gensnmptree(1), snmpmod(3)
mwah π this page is from Debian, dated January 8, 2008 β bye bestie, go build those modules π«Ά
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2005,2008 Hartmut Brandt
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms