1154133Sharti# 2154133Sharti# Copyright (c) 2005-2006 The FreeBSD Project 3154133Sharti# All rights reserved. 4154133Sharti# Author: Victor Cruceru <soc-victor@freebsd.org> 5154133Sharti# 6154133Sharti# Redistribution of this software and documentation and use in source and 7154133Sharti# binary forms, with or without modification, are permitted provided that 8154133Sharti# the following conditions are met: 9154133Sharti# 10154133Sharti# 1. Redistributions of source code or documentation must retain the above 11154133Sharti# copyright notice, this list of conditions and the following disclaimer. 12154133Sharti# 2. Redistributions in binary form must reproduce the above copyright 13154133Sharti# notice, this list of conditions and the following disclaimer in the 14154133Sharti# documentation and/or other materials provided with the distribution. 15154133Sharti# 16154133Sharti# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17154133Sharti# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18154133Sharti# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19154133Sharti# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20154133Sharti# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21154133Sharti# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22154133Sharti# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23154133Sharti# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24154133Sharti# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25154133Sharti# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26154133Sharti# SUCH DAMAGE. 27154133Sharti# 28154133Sharti# $FreeBSD$ 29154133Sharti# 30154133Sharti 31154133ShartiLPRSRC= ${.CURDIR}/../../../lpr/common_source 32154133Sharti.PATH: ${LPRSRC} 33154133Sharti 34154133ShartiMOD= hostres 35154133ShartiSRCS= hostres_begemot.c \ 36154133Sharti hostres_device_tbl.c \ 37154133Sharti hostres_diskstorage_tbl.c \ 38154133Sharti hostres_fs_tbl.c \ 39154133Sharti hostres_network_tbl.c \ 40154133Sharti hostres_partition_tbl.c \ 41154133Sharti hostres_printer_tbl.c \ 42154133Sharti hostres_processor_tbl.c \ 43154133Sharti hostres_scalars.c \ 44154133Sharti hostres_snmp.c \ 45154133Sharti hostres_storage_tbl.c \ 46154133Sharti hostres_swinstalled_tbl.c \ 47154133Sharti hostres_swrun_tbl.c \ 48154133Sharti printcap.c 49154133Sharti 50154133Sharti#Not having NDEBUG defined will enable assertions and a lot of output on stderr 51154856ShartiCFLAGS+= -DNDEBUG -I${LPRSRC} 52154133ShartiXSYM= host hrStorageOther hrStorageRam hrStorageVirtualMemory \ 53154133Sharti hrStorageFixedDisk hrStorageRemovableDisk hrStorageFloppyDisk \ 54154133Sharti hrStorageCompactDisc hrStorageRamDisk hrStorageFlashMemory \ 55154133Sharti hrStorageNetworkDisk hrDeviceOther hrDeviceUnknown \ 56154133Sharti hrDeviceProcessor hrDeviceNetwork hrDevicePrinter \ 57154133Sharti hrDeviceDiskStorage hrDeviceVideo hrDeviceAudio \ 58154133Sharti hrDeviceCoprocessor hrDeviceKeyboard hrDeviceModem \ 59154133Sharti hrDeviceParallelPort hrDevicePointing \ 60154133Sharti hrDeviceSerialPort hrDeviceTape hrDeviceClock \ 61154133Sharti hrDeviceVolatileMemory hrDeviceNonVolatileMemory \ 62154133Sharti hrFSOther hrFSUnknown hrFSBerkeleyFFS hrFSSys5FS hrFSFat\ 63154133Sharti hrFSHPFS hrFSHFS hrFSMFS hrFSNTFS hrFSVNode hrFSJournaled \ 64154133Sharti hrFSiso9660 hrFSRockRidge hrFSNFS hrFSNetware hrFSAFS hrFSDFS \ 65154133Sharti hrFSAppleshare hrFSRFS hrFSDGCFS hrFSBFS hrFSFAT32 hrFSLinuxExt2 66154133Sharti 67154133ShartiMAN= snmp_hostres.3 68154133Sharti 69154133ShartiDEFS= ${MOD}_tree.def 70154133ShartiBMIBS= BEGEMOT-HOSTRES-MIB.txt 71154133Sharti 72202206SedDPADD= ${LIBKVM} ${LIBDEVINFO} ${LIBM} ${LIBGEOM} ${LIBMEMSTAT} 73202206SedLDADD= -lkvm -ldevinfo -lm -lgeom -lmemstat 74154133Sharti 75154133Sharti.include <bsd.snmpmod.mk> 76154133Sharti 77154133Shartiprintcap.So: printcap.c 78154133Sharti ${CC} ${PICFLAG} -DPIC ${CFLAGS:C/^-W.*//} -c ${.IMPSRC} -o ${.TARGET} 79154133Sharti 80154133Shartismilint: 81154133Sharti env SMIPATH=.:/usr/share/snmp/mibs:/usr/local/share/snmp/mibs \ 82154133Sharti smilint -c /dev/null -l6 -i group-membership BEGEMOT-HOSTRES-MIB 83