2 # Copyright (c) 2005-2006 The FreeBSD Project
4 # Author: Victor Cruceru <soc-victor@freebsd.org>
6 # Redistribution of this software and documentation and use in source and
7 # binary forms, with or without modification, are permitted provided that
8 # the following conditions are met:
10 # 1. Redistributions of source code or documentation must retain the above
11 # copyright notice, this list of conditions and the following disclaimer.
12 # 2. Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
16 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 LPRSRC= ${.CURDIR}/../../../lpr/common_source
35 SRCS= hostres_begemot.c \
36 hostres_device_tbl.c \
37 hostres_diskstorage_tbl.c \
39 hostres_network_tbl.c \
40 hostres_partition_tbl.c \
41 hostres_printer_tbl.c \
42 hostres_processor_tbl.c \
45 hostres_storage_tbl.c \
46 hostres_swinstalled_tbl.c \
50 #Not having NDEBUG defined will enable assertions and a lot of output on stderr
51 CFLAGS+= -DNDEBUG -I${LPRSRC}
52 XSYM= host hrStorageOther hrStorageRam hrStorageVirtualMemory \
53 hrStorageFixedDisk hrStorageRemovableDisk hrStorageFloppyDisk \
54 hrStorageCompactDisc hrStorageRamDisk hrStorageFlashMemory \
55 hrStorageNetworkDisk hrDeviceOther hrDeviceUnknown \
56 hrDeviceProcessor hrDeviceNetwork hrDevicePrinter \
57 hrDeviceDiskStorage hrDeviceVideo hrDeviceAudio \
58 hrDeviceCoprocessor hrDeviceKeyboard hrDeviceModem \
59 hrDeviceParallelPort hrDevicePointing \
60 hrDeviceSerialPort hrDeviceTape hrDeviceClock \
61 hrDeviceVolatileMemory hrDeviceNonVolatileMemory \
62 hrFSOther hrFSUnknown hrFSBerkeleyFFS hrFSSys5FS hrFSFat\
63 hrFSHPFS hrFSHFS hrFSMFS hrFSNTFS hrFSVNode hrFSJournaled \
64 hrFSiso9660 hrFSRockRidge hrFSNFS hrFSNetware hrFSAFS hrFSDFS \
65 hrFSAppleshare hrFSRFS hrFSDGCFS hrFSBFS hrFSFAT32 hrFSLinuxExt2
70 BMIBS= BEGEMOT-HOSTRES-MIB.txt
72 DPADD= ${LIBKVM} ${LIBDEVINFO} ${LIBM} ${LIBGEOM} ${LIBMEMSTAT}
73 LDADD= -lkvm -ldevinfo -lm -lgeom -lmemstat
75 .include <bsd.snmpmod.mk>
77 printcap.So: printcap.c
78 ${CC} ${PICFLAG} -DPIC ${CFLAGS:C/^-W.*//} -c ${.IMPSRC} -o ${.TARGET}
81 env SMIPATH=.:/usr/share/snmp/mibs:/usr/local/share/snmp/mibs \
82 smilint -c /dev/null -l6 -i group-membership BEGEMOT-HOSTRES-MIB