diff options
author | harti <harti@FreeBSD.org> | 2005-11-10 10:09:42 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-11-10 10:09:42 +0000 |
commit | 521ee9798f5811fea31c8a675e735da41057aff1 (patch) | |
tree | ecbc568af882a8f264846ba51d74e98d69fd6489 /share | |
parent | 86929f9937d3b2ed6aebe121efe90fe7f3c2f7ed (diff) | |
download | FreeBSD-src-521ee9798f5811fea31c8a675e735da41057aff1.zip FreeBSD-src-521ee9798f5811fea31c8a675e735da41057aff1.tar.gz |
This is a short man page which describes bsd.snmpmod.mk. It documents
only the features that this file layers on top of bsd.lib.mk and should
therefore cross-reference to bsd.lib.mk, which doesn't exist.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man7/Makefile | 1 | ||||
-rw-r--r-- | share/man/man7/bsd.snmpmod.mk.7 | 98 |
2 files changed, 99 insertions, 0 deletions
diff --git a/share/man/man7/Makefile b/share/man/man7/Makefile index 8224044..75f8649 100644 --- a/share/man/man7/Makefile +++ b/share/man/man7/Makefile @@ -3,6 +3,7 @@ #MISSING: eqnchar.7 ms.7 term.7 MAN= ascii.7 \ + bsd.snmpmod.mk.7 \ build.7 \ clocks.7 \ development.7 \ diff --git a/share/man/man7/bsd.snmpmod.mk.7 b/share/man/man7/bsd.snmpmod.mk.7 new file mode 100644 index 0000000..cb12a08 --- /dev/null +++ b/share/man/man7/bsd.snmpmod.mk.7 @@ -0,0 +1,98 @@ +.\" +.\" Copyright (c) 2005 +.\" Hartmut Brandt. +.\" All rights reserved. +.\" +.\" Author: Hartmut Brandt <harti@FreeBSD.org> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" $FreeBSD$ +.\" +.Dd November 9, 2005 +.Dt BSD.SNMPMOD.MK 5 +.Os +.Sh NAME +.Nm bsd.snmpmod.mk +.Sh SYNOPSIS +.Fd .include <bsd.snmpmod.mk> +.Sh DESCRIPTION +The file +.In bsd.snmpmod.mk +simplifies the building of modules for the Begemot SNMP daemon +.Xr bsnmpd 1 . +It provides some common functions for building a module and +relies on +.In bsd.lib.mk , +which is included by +.In bsd.snmpmod.mk +to actually build the shared library. +.Pp +The following +.Xr make 1 +variables control the special functions: +.Bl -tag -width 'EXTRAMIBDEFS' +.It Va MOD +The short name of the module. +The name of the shared library will be +.Pa snmp_${MOD}.so . +There must exist a file +.Pa ${MOD}_tree.def +for compilation with +.Xr gensnmptree 1 +which contains the definition of the MIB tree implemented by the module. +.It Va EXTRAMIBDEFS +A list of extra MIB definition files for +.Xr gensnmptree 1 . +This is optional. +.It Va XSYM +A list of symbols to be extracted from the MIB definition files by +.Xr gensnmptree 1 . +This is optional. +.It Va DEFS +A list of MIB definition files to be installed. This is optional. +.It Va BMIBS +A list of textual MIBs to be installed. This is optional. +.El +.Pp +Three file are automatically created from the MIB definition files and +the +.Va XSYM +variable: +.Bl -tag -width 'EXTRAMIBDEFS' +.It Pa ${MOD}_tree.c +This contains a table with the tree implemented by the module. +It is automatically included into the +.Va SRCS +variable. +.It Pa ${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. +.It Pa ${MOD}_oid.h +OID preprocessor definitions for all the symbols listed in +.Va XSYMS . +This is to be included into the module's source code. +.El +.Sh SEE ALSO +.Xr bsnmpd 1 , +.Xr gensnmptree 1 , +.Xr snmpmod 3 |